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