Class ProductTailoringSetProductAttributeActionBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringSetProductAttributeActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringSetProductAttributeAction>
public class ProductTailoringSetProductAttributeActionBuilder
extends Object
implements Builder<ProductTailoringSetProductAttributeAction>
ProductTailoringSetProductAttributeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringSetProductAttributeAction productTailoringSetProductAttributeAction = ProductTailoringSetProductAttributeAction.builder()
.name("{name}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTailoringSetProductAttributeAction with checking for non-null required valuesbuilds ProductTailoringSetProductAttributeAction without checking for non-null required valuesgetName()
Name of the Attribute to set.Iftrue
, then only the staged Attribute is set.getValue()
Value to set for the Attribute.Name of the Attribute to set.of()
factory method for an instance of ProductTailoringSetProductAttributeActionBuilderof
(ProductTailoringSetProductAttributeAction template) create builder for ProductTailoringSetProductAttributeAction instanceIftrue
, then only the staged Attribute is set.Value to set for the Attribute.
-
Constructor Details
-
ProductTailoringSetProductAttributeActionBuilder
public ProductTailoringSetProductAttributeActionBuilder()
-
-
Method Details
-
name
Name of the Attribute to set.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
Value to set for the Attribute. If empty, then any existing value will be removed.
AttributeType determines the format of the Attribute
value
to be provided:- For Enum Type and Localized Enum Type, use either the
key
of the Plain Enum Value or Localized Enum Value object or the complete object 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 either the
-
staged
If
true
, then only the staged Attribute is set. Iffalse
, then both the current and staged Attributes are set.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getName
Name of the Attribute to set.
- Returns:
- name
-
getValue
Value to set for the Attribute. If empty, then any existing value will be removed.
AttributeType determines the format of the Attribute
value
to be provided:- For Enum Type and Localized Enum Type, use either the
key
of the Plain Enum Value or Localized Enum Value object or the complete object 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 either the
-
getStaged
If
true
, then only the staged Attribute is set. Iffalse
, then both the current and staged Attributes are set.- Returns:
- staged
-
build
builds ProductTailoringSetProductAttributeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringSetProductAttributeAction>
- Returns:
- ProductTailoringSetProductAttributeAction
-
buildUnchecked
builds ProductTailoringSetProductAttributeAction without checking for non-null required values- Returns:
- ProductTailoringSetProductAttributeAction
-
of
factory method for an instance of ProductTailoringSetProductAttributeActionBuilder- Returns:
- builder
-
of
public static ProductTailoringSetProductAttributeActionBuilder of(ProductTailoringSetProductAttributeAction template) create builder for ProductTailoringSetProductAttributeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-