Interface AssociateRolePermissionRemovedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Remove Permissions update action.
Example to create an instance using the builder pattern
AssociateRolePermissionRemovedMessagePayload associateRolePermissionRemovedMessagePayload = AssociateRolePermissionRemovedMessagePayload.builder()
.permission(Permission.ADD_CHILD_UNITS)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for AssociateRolePermissionRemovedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AssociateRolePermissionRemovedMessagePayloadcreate builder for AssociateRolePermissionRemovedMessagePayload instancefactory method to create a deep copy of AssociateRolePermissionRemovedMessagePayload@NotNull Permission
The Permission that was removed from the AssociateRole.of()
factory methodfactory method to create a shallow copy AssociateRolePermissionRemovedMessagePayloadvoid
setPermission
(Permission permission) The Permission that was removed from the AssociateRole.static com.fasterxml.jackson.core.type.TypeReference<AssociateRolePermissionRemovedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAssociateRolePermissionRemovedMessagePayload
(Function<AssociateRolePermissionRemovedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
ASSOCIATE_ROLE_PERMISSION_REMOVED
discriminator value for AssociateRolePermissionRemovedMessagePayload- See Also:
-
-
Method Details
-
getPermission
The Permission that was removed from the AssociateRole.
- Returns:
- permission
-
setPermission
The Permission that was removed from the AssociateRole.
- Parameters:
permission
- value to be set
-
of
factory method- Returns:
- instance of AssociateRolePermissionRemovedMessagePayload
-
of
static AssociateRolePermissionRemovedMessagePayload of(AssociateRolePermissionRemovedMessagePayload template) factory method to create a shallow copy AssociateRolePermissionRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static AssociateRolePermissionRemovedMessagePayload deepCopy(@Nullable AssociateRolePermissionRemovedMessagePayload template) factory method to create a deep copy of AssociateRolePermissionRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateRolePermissionRemovedMessagePayload- Returns:
- builder
-
builder
static AssociateRolePermissionRemovedMessagePayloadBuilder builder(AssociateRolePermissionRemovedMessagePayload template) create builder for AssociateRolePermissionRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateRolePermissionRemovedMessagePayload
default <T> T withAssociateRolePermissionRemovedMessagePayload(Function<AssociateRolePermissionRemovedMessagePayload, 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<AssociateRolePermissionRemovedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-