Class CustomerCustomFieldAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CustomerCustomFieldAddedMessagePayloadBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<CustomerCustomFieldAddedMessagePayload>
public class CustomerCustomFieldAddedMessagePayloadBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<CustomerCustomFieldAddedMessagePayload>
CustomerCustomFieldAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerCustomFieldAddedMessagePayload customerCustomFieldAddedMessagePayload = CustomerCustomFieldAddedMessagePayload.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerCustomFieldAddedMessagePayload with checking for non-null required valuesbuilds CustomerCustomFieldAddedMessagePayload without checking for non-null required valuesgetName()
Name of the Custom Field that was added.getValue()
The added CustomFieldValue based on the FieldType.Name of the Custom Field that was added.of()
factory method for an instance of CustomerCustomFieldAddedMessagePayloadBuilderof
(CustomerCustomFieldAddedMessagePayload template) create builder for CustomerCustomFieldAddedMessagePayload instanceThe added CustomFieldValue based on the FieldType.
-
Constructor Details
-
CustomerCustomFieldAddedMessagePayloadBuilder
public CustomerCustomFieldAddedMessagePayloadBuilder()
-
-
Method Details
-
name
Name of the Custom Field that was added.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
The added CustomFieldValue based on the FieldType.
- Parameters:
value
- value to be set- Returns:
- Builder
-
getName
Name of the Custom Field that was added.
- Returns:
- name
-
getValue
The added CustomFieldValue based on the FieldType.
- Returns:
- value
-
build
builds CustomerCustomFieldAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<CustomerCustomFieldAddedMessagePayload>
- Returns:
- CustomerCustomFieldAddedMessagePayload
-
buildUnchecked
builds CustomerCustomFieldAddedMessagePayload without checking for non-null required values- Returns:
- CustomerCustomFieldAddedMessagePayload
-
of
factory method for an instance of CustomerCustomFieldAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static CustomerCustomFieldAddedMessagePayloadBuilder of(CustomerCustomFieldAddedMessagePayload template) create builder for CustomerCustomFieldAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-