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