Interface ProductTailoringSetProductAttributeAction
- All Superinterfaces:
ProductTailoringUpdateAction
ProductTailoringSetProductAttributeAction
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()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTailoringSetProductAttributeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTailoringSetProductAttributeActioncreate builder for ProductTailoringSetProductAttributeAction instancecopyDeep()
factory method to create a deep copy of ProductTailoringSetProductAttributeAction@NotNull String
getName()
Name of the Attribute to set.Iftrue
, then only the staged Attribute is set.getValue()
Value to set for the Attribute.of()
factory methodof
(ProductTailoringSetProductAttributeAction template) factory method to create a shallow copy ProductTailoringSetProductAttributeActionvoid
Name of the Attribute to set.void
Iftrue
, then only the staged Attribute is set.void
Value to set for the Attribute.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringSetProductAttributeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductTailoringSetProductAttributeAction
(Function<ProductTailoringSetProductAttributeAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product_tailoring.ProductTailoringUpdateAction
getAction, withProductTailoringUpdateAction
-
Field Details
-
SET_PRODUCT_ATTRIBUTE
discriminator value for ProductTailoringSetProductAttributeAction- See Also:
-
-
Method Details
-
getName
Name of the Attribute to set.
- Returns:
- name
-
getValue
Object 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
Boolean getStaged()If
true
, then only the staged Attribute is set. Iffalse
, then both the current and staged Attributes are set.- Returns:
- staged
-
setName
Name of the Attribute to set.
- Parameters:
name
- value to be set
-
setValue
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
- For Enum Type and Localized Enum Type, use either the
-
setStaged
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
-
of
factory method- Returns:
- instance of ProductTailoringSetProductAttributeAction
-
of
static ProductTailoringSetProductAttributeAction of(ProductTailoringSetProductAttributeAction template) factory method to create a shallow copy ProductTailoringSetProductAttributeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTailoringSetProductAttributeAction copyDeep()- Specified by:
copyDeep
in interfaceProductTailoringUpdateAction
-
deepCopy
@Nullable static ProductTailoringSetProductAttributeAction deepCopy(@Nullable ProductTailoringSetProductAttributeAction template) factory method to create a deep copy of ProductTailoringSetProductAttributeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringSetProductAttributeAction- Returns:
- builder
-
builder
static ProductTailoringSetProductAttributeActionBuilder builder(ProductTailoringSetProductAttributeAction template) create builder for ProductTailoringSetProductAttributeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringSetProductAttributeAction
default <T> T withProductTailoringSetProductAttributeAction(Function<ProductTailoringSetProductAttributeAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringSetProductAttributeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-