Class OrderSetDeliveryAddressCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<OrderSetDeliveryAddressCustomTypeAction>
Example to create an instance using the builder pattern
OrderSetDeliveryAddressCustomTypeAction orderSetDeliveryAddressCustomTypeAction = OrderSetDeliveryAddressCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetDeliveryAddressCustomTypeAction with checking for non-null required valuesbuilds OrderSetDeliveryAddressCustomTypeAction without checking for non-null required valuesdeliveryId
(String deliveryId) id
of an existing Delivery.deliveryKey
(String deliveryKey) key
of an existing Delivery.fields
(FieldContainer fields) Sets the Custom Fields fields for the Deliveryaddress
.Sets the Custom Fields fields for the Deliveryaddress
.id
of an existing Delivery.key
of an existing Delivery.Sets the Custom Fields fields for the Deliveryaddress
.getType()
Defines the Type that extends the Deliveryaddress
with Custom Fields.of()
factory method for an instance of OrderSetDeliveryAddressCustomTypeActionBuilderof
(OrderSetDeliveryAddressCustomTypeAction template) create builder for OrderSetDeliveryAddressCustomTypeAction instancetype
(TypeResourceIdentifier type) Defines the Type that extends the Deliveryaddress
with Custom Fields.Defines the Type that extends the Deliveryaddress
with Custom Fields.Sets the Custom Fields fields for the Deliveryaddress
.Defines the Type that extends the Deliveryaddress
with Custom Fields.
-
Constructor Details
-
OrderSetDeliveryAddressCustomTypeActionBuilder
public OrderSetDeliveryAddressCustomTypeActionBuilder()
-
-
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
-
type
public OrderSetDeliveryAddressCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Delivery
address
with 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 OrderSetDeliveryAddressCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Delivery
address
with 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
Defines the Type that extends the Delivery
address
with 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 OrderSetDeliveryAddressCustomTypeActionBuilder 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 OrderSetDeliveryAddressCustomTypeActionBuilder 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
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
-
getType
Defines the Type that extends the Delivery
address
with 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 OrderSetDeliveryAddressCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetDeliveryAddressCustomTypeAction>
- Returns:
- OrderSetDeliveryAddressCustomTypeAction
-
buildUnchecked
builds OrderSetDeliveryAddressCustomTypeAction without checking for non-null required values- Returns:
- OrderSetDeliveryAddressCustomTypeAction
-
of
factory method for an instance of OrderSetDeliveryAddressCustomTypeActionBuilder- Returns:
- builder
-
of
public static OrderSetDeliveryAddressCustomTypeActionBuilder of(OrderSetDeliveryAddressCustomTypeAction template) create builder for OrderSetDeliveryAddressCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-