Class BusinessUnitAddressCustomFieldChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitAddressCustomFieldChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitAddressCustomFieldChangedMessagePayload>
public class BusinessUnitAddressCustomFieldChangedMessagePayloadBuilder
extends Object
implements Builder<BusinessUnitAddressCustomFieldChangedMessagePayload>
BusinessUnitAddressCustomFieldChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitAddressCustomFieldChangedMessagePayload businessUnitAddressCustomFieldChangedMessagePayload = BusinessUnitAddressCustomFieldChangedMessagePayload.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionid
of the Address of which the Custom Field was changed.build()
builds BusinessUnitAddressCustomFieldChangedMessagePayload with checking for non-null required valuesbuilds BusinessUnitAddressCustomFieldChangedMessagePayload without checking for non-null required valuesid
of the Address of which the Custom Field was changed.getName()
Name of the Custom Field that changed.CustomFieldValue based on the FieldType before the Set CustomField update action.getValue()
CustomFieldValue based on the FieldType after the Set CustomField update action.Name of the Custom Field that changed.of()
factory method for an instance of BusinessUnitAddressCustomFieldChangedMessagePayloadBuildercreate builder for BusinessUnitAddressCustomFieldChangedMessagePayload instanceCustomFieldValue based on the FieldType before the Set CustomField update action.CustomFieldValue based on the FieldType after the Set CustomField update action.
-
Constructor Details
-
BusinessUnitAddressCustomFieldChangedMessagePayloadBuilder
public BusinessUnitAddressCustomFieldChangedMessagePayloadBuilder()
-
-
Method Details
-
name
Name of the Custom Field that changed.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
CustomFieldValue based on the FieldType after the Set CustomField update action.
- Parameters:
value
- value to be set- Returns:
- Builder
-
oldValue
public BusinessUnitAddressCustomFieldChangedMessagePayloadBuilder oldValue(@Nullable Object oldValue) CustomFieldValue based on the FieldType before the Set CustomField update action.
- Parameters:
oldValue
- value to be set- Returns:
- Builder
-
addressId
public BusinessUnitAddressCustomFieldChangedMessagePayloadBuilder addressId(@Nullable String addressId) id
of the Address of which the Custom Field was changed.- Parameters:
addressId
- value to be set- Returns:
- Builder
-
getName
Name of the Custom Field that changed.
- Returns:
- name
-
getValue
CustomFieldValue based on the FieldType after the Set CustomField update action.
- Returns:
- value
-
getOldValue
CustomFieldValue based on the FieldType before the Set CustomField update action.
- Returns:
- oldValue
-
getAddressId
id
of the Address of which the Custom Field was changed.- Returns:
- addressId
-
build
builds BusinessUnitAddressCustomFieldChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitAddressCustomFieldChangedMessagePayload>
- Returns:
- BusinessUnitAddressCustomFieldChangedMessagePayload
-
buildUnchecked
builds BusinessUnitAddressCustomFieldChangedMessagePayload without checking for non-null required values- Returns:
- BusinessUnitAddressCustomFieldChangedMessagePayload
-
of
factory method for an instance of BusinessUnitAddressCustomFieldChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitAddressCustomFieldChangedMessagePayloadBuilder of(BusinessUnitAddressCustomFieldChangedMessagePayload template) create builder for BusinessUnitAddressCustomFieldChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-