Class TypeAddFieldDefinitionActionImpl
java.lang.Object
com.commercetools.api.models.type.TypeAddFieldDefinitionActionImpl
- All Implemented Interfaces:
ResourceUpdateAction<TypeUpdateAction>
,TypeAddFieldDefinitionAction
,TypeUpdateAction
,io.vrap.rmf.base.client.ModelBase
public class TypeAddFieldDefinitionActionImpl
extends Object
implements TypeAddFieldDefinitionAction, io.vrap.rmf.base.client.ModelBase
Defines a new field for a Type. Adding new required fields to a Type that is already referenced by existing entities can put those entities in a temporarily inconsistent state.
If a Type that is already in use requires new fields, we recommend making them optional (required
set to false
) whenever possible. Alternatively, any new required fields should be added one at a time followed by an update to all the resources using the Type. This prevents validation errors caused by an entity missing more than one required custom field.
-
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.TypeAddFieldDefinitionAction
ADD_FIELD_DEFINITION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to append to the array.int
hashCode()
void
setFieldDefinition
(FieldDefinition fieldDefinition) 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.TypeAddFieldDefinitionAction
withTypeAddFieldDefinitionAction
Methods inherited from interface com.commercetools.api.models.type.TypeUpdateAction
withTypeUpdateAction
-
Constructor Details
-
TypeAddFieldDefinitionActionImpl
public TypeAddFieldDefinitionActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<TypeUpdateAction>
- Specified by:
getAction
in interfaceTypeUpdateAction
- Returns:
- action
-
getFieldDefinition
Value to append to the array.
- Specified by:
getFieldDefinition
in interfaceTypeAddFieldDefinitionAction
- Returns:
- fieldDefinition
-
setFieldDefinition
Description copied from interface:TypeAddFieldDefinitionAction
Value to append to the array.
- Specified by:
setFieldDefinition
in interfaceTypeAddFieldDefinitionAction
- Parameters:
fieldDefinition
- value to be set
-
equals
-
hashCode
-