Class OrderSetItemShippingAddressCustomFieldActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSetItemShippingAddressCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<OrderSetItemShippingAddressCustomFieldAction>
public class OrderSetItemShippingAddressCustomFieldActionBuilder
extends Object
implements Builder<OrderSetItemShippingAddressCustomFieldAction>
OrderSetItemShippingAddressCustomFieldActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetItemShippingAddressCustomFieldAction orderSetItemShippingAddressCustomFieldAction = OrderSetItemShippingAddressCustomFieldAction.builder()
.addressKey("{addressKey}")
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddressKey
(String addressKey) key
of the Address initemShippingAddresses
.build()
builds OrderSetItemShippingAddressCustomFieldAction with checking for non-null required valuesbuilds OrderSetItemShippingAddressCustomFieldAction without checking for non-null required valueskey
of the Address initemShippingAddresses
.getName()
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 OrderSetItemShippingAddressCustomFieldActionBuildercreate builder for OrderSetItemShippingAddressCustomFieldAction instanceIfvalue
is absent ornull
, this field will be removed if it exists.
-
Constructor Details
-
OrderSetItemShippingAddressCustomFieldActionBuilder
public OrderSetItemShippingAddressCustomFieldActionBuilder()
-
-
Method Details
-
addressKey
key
of the Address initemShippingAddresses
.- Parameters:
addressKey
- value to be set- Returns:
- Builder
-
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
-
getAddressKey
key
of the Address initemShippingAddresses
.- Returns:
- addressKey
-
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 OrderSetItemShippingAddressCustomFieldAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetItemShippingAddressCustomFieldAction>
- Returns:
- OrderSetItemShippingAddressCustomFieldAction
-
buildUnchecked
builds OrderSetItemShippingAddressCustomFieldAction without checking for non-null required values- Returns:
- OrderSetItemShippingAddressCustomFieldAction
-
of
factory method for an instance of OrderSetItemShippingAddressCustomFieldActionBuilder- Returns:
- builder
-
of
public static OrderSetItemShippingAddressCustomFieldActionBuilder of(OrderSetItemShippingAddressCustomFieldAction template) create builder for OrderSetItemShippingAddressCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-