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