Interface BusinessUnitSetAddressCustomTypeAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
Adding or updating a Custom Type on an Address of a Business Unit generates the BusinessUnitAddressCustomTypeSet Message, and removing one generates the BusinessUnitAddressCustomTypeRemoved Message.
Example to create an instance using the builder pattern
BusinessUnitSetAddressCustomTypeAction businessUnitSetAddressCustomTypeAction = BusinessUnitSetAddressCustomTypeAction.builder()
.addressId("{addressId}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitSetAddressCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitSetAddressCustomTypeActioncreate builder for BusinessUnitSetAddressCustomTypeAction instancefactory method to create a deep copy of BusinessUnitSetAddressCustomTypeAction@NotNull String
ID of the address to be extended.@Valid FieldContainer
Sets the Custom Fields for theaddress
.@Valid TypeResourceIdentifier
getType()
Defines the Type that extends theaddress
with Custom Fields.of()
factory methodof
(BusinessUnitSetAddressCustomTypeAction template) factory method to create a shallow copy BusinessUnitSetAddressCustomTypeActionvoid
setAddressId
(String addressId) ID of the address to be extended.void
setFields
(FieldContainer fields) Sets the Custom Fields for theaddress
.void
Defines the Type that extends theaddress
with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitSetAddressCustomTypeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBusinessUnitSetAddressCustomTypeAction
(Function<BusinessUnitSetAddressCustomTypeAction, 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_TYPE
discriminator value for BusinessUnitSetAddressCustomTypeAction- See Also:
-
-
Method Details
-
getType
Defines the Type that extends the
address
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theaddress
.- Returns:
- type
-
getFields
Sets the Custom Fields for the
address
.- Returns:
- fields
-
getAddressId
ID of the address to be extended.
- Returns:
- addressId
-
setType
Defines the Type that extends the
address
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theaddress
.- Parameters:
type
- value to be set
-
setFields
Sets the Custom Fields for the
address
.- Parameters:
fields
- value to be set
-
setAddressId
ID of the address to be extended.
- Parameters:
addressId
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitSetAddressCustomTypeAction
-
of
factory method to create a shallow copy BusinessUnitSetAddressCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitSetAddressCustomTypeAction deepCopy(@Nullable BusinessUnitSetAddressCustomTypeAction template) factory method to create a deep copy of BusinessUnitSetAddressCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitSetAddressCustomTypeAction- Returns:
- builder
-
builder
static BusinessUnitSetAddressCustomTypeActionBuilder builder(BusinessUnitSetAddressCustomTypeAction template) create builder for BusinessUnitSetAddressCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitSetAddressCustomTypeAction
default <T> T withBusinessUnitSetAddressCustomTypeAction(Function<BusinessUnitSetAddressCustomTypeAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitSetAddressCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-