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