Class CustomerSignInResultBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerSignInResultBuilder
- All Implemented Interfaces:
Builder<CustomerSignInResult>
CustomerSignInResultBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerSignInResult customerSignInResult = CustomerSignInResult.builder()
.customer(customerBuilder -> customerBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerSignInResult with checking for non-null required valuesbuilds CustomerSignInResult without checking for non-null required valuesCart associated with the Customer.cart
(Function<CartBuilder, CartBuilder> builder) Cart associated with the Customer.customer
(Function<CustomerBuilder, CustomerBuilder> builder) getCart()
Cart associated with the Customer.static CustomerSignInResultBuilder
of()
factory method for an instance of CustomerSignInResultBuilderstatic CustomerSignInResultBuilder
of
(CustomerSignInResult template) create builder for CustomerSignInResult instancewithCart
(Function<CartBuilder, Cart> builder) Cart associated with the Customer.withCustomer
(Function<CustomerBuilder, Customer> builder)
-
Constructor Details
-
CustomerSignInResultBuilder
public CustomerSignInResultBuilder()
-
-
Method Details
-
customer
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
- Parameters:
customer
- value to be set- Returns:
- Builder
-
cart
Cart associated with the Customer. If empty, the Customer does not have a Cart assigned.
- Parameters:
builder
- function to build the cart value- Returns:
- Builder
-
withCart
Cart associated with the Customer. If empty, the Customer does not have a Cart assigned.
- Parameters:
builder
- function to build the cart value- Returns:
- Builder
-
cart
Cart associated with the Customer. If empty, the Customer does not have a Cart assigned.
- Parameters:
cart
- value to be set- Returns:
- Builder
-
getCustomer
- Returns:
- customer
-
getCart
Cart associated with the Customer. If empty, the Customer does not have a Cart assigned.
- Returns:
- cart
-
build
builds CustomerSignInResult with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerSignInResult>
- Returns:
- CustomerSignInResult
-
buildUnchecked
builds CustomerSignInResult without checking for non-null required values- Returns:
- CustomerSignInResult
-
of
factory method for an instance of CustomerSignInResultBuilder- Returns:
- builder
-
of
create builder for CustomerSignInResult instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-