Class TaxCategoryResourceIdentifierBuilder
java.lang.Object
com.commercetools.api.models.tax_category.TaxCategoryResourceIdentifierBuilder
- All Implemented Interfaces:
Builder<TaxCategoryResourceIdentifier>
public class TaxCategoryResourceIdentifierBuilder
extends Object
implements Builder<TaxCategoryResourceIdentifier>
TaxCategoryResourceIdentifierBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TaxCategoryResourceIdentifier taxCategoryResourceIdentifier = TaxCategoryResourceIdentifier.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds TaxCategoryResourceIdentifier with checking for non-null required valuesbuilds TaxCategoryResourceIdentifier without checking for non-null required valuesgetId()
Unique identifier of the referenced TaxCategory.getKey()
User-defined unique identifier of the referenced TaxCategory.Unique identifier of the referenced TaxCategory.User-defined unique identifier of the referenced TaxCategory.of()
factory method for an instance of TaxCategoryResourceIdentifierBuilderof
(TaxCategoryResourceIdentifier template) create builder for TaxCategoryResourceIdentifier instance
-
Constructor Details
-
TaxCategoryResourceIdentifierBuilder
public TaxCategoryResourceIdentifierBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced TaxCategory. Required if
key
is absent.- Parameters:
id
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the referenced TaxCategory. Required if
id
is absent.- Parameters:
key
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced TaxCategory. Required if
key
is absent.- Returns:
- id
-
getKey
User-defined unique identifier of the referenced TaxCategory. Required if
id
is absent.- Returns:
- key
-
build
builds TaxCategoryResourceIdentifier with checking for non-null required values- Specified by:
build
in interfaceBuilder<TaxCategoryResourceIdentifier>
- Returns:
- TaxCategoryResourceIdentifier
-
buildUnchecked
builds TaxCategoryResourceIdentifier without checking for non-null required values- Returns:
- TaxCategoryResourceIdentifier
-
of
factory method for an instance of TaxCategoryResourceIdentifierBuilder- Returns:
- builder
-
of
create builder for TaxCategoryResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-