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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddressKey(String addressKey) build()builds CartSetItemShippingAddressCustomTypeAction with checking for non-null required valuesbuilds CartSetItemShippingAddressCustomTypeAction without checking for non-null required valuesfields(FieldContainer fields) Object containing the Custom Fields fields for theitemShippingAddress.Object containing the Custom Fields fields for theitemShippingAddress.Object containing the Custom Fields fields for theitemShippingAddress.getType()of()factory method for an instance of CartSetItemShippingAddressCustomTypeActionBuilderof(CartSetItemShippingAddressCustomTypeAction template) create builder for CartSetItemShippingAddressCustomTypeAction instancetype(TypeResourceIdentifier type) Object containing the Custom Fields fields for theitemShippingAddress.
-
Constructor Details
-
CartSetItemShippingAddressCustomTypeActionBuilder
public CartSetItemShippingAddressCustomTypeActionBuilder()
-
-
Method Details
-
addressKey
keyof 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
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 CartSetItemShippingAddressCustomTypeActionBuilder 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 CartSetItemShippingAddressCustomTypeActionBuilder 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 CartSetItemShippingAddressCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Object containing the Custom Fields fields for the
itemShippingAddress.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
withFields
public CartSetItemShippingAddressCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Object containing the Custom Fields fields for the
itemShippingAddress.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
fields
Object containing the Custom Fields fields for the
itemShippingAddress.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
fields- value to be set- Returns:
- Builder
-
getAddressKey
keyof the Address initemShippingAddress.- 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
Object containing the Custom Fields fields for the
itemShippingAddress.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Returns:
- fields
-
build
builds CartSetItemShippingAddressCustomTypeAction with checking for non-null required values- Specified by:
buildin 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
-