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