Class CartSetShippingAddressCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<CartSetShippingAddressCustomTypeAction>
Example to create an instance using the builder pattern
CartSetShippingAddressCustomTypeAction cartSetShippingAddressCustomTypeAction = CartSetShippingAddressCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartSetShippingAddressCustomTypeAction with checking for non-null required valuesbuilds CartSetShippingAddressCustomTypeAction without checking for non-null required valuesfields(FieldContainer fields) Object containing the Custom Fields fields for theshippingAddress.Object containing the Custom Fields fields for theshippingAddress.Object containing the Custom Fields fields for theshippingAddress.getType()of()factory method for an instance of CartSetShippingAddressCustomTypeActionBuilderof(CartSetShippingAddressCustomTypeAction template) create builder for CartSetShippingAddressCustomTypeAction instancetype(TypeResourceIdentifier type) Object containing the Custom Fields fields for theshippingAddress.
-
Constructor Details
-
CartSetShippingAddressCustomTypeActionBuilder
public CartSetShippingAddressCustomTypeActionBuilder()
-
-
Method Details
-
type
public CartSetShippingAddressCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the
shippingAddresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from theshippingAddress.- Parameters:
builder- function to build the type value- Returns:
- Builder
-
withType
public CartSetShippingAddressCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the
shippingAddresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from theshippingAddress.- Parameters:
builder- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the
shippingAddresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from theshippingAddress.- Parameters:
type- value to be set- Returns:
- Builder
-
fields
public CartSetShippingAddressCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Object containing the Custom Fields fields for the
shippingAddress.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 CartSetShippingAddressCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Object containing the Custom Fields fields for the
shippingAddress.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
shippingAddress.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
-
getType
Defines the Type that extends the
shippingAddresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from theshippingAddress.- Returns:
- type
-
getFields
Object containing the Custom Fields fields for the
shippingAddress.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Returns:
- fields
-
build
builds CartSetShippingAddressCustomTypeAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CartSetShippingAddressCustomTypeAction>- Returns:
- CartSetShippingAddressCustomTypeAction
-
buildUnchecked
builds CartSetShippingAddressCustomTypeAction without checking for non-null required values- Returns:
- CartSetShippingAddressCustomTypeAction
-
of
factory method for an instance of CartSetShippingAddressCustomTypeActionBuilder- Returns:
- builder
-
of
public static CartSetShippingAddressCustomTypeActionBuilder of(CartSetShippingAddressCustomTypeAction template) create builder for CartSetShippingAddressCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-