Class ProductSetProductPriceCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<ProductSetProductPriceCustomFieldAction>
Example to create an instance using the builder pattern
ProductSetProductPriceCustomFieldAction productSetProductPriceCustomFieldAction = ProductSetProductPriceCustomFieldAction.builder()
.priceId("{priceId}")
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSetProductPriceCustomFieldAction with checking for non-null required valuesbuilds ProductSetProductPriceCustomFieldAction without checking for non-null required valuesgetName()
Name of the Custom Field.Theid
of the Embedded Price to update.Iftrue
, only the staged Embedded Price Custom Field is updated.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.Name of the Custom Field.of()
factory method for an instance of ProductSetProductPriceCustomFieldActionBuilderof
(ProductSetProductPriceCustomFieldAction template) create builder for ProductSetProductPriceCustomFieldAction instanceTheid
of the Embedded Price to update.Iftrue
, only the staged Embedded Price Custom Field is updated.Ifvalue
is absent ornull
, this field will be removed if it exists.
-
Constructor Details
-
ProductSetProductPriceCustomFieldActionBuilder
public ProductSetProductPriceCustomFieldActionBuilder()
-
-
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 Custom Field is updated. Iffalse
, both the current and staged Embedded Price Custom Field are updated.- Parameters:
staged
- value to be set- Returns:
- Builder
-
name
Name of the Custom Field.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Parameters:
value
- 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 Custom Field is updated. Iffalse
, both the current and staged Embedded Price Custom Field are updated.- Returns:
- staged
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Returns:
- value
-
build
builds ProductSetProductPriceCustomFieldAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSetProductPriceCustomFieldAction>
- Returns:
- ProductSetProductPriceCustomFieldAction
-
buildUnchecked
builds ProductSetProductPriceCustomFieldAction without checking for non-null required values- Returns:
- ProductSetProductPriceCustomFieldAction
-
of
factory method for an instance of ProductSetProductPriceCustomFieldActionBuilder- Returns:
- builder
-
of
public static ProductSetProductPriceCustomFieldActionBuilder of(ProductSetProductPriceCustomFieldAction template) create builder for ProductSetProductPriceCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-