Class ProductSetAttributeInAllVariantsActionImpl
- All Implemented Interfaces:
ProductSetAttributeInAllVariantsAction
,ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
,io.vrap.rmf.base.client.ModelBase
Adds, removes, or changes a Product Attribute in all Product Variants at the same time. This action is useful for setting values for Attributes with the Constraint SameForAll
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.product.ProductSetAttributeInAllVariantsAction
SET_ATTRIBUTE_IN_ALL_VARIANTS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
The name of the Attribute to set.Iftrue
, only the staged Attributes are set.getValue()
Value to set for the Attributes.int
hashCode()
void
The name of the Attribute to set.void
Iftrue
, only the staged Attributes are set.void
Value to set for the Attributes.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product.ProductSetAttributeInAllVariantsAction
withProductSetAttributeInAllVariantsAction
Methods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductSetAttributeInAllVariantsActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceProductUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ProductUpdateAction>
- Returns:
- action
-
getName
The name of the Attribute to set.
- Specified by:
getName
in interfaceProductSetAttributeInAllVariantsAction
- 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
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 Nested Type Attributes, use the list of values of all Attributes of the nested Product as
value
. - For Reference Type Attributes, use the Reference object as
value
.
- Specified by:
getValue
in interfaceProductSetAttributeInAllVariantsAction
- 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.- Specified by:
getStaged
in interfaceProductSetAttributeInAllVariantsAction
- Returns:
- staged
-
setName
Description copied from interface:ProductSetAttributeInAllVariantsAction
The name of the Attribute to set.
- Specified by:
setName
in interfaceProductSetAttributeInAllVariantsAction
- Parameters:
name
- value to be set
-
setValue
Description copied from interface:ProductSetAttributeInAllVariantsAction
Value to set for the Attributes. 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 Nested Type Attributes, use the list of values of all Attributes of the nested Product as
value
. - For Reference Type Attributes, use the Reference object as
value
.
- Specified by:
setValue
in interfaceProductSetAttributeInAllVariantsAction
- Parameters:
value
- value to be set
- For Enum Type and Localized Enum Type, use the
-
setStaged
Description copied from interface:ProductSetAttributeInAllVariantsAction
If
true
, only the staged Attributes are set. Iffalse
, both the current and staged Attributes are set.- Specified by:
setStaged
in interfaceProductSetAttributeInAllVariantsAction
- Parameters:
staged
- value to be set
-
equals
-
hashCode
-