Class OrderSetDeliveryCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<OrderSetDeliveryCustomFieldAction>
Example to create an instance using the builder pattern
OrderSetDeliveryCustomFieldAction orderSetDeliveryCustomFieldAction = OrderSetDeliveryCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetDeliveryCustomFieldAction with checking for non-null required valuesbuilds OrderSetDeliveryCustomFieldAction 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 OrderSetDeliveryCustomFieldActionBuilderof
(OrderSetDeliveryCustomFieldAction template) create builder for OrderSetDeliveryCustomFieldAction instanceIfvalue
is absent ornull
, this field will be removed if it exists.
-
Constructor Details
-
OrderSetDeliveryCustomFieldActionBuilder
public OrderSetDeliveryCustomFieldActionBuilder()
-
-
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 OrderSetDeliveryCustomFieldAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetDeliveryCustomFieldAction>
- Returns:
- OrderSetDeliveryCustomFieldAction
-
buildUnchecked
builds OrderSetDeliveryCustomFieldAction without checking for non-null required values- Returns:
- OrderSetDeliveryCustomFieldAction
-
of
factory method for an instance of OrderSetDeliveryCustomFieldActionBuilder- Returns:
- builder
-
of
public static OrderSetDeliveryCustomFieldActionBuilder of(OrderSetDeliveryCustomFieldAction template) create builder for OrderSetDeliveryCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-