Class CustomerGroupAssignmentDraftBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder
- All Implemented Interfaces:
Builder<CustomerGroupAssignmentDraft>
public class CustomerGroupAssignmentDraftBuilder
extends Object
implements Builder<CustomerGroupAssignmentDraft>
CustomerGroupAssignmentDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerGroupAssignmentDraft customerGroupAssignmentDraft = CustomerGroupAssignmentDraft.builder()
.customerGroup(customerGroupBuilder -> customerGroupBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CustomerGroupAssignmentDraft with checking for non-null required valuesbuilds CustomerGroupAssignmentDraft without checking for non-null required valuescustomerGroup(CustomerGroupResourceIdentifier customerGroup) ResourceIdentifier of a Customer Group.customerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) ResourceIdentifier of a Customer Group.ResourceIdentifier of a Customer Group.of()factory method for an instance of CustomerGroupAssignmentDraftBuilderof(CustomerGroupAssignmentDraft template) create builder for CustomerGroupAssignmentDraft instancewithCustomerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) ResourceIdentifier of a Customer Group.
-
Constructor Details
-
CustomerGroupAssignmentDraftBuilder
public CustomerGroupAssignmentDraftBuilder()
-
-
Method Details
-
customerGroup
public CustomerGroupAssignmentDraftBuilder customerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) ResourceIdentifier of a Customer Group.
- Parameters:
builder- function to build the customerGroup value- Returns:
- Builder
-
withCustomerGroup
public CustomerGroupAssignmentDraftBuilder withCustomerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) ResourceIdentifier of a Customer Group.
- Parameters:
builder- function to build the customerGroup value- Returns:
- Builder
-
customerGroup
public CustomerGroupAssignmentDraftBuilder customerGroup(CustomerGroupResourceIdentifier customerGroup) ResourceIdentifier of a Customer Group.
- Parameters:
customerGroup- value to be set- Returns:
- Builder
-
getCustomerGroup
ResourceIdentifier of a Customer Group.
- Returns:
- customerGroup
-
build
builds CustomerGroupAssignmentDraft with checking for non-null required values- Specified by:
buildin interfaceBuilder<CustomerGroupAssignmentDraft>- Returns:
- CustomerGroupAssignmentDraft
-
buildUnchecked
builds CustomerGroupAssignmentDraft without checking for non-null required values- Returns:
- CustomerGroupAssignmentDraft
-
of
factory method for an instance of CustomerGroupAssignmentDraftBuilder- Returns:
- builder
-
of
create builder for CustomerGroupAssignmentDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-