Package com.commercetools.api.models.me
Class MyPaymentSetTransactionCustomFieldActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyPaymentSetTransactionCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<MyPaymentSetTransactionCustomFieldAction>
public class MyPaymentSetTransactionCustomFieldActionBuilder
extends Object
implements Builder<MyPaymentSetTransactionCustomFieldAction>
MyPaymentSetTransactionCustomFieldActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyPaymentSetTransactionCustomFieldAction myPaymentSetTransactionCustomFieldAction = MyPaymentSetTransactionCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyPaymentSetTransactionCustomFieldAction with checking for non-null required valuesbuilds MyPaymentSetTransactionCustomFieldAction without checking for non-null required valuesgetName()
Name of the Custom Field.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.Name of the Custom Field.of()
factory method for an instance of MyPaymentSetTransactionCustomFieldActionBuilderof
(MyPaymentSetTransactionCustomFieldAction template) create builder for MyPaymentSetTransactionCustomFieldAction instanceIfvalue
is absent ornull
, this field will be removed if it exists.
-
Constructor Details
-
MyPaymentSetTransactionCustomFieldActionBuilder
public MyPaymentSetTransactionCustomFieldActionBuilder()
-
-
Method Details
-
name
Name of the Custom Field.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Parameters:
value
- value to be set- Returns:
- Builder
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Returns:
- value
-
build
builds MyPaymentSetTransactionCustomFieldAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyPaymentSetTransactionCustomFieldAction>
- Returns:
- MyPaymentSetTransactionCustomFieldAction
-
buildUnchecked
builds MyPaymentSetTransactionCustomFieldAction without checking for non-null required values- Returns:
- MyPaymentSetTransactionCustomFieldAction
-
of
factory method for an instance of MyPaymentSetTransactionCustomFieldActionBuilder- Returns:
- builder
-
of
public static MyPaymentSetTransactionCustomFieldActionBuilder of(MyPaymentSetTransactionCustomFieldAction template) create builder for MyPaymentSetTransactionCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-