Class TaxCategoryReferenceBuilder
java.lang.Object
com.commercetools.history.models.common.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
Constructors -
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.Unique identifier of the referenced TaxCategory.static TaxCategoryReferenceBuilderof()factory method for an instance of TaxCategoryReferenceBuilderstatic TaxCategoryReferenceBuilderof(TaxCategoryReference template) create builder for TaxCategoryReference instance
-
Constructor Details
-
TaxCategoryReferenceBuilder
public TaxCategoryReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced TaxCategory.
- Parameters:
id- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced TaxCategory.
- Returns:
- id
-
build
builds TaxCategoryReference with checking for non-null required values- Specified by:
buildin 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
-