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