Class ReviewSetCustomerActionBuilder
java.lang.Object
com.commercetools.api.models.review.ReviewSetCustomerActionBuilder
- All Implemented Interfaces:
Builder<ReviewSetCustomerAction>
public class ReviewSetCustomerActionBuilder
extends Object
implements Builder<ReviewSetCustomerAction>
ReviewSetCustomerActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReviewSetCustomerAction reviewSetCustomerAction = ReviewSetCustomerAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ReviewSetCustomerAction with checking for non-null required valuesbuilds ReviewSetCustomerAction without checking for non-null required valuescustomer
(CustomerResourceIdentifier customer) Value to set.Value to set.Value to set.of()
factory method for an instance of ReviewSetCustomerActionBuilderof
(ReviewSetCustomerAction template) create builder for ReviewSetCustomerAction instanceValue to set.
-
Constructor Details
-
ReviewSetCustomerActionBuilder
public ReviewSetCustomerActionBuilder()
-
-
Method Details
-
customer
public ReviewSetCustomerActionBuilder customer(Function<CustomerResourceIdentifierBuilder, CustomerResourceIdentifierBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
public ReviewSetCustomerActionBuilder withCustomer(Function<CustomerResourceIdentifierBuilder, CustomerResourceIdentifier> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
Value to set. If empty, any existing value will be removed.
- Parameters:
customer
- value to be set- Returns:
- Builder
-
getCustomer
Value to set. If empty, any existing value will be removed.
- Returns:
- customer
-
build
builds ReviewSetCustomerAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReviewSetCustomerAction>
- Returns:
- ReviewSetCustomerAction
-
buildUnchecked
builds ReviewSetCustomerAction without checking for non-null required values- Returns:
- ReviewSetCustomerAction
-
of
factory method for an instance of ReviewSetCustomerActionBuilder- Returns:
- builder
-
of
create builder for ReviewSetCustomerAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-