Class CustomerEmailTokenReferenceBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerEmailTokenReferenceBuilder
- All Implemented Interfaces:
Builder<CustomerEmailTokenReference>
public class CustomerEmailTokenReferenceBuilder
extends Object
implements Builder<CustomerEmailTokenReference>
CustomerEmailTokenReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerEmailTokenReference customerEmailTokenReference = CustomerEmailTokenReference.builder()
.id("{id}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerEmailTokenReference with checking for non-null required valuesbuilds CustomerEmailTokenReference without checking for non-null required valuesgetId()
Unique identifier of the referenced CustomerToken.Unique identifier of the referenced CustomerToken.of()
factory method for an instance of CustomerEmailTokenReferenceBuilderof
(CustomerEmailTokenReference template) create builder for CustomerEmailTokenReference instance
-
Constructor Details
-
CustomerEmailTokenReferenceBuilder
public CustomerEmailTokenReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced CustomerToken.
- Parameters:
id
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced CustomerToken.
- Returns:
- id
-
build
builds CustomerEmailTokenReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerEmailTokenReference>
- Returns:
- CustomerEmailTokenReference
-
buildUnchecked
builds CustomerEmailTokenReference without checking for non-null required values- Returns:
- CustomerEmailTokenReference
-
of
factory method for an instance of CustomerEmailTokenReferenceBuilder- Returns:
- builder
-
of
create builder for CustomerEmailTokenReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-