Class BusinessUnitSetCustomFieldActionImpl
- All Implemented Interfaces:
BusinessUnitSetCustomFieldAction
,BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
,io.vrap.rmf.base.client.ModelBase
Adding a Custom Field to a Business Unit generates the BusinessUnitCustomFieldAdded Message, removing one generates the BusinessUnitCustomFieldRemoved Message, and updating an existing one generates the BusinessUnitCustomFieldChanged Message.
-
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.business_unit.BusinessUnitSetCustomFieldAction
SET_CUSTOM_FIELD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
Name of the Custom Field to add, update, or remove.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.int
hashCode()
void
Name of the Custom Field to add, update, or remove.void
Ifvalue
is absent ornull
, this field will be removed if it exists.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitSetCustomFieldAction
withBusinessUnitSetCustomFieldAction
Methods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitUpdateAction
withBusinessUnitUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
BusinessUnitSetCustomFieldActionImpl
public BusinessUnitSetCustomFieldActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceBusinessUnitUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<BusinessUnitUpdateAction>
- Returns:
- action
-
getName
Name of the Custom Field to add, update, or remove.
- Specified by:
getName
in interfaceBusinessUnitSetCustomFieldAction
- Returns:
- name
-
getValue
If
value
is absent ornull
, this field will be removed if it exists. Trying to remove a field that does not exist will fail with an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Specified by:
getValue
in interfaceBusinessUnitSetCustomFieldAction
- Returns:
- value
-
setName
Description copied from interface:BusinessUnitSetCustomFieldAction
Name of the Custom Field to add, update, or remove.
- Specified by:
setName
in interfaceBusinessUnitSetCustomFieldAction
- Parameters:
name
- value to be set
-
setValue
Description copied from interface:BusinessUnitSetCustomFieldAction
If
value
is absent ornull
, this field will be removed if it exists. Trying to remove a field that does not exist will fail with an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Specified by:
setValue
in interfaceBusinessUnitSetCustomFieldAction
- Parameters:
value
- value to be set
-
equals
-
hashCode
public int hashCode()
-