Class TaxCategoryReferenceBuilder

java.lang.Object
com.commercetools.api.models.tax_category.TaxCategoryReferenceBuilder
All Implemented Interfaces:
Builder<TaxCategoryReference>

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

     TaxCategoryReference taxCategoryReference = TaxCategoryReference.builder()
             .id("{id}")
             .build()
 
  • Constructor Details

    • TaxCategoryReferenceBuilder

      public TaxCategoryReferenceBuilder()
  • Method Details

    • id

      Unique identifier of the referenced TaxCategory.

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

      Contains the representation of the expanded TaxCategory. Only present in responses to requests with Reference Expansion for TaxCategories.

      Parameters:
      builder - function to build the obj value
      Returns:
      Builder
    • withObj

      Contains the representation of the expanded TaxCategory. Only present in responses to requests with Reference Expansion for TaxCategories.

      Parameters:
      builder - function to build the obj value
      Returns:
      Builder
    • obj

      Contains the representation of the expanded TaxCategory. Only present in responses to requests with Reference Expansion for TaxCategories.

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

      public String getId()

      Unique identifier of the referenced TaxCategory.

      Returns:
      id
    • getObj

      @Nullable public TaxCategory getObj()

      Contains the representation of the expanded TaxCategory. Only present in responses to requests with Reference Expansion for TaxCategories.

      Returns:
      obj
    • build

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

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

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

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