Class CartDiscountSetCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<CartDiscountSetCustomTypeAction>
Example to create an instance using the builder pattern
CartDiscountSetCustomTypeAction cartDiscountSetCustomTypeAction = CartDiscountSetCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartDiscountSetCustomTypeAction with checking for non-null required valuesbuilds CartDiscountSetCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for the CartDiscount.Sets the Custom Fields fields for the CartDiscount.Sets the Custom Fields fields for the CartDiscount.getType()
Defines the Type that extends the CartDiscount with Custom Fields.of()
factory method for an instance of CartDiscountSetCustomTypeActionBuilderof
(CartDiscountSetCustomTypeAction template) create builder for CartDiscountSetCustomTypeAction instancetype
(TypeResourceIdentifier type) Defines the Type that extends the CartDiscount with Custom Fields.Defines the Type that extends the CartDiscount with Custom Fields.Sets the Custom Fields fields for the CartDiscount.Defines the Type that extends the CartDiscount with Custom Fields.
-
Constructor Details
-
CartDiscountSetCustomTypeActionBuilder
public CartDiscountSetCustomTypeActionBuilder()
-
-
Method Details
-
type
public CartDiscountSetCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the CartDiscount with Custom Fields. If absent, any existing Type and Custom Fields are removed from the CartDiscount.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public CartDiscountSetCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the CartDiscount with Custom Fields. If absent, any existing Type and Custom Fields are removed from the CartDiscount.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the CartDiscount with Custom Fields. If absent, any existing Type and Custom Fields are removed from the CartDiscount.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public CartDiscountSetCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the CartDiscount.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public CartDiscountSetCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the CartDiscount.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the CartDiscount.
- Parameters:
fields
- value to be set- Returns:
- Builder
-
getType
Defines the Type that extends the CartDiscount with Custom Fields. If absent, any existing Type and Custom Fields are removed from the CartDiscount.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the CartDiscount.
- Returns:
- fields
-
build
builds CartDiscountSetCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartDiscountSetCustomTypeAction>
- Returns:
- CartDiscountSetCustomTypeAction
-
buildUnchecked
builds CartDiscountSetCustomTypeAction without checking for non-null required values- Returns:
- CartDiscountSetCustomTypeAction
-
of
factory method for an instance of CartDiscountSetCustomTypeActionBuilder- Returns:
- builder
-
of
create builder for CartDiscountSetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-