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
-
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 signed up or signed in after authentication.customer
(Function<CustomerBuilder, CustomerBuilder> builder) Customer signed up or signed in after authentication.getCart()
Cart associated with the Customer.Customer signed up or signed in after authentication.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) Customer signed up or signed in after authentication.
-
Constructor Details
-
CustomerSignInResultBuilder
public CustomerSignInResultBuilder()
-
-
Method Details
-
customer
Customer signed up or signed in after authentication.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
Customer signed up or signed in after authentication.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
Customer signed up or signed in after authentication.
- 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
Customer signed up or signed in after authentication.
- 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
-