Class CustomerGroupSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CustomerGroupSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CustomerGroupSetMessagePayload>
public class CustomerGroupSetMessagePayloadBuilder
extends Object
implements Builder<CustomerGroupSetMessagePayload>
CustomerGroupSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerGroupSetMessagePayload customerGroupSetMessagePayload = CustomerGroupSetMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerGroupSetMessagePayload with checking for non-null required valuesbuilds CustomerGroupSetMessagePayload without checking for non-null required valuescustomerGroup
(CustomerGroupReference customerGroup) Customer Group that was set during the Set Customer Group update action.Customer Group that was set during the Set Customer Group update action.Customer Group that was set during the Set Customer Group update action.of()
factory method for an instance of CustomerGroupSetMessagePayloadBuilderof
(CustomerGroupSetMessagePayload template) create builder for CustomerGroupSetMessagePayload instanceCustomer Group that was set during the Set Customer Group update action.
-
Constructor Details
-
CustomerGroupSetMessagePayloadBuilder
public CustomerGroupSetMessagePayloadBuilder()
-
-
Method Details
-
customerGroup
public CustomerGroupSetMessagePayloadBuilder customerGroup(Function<CustomerGroupReferenceBuilder, CustomerGroupReferenceBuilder> builder) Customer Group that was set during the Set Customer Group update action.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
withCustomerGroup
public CustomerGroupSetMessagePayloadBuilder withCustomerGroup(Function<CustomerGroupReferenceBuilder, CustomerGroupReference> builder) Customer Group that was set during the Set Customer Group update action.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
customerGroup
public CustomerGroupSetMessagePayloadBuilder customerGroup(@Nullable CustomerGroupReference customerGroup) Customer Group that was set during the Set Customer Group update action.
- Parameters:
customerGroup
- value to be set- Returns:
- Builder
-
getCustomerGroup
Customer Group that was set during the Set Customer Group update action.
- Returns:
- customerGroup
-
build
builds CustomerGroupSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerGroupSetMessagePayload>
- Returns:
- CustomerGroupSetMessagePayload
-
buildUnchecked
builds CustomerGroupSetMessagePayload without checking for non-null required values- Returns:
- CustomerGroupSetMessagePayload
-
of
factory method for an instance of CustomerGroupSetMessagePayloadBuilder- Returns:
- builder
-
of
create builder for CustomerGroupSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-