Class TypeAddEnumValueActionImpl
java.lang.Object
com.commercetools.api.models.type.TypeAddEnumValueActionImpl
- All Implemented Interfaces:
ResourceUpdateAction<TypeUpdateAction>
,TypeAddEnumValueAction
,TypeUpdateAction
,io.vrap.rmf.base.client.ModelBase
public class TypeAddEnumValueActionImpl
extends Object
implements TypeAddEnumValueAction, io.vrap.rmf.base.client.ModelBase
Adds a value to an EnumType. This update action can be used to update an EnumType FieldDefinition and a SetType FieldDefinition of EnumType.
-
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.type.TypeAddEnumValueAction
ADD_ENUM_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
name
of the Field Definition to update.getValue()
Value to append to the array.int
hashCode()
void
setFieldName
(String fieldName) name
of the Field Definition to update.void
setValue
(CustomFieldEnumValue value) Value to append to the array.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.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.type.TypeAddEnumValueAction
withTypeAddEnumValueAction
Methods inherited from interface com.commercetools.api.models.type.TypeUpdateAction
withTypeUpdateAction
-
Constructor Details
-
TypeAddEnumValueActionImpl
public TypeAddEnumValueActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<TypeUpdateAction>
- Specified by:
getAction
in interfaceTypeUpdateAction
- Returns:
- action
-
getFieldName
name
of the Field Definition to update.- Specified by:
getFieldName
in interfaceTypeAddEnumValueAction
- Returns:
- fieldName
-
getValue
Value to append to the array.
- Specified by:
getValue
in interfaceTypeAddEnumValueAction
- Returns:
- value
-
setFieldName
Description copied from interface:TypeAddEnumValueAction
name
of the Field Definition to update.- Specified by:
setFieldName
in interfaceTypeAddEnumValueAction
- Parameters:
fieldName
- value to be set
-
setValue
Description copied from interface:TypeAddEnumValueAction
Value to append to the array.
- Specified by:
setValue
in interfaceTypeAddEnumValueAction
- Parameters:
value
- value to be set
-
equals
-
hashCode
public int hashCode()
-