Class TaxCategoryReferenceBuilder
java.lang.Object
com.commercetools.api.models.tax_category.TaxCategoryReferenceBuilder
- All Implemented Interfaces:
Builder<TaxCategoryReference>
TaxCategoryReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TaxCategoryReference taxCategoryReference = TaxCategoryReference.builder()
.id("{id}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds TaxCategoryReference with checking for non-null required valuesbuilds TaxCategoryReference without checking for non-null required valuesgetId()
Unique identifier of the referenced TaxCategory.getObj()
Contains the representation of the expanded TaxCategory.Unique identifier of the referenced TaxCategory.obj
(TaxCategory obj) Contains the representation of the expanded TaxCategory.obj
(Function<TaxCategoryBuilder, TaxCategoryBuilder> builder) Contains the representation of the expanded TaxCategory.static TaxCategoryReferenceBuilder
of()
factory method for an instance of TaxCategoryReferenceBuilderstatic TaxCategoryReferenceBuilder
of
(TaxCategoryReference template) create builder for TaxCategoryReference instancewithObj
(Function<TaxCategoryBuilder, TaxCategory> builder) Contains the representation of the expanded TaxCategory.
-
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
Unique identifier of the referenced TaxCategory.
- Returns:
- id
-
getObj
Contains the representation of the expanded TaxCategory. Only present in responses to requests with Reference Expansion for TaxCategories.
- Returns:
- obj
-
build
builds TaxCategoryReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<TaxCategoryReference>
- Returns:
- TaxCategoryReference
-
buildUnchecked
builds TaxCategoryReference without checking for non-null required values- Returns:
- TaxCategoryReference
-
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
-