Interface CustomerSetAddressCustomTypeAction
- All Superinterfaces:
CustomerUpdateAction,ResourceUpdateAction<CustomerUpdateAction>
Adding or updating a Custom Type on an Address of a Customer generates the CustomerAddressCustomTypeSet Message, and removing one generates the CustomerAddressCustomTypeRemoved Message.
Example to create an instance using the builder pattern
CustomerSetAddressCustomTypeAction customerSetAddressCustomTypeAction = CustomerSetAddressCustomTypeAction.builder()
.addressId("{addressId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerSetAddressCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerSetAddressCustomTypeActionbuilder(CustomerSetAddressCustomTypeAction template) create builder for CustomerSetAddressCustomTypeAction instancecopyDeep()deepCopy(CustomerSetAddressCustomTypeAction template) factory method to create a deep copy of CustomerSetAddressCustomTypeAction@NotNull StringUser-defined unique identifier of the Address to be updated.@Valid FieldContainerSets the Custom Fields fields for theaddress.@Valid TypeResourceIdentifiergetType()of()factory methodof(CustomerSetAddressCustomTypeAction template) factory method to create a shallow copy CustomerSetAddressCustomTypeActionvoidsetAddressId(String addressId) User-defined unique identifier of the Address to be updated.voidsetFields(FieldContainer fields) Sets the Custom Fields fields for theaddress.voidstatic com.fasterxml.jackson.core.type.TypeReference<CustomerSetAddressCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_ADDRESS_CUSTOM_TYPE
discriminator value for CustomerSetAddressCustomTypeAction- See Also:
-
-
Method Details
-
getAddressId
User-defined unique identifier of the Address to be updated.
- Returns:
- addressId
-
getType
Defines the Type that extends the
addresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from theaddress.- Returns:
- type
-
getFields
Sets the Custom Fields fields for the
address.- Returns:
- fields
-
setAddressId
User-defined unique identifier of the Address to be updated.
- Parameters:
addressId- value to be set
-
setType
Defines the Type that extends the
addresswith 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 fields for the
address.- Parameters:
fields- value to be set
-
of
factory method- Returns:
- instance of CustomerSetAddressCustomTypeAction
-
of
factory method to create a shallow copy CustomerSetAddressCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerSetAddressCustomTypeAction copyDeep()- Specified by:
copyDeepin interfaceCustomerUpdateAction
-
deepCopy
@Nullable static CustomerSetAddressCustomTypeAction deepCopy(@Nullable CustomerSetAddressCustomTypeAction template) factory method to create a deep copy of CustomerSetAddressCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSetAddressCustomTypeAction- Returns:
- builder
-
builder
static CustomerSetAddressCustomTypeActionBuilder builder(CustomerSetAddressCustomTypeAction template) create builder for CustomerSetAddressCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSetAddressCustomTypeAction
default <T> T withCustomerSetAddressCustomTypeAction(Function<CustomerSetAddressCustomTypeAction, 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<CustomerSetAddressCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-