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) Sets the Custom Fields fields for theshippingAddress.Sets the Custom Fields fields for theshippingAddress.Sets the Custom Fields fields for theshippingAddress.getType()of()factory method for an instance of CartSetShippingAddressCustomTypeActionBuilderof(CartSetShippingAddressCustomTypeAction template) create builder for CartSetShippingAddressCustomTypeAction instancetype(TypeResourceIdentifier type) Sets 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) Sets the Custom Fields fields for the
shippingAddress.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
withFields
public CartSetShippingAddressCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the
shippingAddress.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the
shippingAddress.- 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
Sets the Custom Fields fields for the
shippingAddress.- 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
-