Class CartSetItemShippingAddressCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<CartSetItemShippingAddressCustomTypeAction>
Example to create an instance using the builder pattern
CartSetItemShippingAddressCustomTypeAction cartSetItemShippingAddressCustomTypeAction = CartSetItemShippingAddressCustomTypeAction.builder()
.addressKey("{addressKey}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddressKey
(String addressKey) key
of the Address initemShippingAddress
.build()
builds CartSetItemShippingAddressCustomTypeAction with checking for non-null required valuesbuilds CartSetItemShippingAddressCustomTypeAction 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 initemShippingAddress
.Sets the Custom Fields fields for theitemShippingAddress
.getType()
Defines the Type that extends theitemShippingAddress
with Custom Fields.of()
factory method for an instance of CartSetItemShippingAddressCustomTypeActionBuilderof
(CartSetItemShippingAddressCustomTypeAction template) create builder for CartSetItemShippingAddressCustomTypeAction 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
-
CartSetItemShippingAddressCustomTypeActionBuilder
public CartSetItemShippingAddressCustomTypeActionBuilder()
-
-
Method Details
-
addressKey
key
of the Address initemShippingAddress
.- Parameters:
addressKey
- value to be set- Returns:
- Builder
-
type
public CartSetItemShippingAddressCustomTypeActionBuilder 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 CartSetItemShippingAddressCustomTypeActionBuilder 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 CartSetItemShippingAddressCustomTypeActionBuilder 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 CartSetItemShippingAddressCustomTypeActionBuilder 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 CartSetItemShippingAddressCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the
itemShippingAddress
.- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the
itemShippingAddress
.- Parameters:
fields
- value to be set- Returns:
- Builder
-
getAddressKey
key
of the Address initemShippingAddress
.- 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 CartSetItemShippingAddressCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartSetItemShippingAddressCustomTypeAction>
- Returns:
- CartSetItemShippingAddressCustomTypeAction
-
buildUnchecked
builds CartSetItemShippingAddressCustomTypeAction without checking for non-null required values- Returns:
- CartSetItemShippingAddressCustomTypeAction
-
of
factory method for an instance of CartSetItemShippingAddressCustomTypeActionBuilder- Returns:
- builder
-
of
public static CartSetItemShippingAddressCustomTypeActionBuilder of(CartSetItemShippingAddressCustomTypeAction template) create builder for CartSetItemShippingAddressCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-