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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddressKey(String addressKey) 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.Sets the Custom Fields fields for theitemShippingAddress.getType()of()factory method for an instance of StagedOrderSetItemShippingAddressCustomTypeActionBuildercreate builder for StagedOrderSetItemShippingAddressCustomTypeAction instancetype(TypeResourceIdentifier type) Sets the Custom Fields fields for theitemShippingAddress.
-
Constructor Details
-
StagedOrderSetItemShippingAddressCustomTypeActionBuilder
public StagedOrderSetItemShippingAddressCustomTypeActionBuilder()
-
-
Method Details
-
addressKey
keyof 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
itemShippingAddresswith 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
itemShippingAddresswith 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
itemShippingAddresswith 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
keyof the Address initemShippingAddresses.- Returns:
- addressKey
-
getType
Defines the Type that extends the
itemShippingAddresswith 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:
buildin 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
-