Class ProductTailoringSetAttributeActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringSetAttributeAction>
Example to create an instance using the builder pattern
ProductTailoringSetAttributeAction productTailoringSetAttributeAction = ProductTailoringSetAttributeAction.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTailoringSetAttributeAction with checking for non-null required valuesbuilds ProductTailoringSetAttributeAction without checking for non-null required valuesgetName()
The name of the Attribute to set.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the staged Attribute is set.getValue()
Value to set for the Attribute.Theid
of the ProductVariant to update.The name of the Attribute to set.of()
factory method for an instance of ProductTailoringSetAttributeActionBuilderof
(ProductTailoringSetAttributeAction template) create builder for ProductTailoringSetAttributeAction instanceThesku
of the ProductVariant to update.Iftrue
, only the staged Attribute is set.Value to set for the Attribute.Theid
of the ProductVariant to update.
-
Constructor Details
-
ProductTailoringSetAttributeActionBuilder
public ProductTailoringSetAttributeActionBuilder()
-
-
Method Details
-
variantId
The
id
of the ProductVariant to update. Required ifsku
is absent.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
The
sku
of the ProductVariant to update. Required ifvariantId
is absent.- Parameters:
sku
- value to be set- Returns:
- Builder
-
name
The name of the Attribute to set.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
Value to set for the Attribute. If empty, any existing value will be removed.
The AttributeType determines the format of the Attribute
value
to be provided:- For Enum Type and Localized Enum Type, use the
key
of the Plain Enum Value or Localized Enum Value objects, or the complete objects asvalue
. - For Localizable Text Type, use the LocalizedString object as
value
. - For Money Type Attributes, use the Money object as
value
. - For Set Type Attributes, use the entire
set
object asvalue
. - For Reference Type Attributes, use the Reference object as
value
.
Tailoring of Nested Type Attributes is not supported.
- Parameters:
value
- value to be set- Returns:
- Builder
- For Enum Type and Localized Enum Type, use the
-
staged
If
true
, only the staged Attribute is set. Iffalse
, both current and staged Attribute is set.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getVariantId
The
id
of the ProductVariant to update. Required ifsku
is absent.- Returns:
- variantId
-
getSku
The
sku
of the ProductVariant to update. Required ifvariantId
is absent.- Returns:
- sku
-
getName
The name of the Attribute to set.
- Returns:
- name
-
getValue
Value to set for the Attribute. If empty, any existing value will be removed.
The AttributeType determines the format of the Attribute
value
to be provided:- For Enum Type and Localized Enum Type, use the
key
of the Plain Enum Value or Localized Enum Value objects, or the complete objects asvalue
. - For Localizable Text Type, use the LocalizedString object as
value
. - For Money Type Attributes, use the Money object as
value
. - For Set Type Attributes, use the entire
set
object asvalue
. - For Reference Type Attributes, use the Reference object as
value
.
Tailoring of Nested Type Attributes is not supported.
- Returns:
- value
- For Enum Type and Localized Enum Type, use the
-
getStaged
If
true
, only the staged Attribute is set. Iffalse
, both current and staged Attribute is set.- Returns:
- staged
-
build
builds ProductTailoringSetAttributeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringSetAttributeAction>
- Returns:
- ProductTailoringSetAttributeAction
-
buildUnchecked
builds ProductTailoringSetAttributeAction without checking for non-null required values- Returns:
- ProductTailoringSetAttributeAction
-
of
factory method for an instance of ProductTailoringSetAttributeActionBuilder- Returns:
- builder
-
of
public static ProductTailoringSetAttributeActionBuilder of(ProductTailoringSetAttributeAction template) create builder for ProductTailoringSetAttributeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-