Class PaymentMethodSetCustomFieldActionBuilder
java.lang.Object
com.commercetools.api.models.payment_method.PaymentMethodSetCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<PaymentMethodSetCustomFieldAction>
public class PaymentMethodSetCustomFieldActionBuilder
extends Object
implements Builder<PaymentMethodSetCustomFieldAction>
PaymentMethodSetCustomFieldActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentMethodSetCustomFieldAction paymentMethodSetCustomFieldAction = PaymentMethodSetCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds PaymentMethodSetCustomFieldAction with checking for non-null required valuesbuilds PaymentMethodSetCustomFieldAction without checking for non-null required valuesgetName()Name of the Custom Field to add, update, or remove.getValue()Ifvalueis absent ornull, this field will be removed if it exists.Name of the Custom Field to add, update, or remove.of()factory method for an instance of PaymentMethodSetCustomFieldActionBuilderof(PaymentMethodSetCustomFieldAction template) create builder for PaymentMethodSetCustomFieldAction instanceIfvalueis absent ornull, this field will be removed if it exists.
-
Constructor Details
-
PaymentMethodSetCustomFieldActionBuilder
public PaymentMethodSetCustomFieldActionBuilder()
-
-
Method Details
-
name
Name of the Custom Field to add, update, or remove.
- Parameters:
name- value to be set- Returns:
- Builder
-
value
If
valueis absent ornull, this field will be removed if it exists. Trying to remove a field that does not exist will fail with an InvalidOperation error. Ifvalueis provided, it is set for the field defined byname.- Parameters:
value- value to be set- Returns:
- Builder
-
getName
Name of the Custom Field to add, update, or remove.
- Returns:
- name
-
getValue
If
valueis absent ornull, this field will be removed if it exists. Trying to remove a field that does not exist will fail with an InvalidOperation error. Ifvalueis provided, it is set for the field defined byname.- Returns:
- value
-
build
builds PaymentMethodSetCustomFieldAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<PaymentMethodSetCustomFieldAction>- Returns:
- PaymentMethodSetCustomFieldAction
-
buildUnchecked
builds PaymentMethodSetCustomFieldAction without checking for non-null required values- Returns:
- PaymentMethodSetCustomFieldAction
-
of
factory method for an instance of PaymentMethodSetCustomFieldActionBuilder- Returns:
- builder
-
of
public static PaymentMethodSetCustomFieldActionBuilder of(PaymentMethodSetCustomFieldAction template) create builder for PaymentMethodSetCustomFieldAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-