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