Class CustomerCreateEmailTokenBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerCreateEmailTokenBuilder
- All Implemented Interfaces:
Builder<CustomerCreateEmailToken>
public class CustomerCreateEmailTokenBuilder
extends Object
implements Builder<CustomerCreateEmailToken>
CustomerCreateEmailTokenBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerCreateEmailToken customerCreateEmailToken = CustomerCreateEmailToken.builder()
.id("{id}")
.ttlMinutes(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerCreateEmailToken with checking for non-null required valuesbuilds CustomerCreateEmailToken without checking for non-null required valuesgetId()
Unique identifier of the Customer.Validity period of the generated token in minutes.Expected version of the Customer.Unique identifier of the Customer.of()
factory method for an instance of CustomerCreateEmailTokenBuilderof
(CustomerCreateEmailToken template) create builder for CustomerCreateEmailToken instancettlMinutes
(Long ttlMinutes) Validity period of the generated token in minutes.Expected version of the Customer.
-
Constructor Details
-
CustomerCreateEmailTokenBuilder
public CustomerCreateEmailTokenBuilder()
-
-
Method Details
-
id
Unique identifier of the Customer.
- Parameters:
id
- value to be set- Returns:
- Builder
-
version
Expected version of the Customer.
- Parameters:
version
- value to be set- Returns:
- Builder
-
ttlMinutes
Validity period of the generated token in minutes.
- Parameters:
ttlMinutes
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the Customer.
- Returns:
- id
-
getVersion
Expected version of the Customer.
- Returns:
- version
-
getTtlMinutes
Validity period of the generated token in minutes.
- Returns:
- ttlMinutes
-
build
builds CustomerCreateEmailToken with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerCreateEmailToken>
- Returns:
- CustomerCreateEmailToken
-
buildUnchecked
builds CustomerCreateEmailToken without checking for non-null required values- Returns:
- CustomerCreateEmailToken
-
of
factory method for an instance of CustomerCreateEmailTokenBuilder- Returns:
- builder
-
of
create builder for CustomerCreateEmailToken instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-