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