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