Class CustomerAddressCustomFieldAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CustomerAddressCustomFieldAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CustomerAddressCustomFieldAddedMessagePayload>
public class CustomerAddressCustomFieldAddedMessagePayloadBuilder
extends Object
implements Builder<CustomerAddressCustomFieldAddedMessagePayload>
CustomerAddressCustomFieldAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerAddressCustomFieldAddedMessagePayload customerAddressCustomFieldAddedMessagePayload = CustomerAddressCustomFieldAddedMessagePayload.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionid
of the Address to which the Custom Field was added.build()
builds CustomerAddressCustomFieldAddedMessagePayload with checking for non-null required valuesbuilds CustomerAddressCustomFieldAddedMessagePayload without checking for non-null required valuesid
of the Address to which the Custom Field was added.getName()
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 CustomerAddressCustomFieldAddedMessagePayloadBuildercreate builder for CustomerAddressCustomFieldAddedMessagePayload instanceThe added CustomFieldValue based on the FieldType.
-
Constructor Details
-
CustomerAddressCustomFieldAddedMessagePayloadBuilder
public CustomerAddressCustomFieldAddedMessagePayloadBuilder()
-
-
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
-
addressId
id
of the Address to which the Custom Field was added.- Parameters:
addressId
- 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
-
getAddressId
id
of the Address to which the Custom Field was added.- Returns:
- addressId
-
build
builds CustomerAddressCustomFieldAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerAddressCustomFieldAddedMessagePayload>
- Returns:
- CustomerAddressCustomFieldAddedMessagePayload
-
buildUnchecked
builds CustomerAddressCustomFieldAddedMessagePayload without checking for non-null required values- Returns:
- CustomerAddressCustomFieldAddedMessagePayload
-
of
factory method for an instance of CustomerAddressCustomFieldAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static CustomerAddressCustomFieldAddedMessagePayloadBuilder of(CustomerAddressCustomFieldAddedMessagePayload template) create builder for CustomerAddressCustomFieldAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-