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