Class CustomerResourceIdentifierBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerResourceIdentifierBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<CustomerResourceIdentifier>
public class CustomerResourceIdentifierBuilder
extends Object
implements io.vrap.rmf.base.client.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.
- Parameters:
id
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the referenced Customer.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced Customer.
- Returns:
- id
-
getKey
User-defined unique identifier of the referenced Customer.
- Returns:
- key
-
build
builds CustomerResourceIdentifier with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<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
-