Class StagedOrderSetCustomerGroupActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetCustomerGroupActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetCustomerGroupAction>
public class StagedOrderSetCustomerGroupActionBuilder
extends Object
implements Builder<StagedOrderSetCustomerGroupAction>
StagedOrderSetCustomerGroupActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetCustomerGroupAction stagedOrderSetCustomerGroupAction = StagedOrderSetCustomerGroupAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetCustomerGroupAction with checking for non-null required valuesbuilds StagedOrderSetCustomerGroupAction without checking for non-null required valuescustomerGroup
(CustomerGroupResourceIdentifier customerGroup) Value to set.customerGroup
(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) Value to set.Value to set.of()
factory method for an instance of StagedOrderSetCustomerGroupActionBuilderof
(StagedOrderSetCustomerGroupAction template) create builder for StagedOrderSetCustomerGroupAction instancewithCustomerGroup
(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) Value to set.
-
Constructor Details
-
StagedOrderSetCustomerGroupActionBuilder
public StagedOrderSetCustomerGroupActionBuilder()
-
-
Method Details
-
customerGroup
public StagedOrderSetCustomerGroupActionBuilder customerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
withCustomerGroup
public StagedOrderSetCustomerGroupActionBuilder withCustomerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
customerGroup
public StagedOrderSetCustomerGroupActionBuilder customerGroup(@Nullable CustomerGroupResourceIdentifier customerGroup) Value to set. If empty, any existing value is removed.
- Parameters:
customerGroup
- value to be set- Returns:
- Builder
-
getCustomerGroup
Value to set. If empty, any existing value is removed.
- Returns:
- customerGroup
-
build
builds StagedOrderSetCustomerGroupAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetCustomerGroupAction>
- Returns:
- StagedOrderSetCustomerGroupAction
-
buildUnchecked
builds StagedOrderSetCustomerGroupAction without checking for non-null required values- Returns:
- StagedOrderSetCustomerGroupAction
-
of
factory method for an instance of StagedOrderSetCustomerGroupActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetCustomerGroupActionBuilder of(StagedOrderSetCustomerGroupAction template) create builder for StagedOrderSetCustomerGroupAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-