Class QuoteResourceIdentifierBuilder

java.lang.Object
com.commercetools.api.models.quote.QuoteResourceIdentifierBuilder
All Implemented Interfaces:
Builder<QuoteResourceIdentifier>

public class QuoteResourceIdentifierBuilder extends Object implements Builder<QuoteResourceIdentifier>
QuoteResourceIdentifierBuilder
Example to create an instance using the builder pattern

     QuoteResourceIdentifier quoteResourceIdentifier = QuoteResourceIdentifier.builder()
             .build()
 
  • Constructor Details

    • QuoteResourceIdentifierBuilder

      public QuoteResourceIdentifierBuilder()
  • Method Details

    • id

      Unique identifier of the referenced resource. Required if key is absent.

      Parameters:
      id - value to be set
      Returns:
      Builder
    • key

      User-defined unique identifier of the referenced resource. Required if id is absent.

      Parameters:
      key - value to be set
      Returns:
      Builder
    • getId

      @Nullable public String getId()

      Unique identifier of the referenced resource. Required if key is absent.

      Returns:
      id
    • getKey

      @Nullable public String getKey()

      User-defined unique identifier of the referenced resource. Required if id is absent.

      Returns:
      key
    • build

      public QuoteResourceIdentifier build()
      builds QuoteResourceIdentifier with checking for non-null required values
      Specified by:
      build in interface Builder<QuoteResourceIdentifier>
      Returns:
      QuoteResourceIdentifier
    • buildUnchecked

      public QuoteResourceIdentifier buildUnchecked()
      builds QuoteResourceIdentifier without checking for non-null required values
      Returns:
      QuoteResourceIdentifier
    • of

      public static QuoteResourceIdentifierBuilder of()
      factory method for an instance of QuoteResourceIdentifierBuilder
      Returns:
      builder
    • of

      create builder for QuoteResourceIdentifier instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder