Interface BusinessUnitSetAddressCustomFieldAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
- All Known Implementing Classes:
BusinessUnitSetAddressCustomFieldActionImpl
BusinessUnitSetAddressCustomFieldAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitSetAddressCustomFieldAction businessUnitSetAddressCustomFieldAction = BusinessUnitSetAddressCustomFieldAction.builder()
.addressId("{addressId}")
.name("{name}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitSetAddressCustomFieldAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitSetAddressCustomFieldActioncreate builder for BusinessUnitSetAddressCustomFieldAction instancefactory method to create a deep copy of BusinessUnitSetAddressCustomFieldAction@NotNull String
ID of the address to be extended.@NotNull String
getName()
Name of the Custom Field.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.of()
factory methodof
(BusinessUnitSetAddressCustomFieldAction template) factory method to create a shallow copy BusinessUnitSetAddressCustomFieldActionvoid
setAddressId
(String addressId) ID of the address to be extended.void
Name of the Custom Field.void
Ifvalue
is absent ornull
, this field will be removed if it exists.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitSetAddressCustomFieldAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBusinessUnitSetAddressCustomFieldAction
(Function<BusinessUnitSetAddressCustomFieldAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitUpdateAction
getAction, withBusinessUnitUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_ADDRESS_CUSTOM_FIELD
discriminator value for BusinessUnitSetAddressCustomFieldAction- See Also:
-
-
Method Details
-
getAddressId
ID of the address to be extended.
- Returns:
- addressId
-
getName
Name of the Custom Field.
- 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
.- Returns:
- value
-
setAddressId
ID of the address to be extended.
- Parameters:
addressId
- value to be set
-
setName
Name of the Custom Field.
- Parameters:
name
- value to be set
-
setValue
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
.- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitSetAddressCustomFieldAction
-
of
factory method to create a shallow copy BusinessUnitSetAddressCustomFieldAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitSetAddressCustomFieldAction deepCopy(@Nullable BusinessUnitSetAddressCustomFieldAction template) factory method to create a deep copy of BusinessUnitSetAddressCustomFieldAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitSetAddressCustomFieldAction- Returns:
- builder
-
builder
static BusinessUnitSetAddressCustomFieldActionBuilder builder(BusinessUnitSetAddressCustomFieldAction template) create builder for BusinessUnitSetAddressCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitSetAddressCustomFieldAction
default <T> T withBusinessUnitSetAddressCustomFieldAction(Function<BusinessUnitSetAddressCustomFieldAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
ofUnset
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitSetAddressCustomFieldAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-