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