Class OrderSetDeliveryAddressCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<OrderSetDeliveryAddressCustomFieldAction>
Example to create an instance using the builder pattern
OrderSetDeliveryAddressCustomFieldAction orderSetDeliveryAddressCustomFieldAction = OrderSetDeliveryAddressCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetDeliveryAddressCustomFieldAction with checking for non-null required valuesbuilds OrderSetDeliveryAddressCustomFieldAction without checking for non-null required valuesdeliveryId
(String deliveryId) id
of an existing Delivery.deliveryKey
(String deliveryKey) key
of an existing Delivery.id
of an existing Delivery.key
of an existing Delivery.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 OrderSetDeliveryAddressCustomFieldActionBuilderof
(OrderSetDeliveryAddressCustomFieldAction template) create builder for OrderSetDeliveryAddressCustomFieldAction instanceIfvalue
is absent ornull
, this field will be removed if it exists.
-
Constructor Details
-
OrderSetDeliveryAddressCustomFieldActionBuilder
public OrderSetDeliveryAddressCustomFieldActionBuilder()
-
-
Method Details
-
deliveryId
id
of an existing Delivery.Either
deliveryId
ordeliveryKey
must be provided.- Parameters:
deliveryId
- value to be set- Returns:
- Builder
-
deliveryKey
key
of an existing Delivery.Either
deliveryId
ordeliveryKey
must be provided.- Parameters:
deliveryKey
- 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
-
getDeliveryId
id
of an existing Delivery.Either
deliveryId
ordeliveryKey
must be provided.- Returns:
- deliveryId
-
getDeliveryKey
key
of an existing Delivery.Either
deliveryId
ordeliveryKey
must be provided.- Returns:
- deliveryKey
-
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 OrderSetDeliveryAddressCustomFieldAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetDeliveryAddressCustomFieldAction>
- Returns:
- OrderSetDeliveryAddressCustomFieldAction
-
buildUnchecked
builds OrderSetDeliveryAddressCustomFieldAction without checking for non-null required values- Returns:
- OrderSetDeliveryAddressCustomFieldAction
-
of
factory method for an instance of OrderSetDeliveryAddressCustomFieldActionBuilder- Returns:
- builder
-
of
public static OrderSetDeliveryAddressCustomFieldActionBuilder of(OrderSetDeliveryAddressCustomFieldAction template) create builder for OrderSetDeliveryAddressCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-