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