Class StagedOrderSetItemShippingAddressCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetItemShippingAddressCustomTypeAction>
Example to create an instance using the builder pattern
StagedOrderSetItemShippingAddressCustomTypeAction stagedOrderSetItemShippingAddressCustomTypeAction = StagedOrderSetItemShippingAddressCustomTypeAction.builder()
.addressKey("{addressKey}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddressKey
(String addressKey) key
of the Address initemShippingAddresses
.build()
builds StagedOrderSetItemShippingAddressCustomTypeAction with checking for non-null required valuesbuilds StagedOrderSetItemShippingAddressCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for theitemShippingAddress
.Sets the Custom Fields fields for theitemShippingAddress
.key
of the Address initemShippingAddresses
.Sets the Custom Fields fields for theitemShippingAddress
.getType()
Defines the Type that extends theitemShippingAddress
with Custom Fields.of()
factory method for an instance of StagedOrderSetItemShippingAddressCustomTypeActionBuildercreate builder for StagedOrderSetItemShippingAddressCustomTypeAction instancetype
(TypeResourceIdentifier type) Defines the Type that extends theitemShippingAddress
with Custom Fields.Defines the Type that extends theitemShippingAddress
with Custom Fields.Sets the Custom Fields fields for theitemShippingAddress
.Defines the Type that extends theitemShippingAddress
with Custom Fields.
-
Constructor Details
-
StagedOrderSetItemShippingAddressCustomTypeActionBuilder
public StagedOrderSetItemShippingAddressCustomTypeActionBuilder()
-
-
Method Details
-
addressKey
key
of the Address initemShippingAddresses
.- Parameters:
addressKey
- value to be set- Returns:
- Builder
-
type
public StagedOrderSetItemShippingAddressCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the
itemShippingAddress
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theitemShippingAddress
.- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public StagedOrderSetItemShippingAddressCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the
itemShippingAddress
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theitemShippingAddress
.- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
public StagedOrderSetItemShippingAddressCustomTypeActionBuilder type(@Nullable TypeResourceIdentifier type) Defines the Type that extends the
itemShippingAddress
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theitemShippingAddress
.- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public StagedOrderSetItemShippingAddressCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the
itemShippingAddress
.- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public StagedOrderSetItemShippingAddressCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the
itemShippingAddress
.- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
public StagedOrderSetItemShippingAddressCustomTypeActionBuilder fields(@Nullable FieldContainer fields) Sets the Custom Fields fields for the
itemShippingAddress
.- Parameters:
fields
- value to be set- Returns:
- Builder
-
getAddressKey
key
of the Address initemShippingAddresses
.- Returns:
- addressKey
-
getType
Defines the Type that extends the
itemShippingAddress
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theitemShippingAddress
.- Returns:
- type
-
getFields
Sets the Custom Fields fields for the
itemShippingAddress
.- Returns:
- fields
-
build
builds StagedOrderSetItemShippingAddressCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetItemShippingAddressCustomTypeAction>
- Returns:
- StagedOrderSetItemShippingAddressCustomTypeAction
-
buildUnchecked
builds StagedOrderSetItemShippingAddressCustomTypeAction without checking for non-null required values- Returns:
- StagedOrderSetItemShippingAddressCustomTypeAction
-
of
factory method for an instance of StagedOrderSetItemShippingAddressCustomTypeActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetItemShippingAddressCustomTypeActionBuilder of(StagedOrderSetItemShippingAddressCustomTypeAction template) create builder for StagedOrderSetItemShippingAddressCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-