Class StagedOrderSetDeliveryAddressCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetDeliveryAddressCustomTypeAction>
Example to create an instance using the builder pattern
StagedOrderSetDeliveryAddressCustomTypeAction stagedOrderSetDeliveryAddressCustomTypeAction = StagedOrderSetDeliveryAddressCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StagedOrderSetDeliveryAddressCustomTypeAction with checking for non-null required valuesbuilds StagedOrderSetDeliveryAddressCustomTypeAction without checking for non-null required valuesdeliveryId(String deliveryId) idof an existing Delivery.deliveryKey(String deliveryKey) keyof an existing Delivery.fields(FieldContainer fields) idof an existing Delivery.keyof an existing Delivery.getType()of()factory method for an instance of StagedOrderSetDeliveryAddressCustomTypeActionBuildercreate builder for StagedOrderSetDeliveryAddressCustomTypeAction instancetype(TypeResourceIdentifier type)
-
Constructor Details
-
StagedOrderSetDeliveryAddressCustomTypeActionBuilder
public StagedOrderSetDeliveryAddressCustomTypeActionBuilder()
-
-
Method Details
-
deliveryId
idof an existing Delivery.Either
deliveryIdordeliveryKeymust be provided.- Parameters:
deliveryId- value to be set- Returns:
- Builder
-
deliveryKey
public StagedOrderSetDeliveryAddressCustomTypeActionBuilder deliveryKey(@Nullable String deliveryKey) keyof an existing Delivery.Either
deliveryIdordeliveryKeymust be provided.- Parameters:
deliveryKey- value to be set- Returns:
- Builder
-
type
public StagedOrderSetDeliveryAddressCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Delivery
addresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from the Deliveryaddress.- Parameters:
builder- function to build the type value- Returns:
- Builder
-
withType
public StagedOrderSetDeliveryAddressCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Delivery
addresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from the Deliveryaddress.- Parameters:
builder- function to build the type value- Returns:
- Builder
-
type
public StagedOrderSetDeliveryAddressCustomTypeActionBuilder type(@Nullable TypeResourceIdentifier type) Defines the Type that extends the Delivery
addresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from the Deliveryaddress.- Parameters:
type- value to be set- Returns:
- Builder
-
fields
public StagedOrderSetDeliveryAddressCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the Delivery
address.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
withFields
public StagedOrderSetDeliveryAddressCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the Delivery
address.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the Delivery
address.- Parameters:
fields- value to be set- Returns:
- Builder
-
getDeliveryId
idof an existing Delivery.Either
deliveryIdordeliveryKeymust be provided.- Returns:
- deliveryId
-
getDeliveryKey
keyof an existing Delivery.Either
deliveryIdordeliveryKeymust be provided.- Returns:
- deliveryKey
-
getType
Defines the Type that extends the Delivery
addresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from the Deliveryaddress.- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Delivery
address.- Returns:
- fields
-
build
builds StagedOrderSetDeliveryAddressCustomTypeAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StagedOrderSetDeliveryAddressCustomTypeAction>- Returns:
- StagedOrderSetDeliveryAddressCustomTypeAction
-
buildUnchecked
builds StagedOrderSetDeliveryAddressCustomTypeAction without checking for non-null required values- Returns:
- StagedOrderSetDeliveryAddressCustomTypeAction
-
of
factory method for an instance of StagedOrderSetDeliveryAddressCustomTypeActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetDeliveryAddressCustomTypeActionBuilder of(StagedOrderSetDeliveryAddressCustomTypeAction template) create builder for StagedOrderSetDeliveryAddressCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-