Class ProductSetProductPriceCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<ProductSetProductPriceCustomTypeAction>
Example to create an instance using the builder pattern
ProductSetProductPriceCustomTypeAction productSetProductPriceCustomTypeAction = ProductSetProductPriceCustomTypeAction.builder()
.priceId("{priceId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSetProductPriceCustomTypeAction with checking for non-null required valuesbuilds ProductSetProductPriceCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for the Embedded Price.Sets the Custom Fields fields for the Embedded Price.Sets the Custom Fields fields for the Embedded Price.Theid
of the Embedded Price to update.Iftrue
, only the staged Embedded Price is updated.getType()
Defines the Type that extends the Price with Custom Fields.of()
factory method for an instance of ProductSetProductPriceCustomTypeActionBuilderof
(ProductSetProductPriceCustomTypeAction template) create builder for ProductSetProductPriceCustomTypeAction instanceTheid
of the Embedded Price to update.Iftrue
, only the staged Embedded Price is updated.type
(TypeResourceIdentifier type) Defines the Type that extends the Price with Custom Fields.Defines the Type that extends the Price with Custom Fields.Sets the Custom Fields fields for the Embedded Price.Defines the Type that extends the Price with Custom Fields.
-
Constructor Details
-
ProductSetProductPriceCustomTypeActionBuilder
public ProductSetProductPriceCustomTypeActionBuilder()
-
-
Method Details
-
priceId
The
id
of the Embedded Price to update.- Parameters:
priceId
- value to be set- Returns:
- Builder
-
staged
If
true
, only the staged Embedded Price is updated. Iffalse
, both the current and staged Embedded Price is updated.- Parameters:
staged
- value to be set- Returns:
- Builder
-
type
public ProductSetProductPriceCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Price with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Embedded Price.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public ProductSetProductPriceCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Price with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Embedded Price.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Price with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Embedded Price.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public ProductSetProductPriceCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the Embedded Price.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public ProductSetProductPriceCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the Embedded Price.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the Embedded Price.
- Parameters:
fields
- value to be set- Returns:
- Builder
-
getPriceId
The
id
of the Embedded Price to update.- Returns:
- priceId
-
getStaged
If
true
, only the staged Embedded Price is updated. Iffalse
, both the current and staged Embedded Price is updated.- Returns:
- staged
-
getType
Defines the Type that extends the Price with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Embedded Price.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Embedded Price.
- Returns:
- fields
-
build
builds ProductSetProductPriceCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSetProductPriceCustomTypeAction>
- Returns:
- ProductSetProductPriceCustomTypeAction
-
buildUnchecked
builds ProductSetProductPriceCustomTypeAction without checking for non-null required values- Returns:
- ProductSetProductPriceCustomTypeAction
-
of
factory method for an instance of ProductSetProductPriceCustomTypeActionBuilder- Returns:
- builder
-
of
public static ProductSetProductPriceCustomTypeActionBuilder of(ProductSetProductPriceCustomTypeAction template) create builder for ProductSetProductPriceCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-