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 Stringdiscriminator 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 StringID of theaddressto be extended.@Valid FieldContainerSets the Custom Fields fields for theaddress.@Valid TypeResourceIdentifiergetType()of()factory methodof(MyBusinessUnitSetAddressCustomTypeAction template) factory method to create a shallow copy MyBusinessUnitSetAddressCustomTypeActionvoidsetAddressId(String addressId) ID of theaddressto be extended.voidsetFields(FieldContainer fields) Sets the Custom Fields fields for theaddress.voidstatic com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitSetAddressCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyBusinessUnitSetAddressCustomTypeAction(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
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
-
getAddressId
ID of the
addressto be extended.- Returns:
- addressId
-
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
-
setAddressId
ID of the
addressto 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:
copyDeepin 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
-