Interface AssociateRolePermissionAddedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Add Permissions update action.
Example to create an instance using the builder pattern
AssociateRolePermissionAddedMessagePayload associateRolePermissionAddedMessagePayload = AssociateRolePermissionAddedMessagePayload.builder()
.permission(Permission.ADD_CHILD_UNITS)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for AssociateRolePermissionAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AssociateRolePermissionAddedMessagePayloadcreate builder for AssociateRolePermissionAddedMessagePayload instancefactory method to create a deep copy of AssociateRolePermissionAddedMessagePayload@NotNull Permission
The Permission that was added to the AssociateRole.of()
factory methodof
(AssociateRolePermissionAddedMessagePayload template) factory method to create a shallow copy AssociateRolePermissionAddedMessagePayloadvoid
setPermission
(Permission permission) The Permission that was added to the AssociateRole.static com.fasterxml.jackson.core.type.TypeReference<AssociateRolePermissionAddedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAssociateRolePermissionAddedMessagePayload
(Function<AssociateRolePermissionAddedMessagePayload, 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_ADDED
discriminator value for AssociateRolePermissionAddedMessagePayload- See Also:
-
-
Method Details
-
getPermission
The Permission that was added to the AssociateRole.
- Returns:
- permission
-
setPermission
The Permission that was added to the AssociateRole.
- Parameters:
permission
- value to be set
-
of
factory method- Returns:
- instance of AssociateRolePermissionAddedMessagePayload
-
of
static AssociateRolePermissionAddedMessagePayload of(AssociateRolePermissionAddedMessagePayload template) factory method to create a shallow copy AssociateRolePermissionAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static AssociateRolePermissionAddedMessagePayload deepCopy(@Nullable AssociateRolePermissionAddedMessagePayload template) factory method to create a deep copy of AssociateRolePermissionAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateRolePermissionAddedMessagePayload- Returns:
- builder
-
builder
static AssociateRolePermissionAddedMessagePayloadBuilder builder(AssociateRolePermissionAddedMessagePayload template) create builder for AssociateRolePermissionAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateRolePermissionAddedMessagePayload
default <T> T withAssociateRolePermissionAddedMessagePayload(Function<AssociateRolePermissionAddedMessagePayload, 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<AssociateRolePermissionAddedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-