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
Constructors -
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.Theidof the Embedded Price to update.Iftrue, only the staged Embedded Price Custom Field is updated.getValue()Ifvalueis 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 instanceTheidof the Embedded Price to update.Iftrue, only the staged Embedded Price Custom Field is updated.Ifvalueis absent ornull, this field will be removed if it exists.
-
Constructor Details
-
ProductSetProductPriceCustomFieldActionBuilder
public ProductSetProductPriceCustomFieldActionBuilder()
-
-
Method Details
-
priceId
The
idof 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
valueis absent ornull, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalueis provided, it is set for the field defined byname.- Parameters:
value- value to be set- Returns:
- Builder
-
getPriceId
The
idof 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
valueis absent ornull, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalueis provided, it is set for the field defined byname.- Returns:
- value
-
build
builds ProductSetProductPriceCustomFieldAction with checking for non-null required values- Specified by:
buildin 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
-