Package com.commercetools.api.models.me
Interface MyBusinessUnitSetAddressCustomTypeAction
- All Superinterfaces:
MyBusinessUnitUpdateAction
Adding or updating a Custom Type to 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
MyBusinessUnitSetAddressCustomTypeAction myBusinessUnitSetAddressCustomTypeAction = MyBusinessUnitSetAddressCustomTypeAction.builder()
.addressId("{addressId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for MyBusinessUnitSetAddressCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyBusinessUnitSetAddressCustomTypeActioncreate builder for MyBusinessUnitSetAddressCustomTypeAction instancecopyDeep()
factory method to create a deep copy of MyBusinessUnitSetAddressCustomTypeAction@NotNull String
ID of theaddress
to be extended.@Valid FieldContainer
Sets the Custom Fields fields for theaddress
.@Valid TypeResourceIdentifier
getType()
of()
factory methodof
(MyBusinessUnitSetAddressCustomTypeAction template) factory method to create a shallow copy MyBusinessUnitSetAddressCustomTypeActionvoid
setAddressId
(String addressId) ID of theaddress
to be extended.void
setFields
(FieldContainer fields) Sets the Custom Fields fields for theaddress
.void
static com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitSetAddressCustomTypeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyBusinessUnitSetAddressCustomTypeAction
(Function<MyBusinessUnitSetAddressCustomTypeAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyBusinessUnitUpdateAction
getAction, withMyBusinessUnitUpdateAction
-
Field Details
-
SET_ADDRESS_CUSTOM_TYPE
discriminator value for MyBusinessUnitSetAddressCustomTypeAction- 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 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 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 MyBusinessUnitSetAddressCustomTypeAction
-
of
static MyBusinessUnitSetAddressCustomTypeAction of(MyBusinessUnitSetAddressCustomTypeAction template) factory method to create a shallow copy MyBusinessUnitSetAddressCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
MyBusinessUnitSetAddressCustomTypeAction copyDeep()- Specified by:
copyDeep
in interfaceMyBusinessUnitUpdateAction
-
deepCopy
@Nullable static MyBusinessUnitSetAddressCustomTypeAction deepCopy(@Nullable MyBusinessUnitSetAddressCustomTypeAction template) factory method to create a deep copy of MyBusinessUnitSetAddressCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyBusinessUnitSetAddressCustomTypeAction- Returns:
- builder
-
builder
static MyBusinessUnitSetAddressCustomTypeActionBuilder builder(MyBusinessUnitSetAddressCustomTypeAction template) create builder for MyBusinessUnitSetAddressCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyBusinessUnitSetAddressCustomTypeAction
default <T> T withMyBusinessUnitSetAddressCustomTypeAction(Function<MyBusinessUnitSetAddressCustomTypeAction, 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<MyBusinessUnitSetAddressCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-