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