Interface AssociateRoleChangeBuyerAssignableAction
- All Superinterfaces:
AssociateRoleUpdateAction,ResourceUpdateAction<AssociateRoleUpdateAction>
Changing the buyerAssignable value of an AssociateRole generates an AssociateRoleBuyerAssignableChanged Message.
Example to create an instance using the builder pattern
AssociateRoleChangeBuyerAssignableAction associateRoleChangeBuyerAssignableAction = AssociateRoleChangeBuyerAssignableAction.builder()
.buyerAssignable(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AssociateRoleChangeBuyerAssignableAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AssociateRoleChangeBuyerAssignableActioncreate builder for AssociateRoleChangeBuyerAssignableAction instancecopyDeep()factory method to create a deep copy of AssociateRoleChangeBuyerAssignableAction@NotNull BooleanThe new value of thebuyerAssignablefield of the AssociateRole.of()factory methodof(AssociateRoleChangeBuyerAssignableAction template) factory method to create a shallow copy AssociateRoleChangeBuyerAssignableActionvoidsetBuyerAssignable(Boolean buyerAssignable) The new value of thebuyerAssignablefield of the AssociateRole.static com.fasterxml.jackson.core.type.TypeReference<AssociateRoleChangeBuyerAssignableAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithAssociateRoleChangeBuyerAssignableAction(Function<AssociateRoleChangeBuyerAssignableAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.associate_role.AssociateRoleUpdateAction
getAction, withAssociateRoleUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_BUYER_ASSIGNABLE
discriminator value for AssociateRoleChangeBuyerAssignableAction- See Also:
-
-
Method Details
-
getBuyerAssignable
The new value of the
buyerAssignablefield of the AssociateRole.- Returns:
- buyerAssignable
-
setBuyerAssignable
The new value of the
buyerAssignablefield of the AssociateRole.- Parameters:
buyerAssignable- value to be set
-
of
factory method- Returns:
- instance of AssociateRoleChangeBuyerAssignableAction
-
of
static AssociateRoleChangeBuyerAssignableAction of(AssociateRoleChangeBuyerAssignableAction template) factory method to create a shallow copy AssociateRoleChangeBuyerAssignableAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AssociateRoleChangeBuyerAssignableAction copyDeep()- Specified by:
copyDeepin interfaceAssociateRoleUpdateAction
-
deepCopy
@Nullable static AssociateRoleChangeBuyerAssignableAction deepCopy(@Nullable AssociateRoleChangeBuyerAssignableAction template) factory method to create a deep copy of AssociateRoleChangeBuyerAssignableAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateRoleChangeBuyerAssignableAction- Returns:
- builder
-
builder
static AssociateRoleChangeBuyerAssignableActionBuilder builder(AssociateRoleChangeBuyerAssignableAction template) create builder for AssociateRoleChangeBuyerAssignableAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateRoleChangeBuyerAssignableAction
default <T> T withAssociateRoleChangeBuyerAssignableAction(Function<AssociateRoleChangeBuyerAssignableAction, 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<AssociateRoleChangeBuyerAssignableAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-