Class BusinessUnitCustomFieldChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitCustomFieldChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitCustomFieldChangedMessagePayload>
public class BusinessUnitCustomFieldChangedMessagePayloadBuilder
extends Object
implements Builder<BusinessUnitCustomFieldChangedMessagePayload>
BusinessUnitCustomFieldChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitCustomFieldChangedMessagePayload businessUnitCustomFieldChangedMessagePayload = BusinessUnitCustomFieldChangedMessagePayload.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitCustomFieldChangedMessagePayload with checking for non-null required valuesbuilds BusinessUnitCustomFieldChangedMessagePayload without checking for non-null required valuesgetName()
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 BusinessUnitCustomFieldChangedMessagePayloadBuildercreate builder for BusinessUnitCustomFieldChangedMessagePayload instanceCustomFieldValue based on the FieldType before the Set CustomField update action.CustomFieldValue based on the FieldType after the Set CustomField update action.
-
Constructor Details
-
BusinessUnitCustomFieldChangedMessagePayloadBuilder
public BusinessUnitCustomFieldChangedMessagePayloadBuilder()
-
-
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
CustomFieldValue based on the FieldType before the Set CustomField update action.
- Parameters:
oldValue
- 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
-
build
builds BusinessUnitCustomFieldChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitCustomFieldChangedMessagePayload>
- Returns:
- BusinessUnitCustomFieldChangedMessagePayload
-
buildUnchecked
builds BusinessUnitCustomFieldChangedMessagePayload without checking for non-null required values- Returns:
- BusinessUnitCustomFieldChangedMessagePayload
-
of
factory method for an instance of BusinessUnitCustomFieldChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitCustomFieldChangedMessagePayloadBuilder of(BusinessUnitCustomFieldChangedMessagePayload template) create builder for BusinessUnitCustomFieldChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-