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