Class OrderCustomerGroupSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderCustomerGroupSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderCustomerGroupSetMessagePayload>
public class OrderCustomerGroupSetMessagePayloadBuilder
extends Object
implements Builder<OrderCustomerGroupSetMessagePayload>
OrderCustomerGroupSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderCustomerGroupSetMessagePayload orderCustomerGroupSetMessagePayload = OrderCustomerGroupSetMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderCustomerGroupSetMessagePayload with checking for non-null required valuesbuilds OrderCustomerGroupSetMessagePayload without checking for non-null required valuescustomerGroup
(CustomerGroupReference customerGroup) CustomerGroup on the Order after the Set Customer Group update action.CustomerGroup on the Order after the Set Customer Group update action.CustomerGroup on the Order after the Set Customer Group update action.CustomerGroup on the Order before the Set Customer Group update action.of()
factory method for an instance of OrderCustomerGroupSetMessagePayloadBuilderof
(OrderCustomerGroupSetMessagePayload template) create builder for OrderCustomerGroupSetMessagePayload instanceoldCustomerGroup
(CustomerGroupReference oldCustomerGroup) CustomerGroup on the Order before the Set Customer Group update action.CustomerGroup on the Order before the Set Customer Group update action.CustomerGroup on the Order after the Set Customer Group update action.CustomerGroup on the Order before the Set Customer Group update action.
-
Constructor Details
-
OrderCustomerGroupSetMessagePayloadBuilder
public OrderCustomerGroupSetMessagePayloadBuilder()
-
-
Method Details
-
customerGroup
public OrderCustomerGroupSetMessagePayloadBuilder customerGroup(Function<CustomerGroupReferenceBuilder, CustomerGroupReferenceBuilder> builder) CustomerGroup on the Order after the Set Customer Group update action.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
withCustomerGroup
public OrderCustomerGroupSetMessagePayloadBuilder withCustomerGroup(Function<CustomerGroupReferenceBuilder, CustomerGroupReference> builder) CustomerGroup on the Order after the Set Customer Group update action.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
customerGroup
public OrderCustomerGroupSetMessagePayloadBuilder customerGroup(@Nullable CustomerGroupReference customerGroup) CustomerGroup on the Order after the Set Customer Group update action.
- Parameters:
customerGroup
- value to be set- Returns:
- Builder
-
oldCustomerGroup
public OrderCustomerGroupSetMessagePayloadBuilder oldCustomerGroup(Function<CustomerGroupReferenceBuilder, CustomerGroupReferenceBuilder> builder) CustomerGroup on the Order before the Set Customer Group update action.
- Parameters:
builder
- function to build the oldCustomerGroup value- Returns:
- Builder
-
withOldCustomerGroup
public OrderCustomerGroupSetMessagePayloadBuilder withOldCustomerGroup(Function<CustomerGroupReferenceBuilder, CustomerGroupReference> builder) CustomerGroup on the Order before the Set Customer Group update action.
- Parameters:
builder
- function to build the oldCustomerGroup value- Returns:
- Builder
-
oldCustomerGroup
public OrderCustomerGroupSetMessagePayloadBuilder oldCustomerGroup(@Nullable CustomerGroupReference oldCustomerGroup) CustomerGroup on the Order before the Set Customer Group update action.
- Parameters:
oldCustomerGroup
- value to be set- Returns:
- Builder
-
getCustomerGroup
CustomerGroup on the Order after the Set Customer Group update action.
- Returns:
- customerGroup
-
getOldCustomerGroup
CustomerGroup on the Order before the Set Customer Group update action.
- Returns:
- oldCustomerGroup
-
build
builds OrderCustomerGroupSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderCustomerGroupSetMessagePayload>
- Returns:
- OrderCustomerGroupSetMessagePayload
-
buildUnchecked
builds OrderCustomerGroupSetMessagePayload without checking for non-null required values- Returns:
- OrderCustomerGroupSetMessagePayload
-
of
factory method for an instance of OrderCustomerGroupSetMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderCustomerGroupSetMessagePayloadBuilder of(OrderCustomerGroupSetMessagePayload template) create builder for OrderCustomerGroupSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-