Interface AssociateRolePermissionsSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Permissions update action.
Example to create an instance using the builder pattern
AssociateRolePermissionsSetMessagePayload associateRolePermissionsSetMessagePayload = AssociateRolePermissionsSetMessagePayload.builder()
.plusPermissions(permissionsBuilder -> permissionsBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for AssociateRolePermissionsSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AssociateRolePermissionsSetMessagePayloadcreate builder for AssociateRolePermissionsSetMessagePayload instancefactory method to create a deep copy of AssociateRolePermissionsSetMessagePayload@NotNull List<Permission>
Permission assigned to the AssociateRole.of()
factory methodof
(AssociateRolePermissionsSetMessagePayload template) factory method to create a shallow copy AssociateRolePermissionsSetMessagePayloadvoid
setPermissions
(Permission... permissions) Permission assigned to the AssociateRole.void
setPermissions
(List<Permission> permissions) Permission assigned to the AssociateRole.static com.fasterxml.jackson.core.type.TypeReference<AssociateRolePermissionsSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAssociateRolePermissionsSetMessagePayload
(Function<AssociateRolePermissionsSetMessagePayload, 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_PERMISSIONS_SET
discriminator value for AssociateRolePermissionsSetMessagePayload- See Also:
-
-
Method Details
-
getPermissions
Permission assigned to the AssociateRole.
- Returns:
- permissions
-
setPermissions
Permission assigned to the AssociateRole.
- Parameters:
permissions
- values to be set
-
setPermissions
Permission assigned to the AssociateRole.
- Parameters:
permissions
- values to be set
-
of
factory method- Returns:
- instance of AssociateRolePermissionsSetMessagePayload
-
of
static AssociateRolePermissionsSetMessagePayload of(AssociateRolePermissionsSetMessagePayload template) factory method to create a shallow copy AssociateRolePermissionsSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static AssociateRolePermissionsSetMessagePayload deepCopy(@Nullable AssociateRolePermissionsSetMessagePayload template) factory method to create a deep copy of AssociateRolePermissionsSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateRolePermissionsSetMessagePayload- Returns:
- builder
-
builder
static AssociateRolePermissionsSetMessagePayloadBuilder builder(AssociateRolePermissionsSetMessagePayload template) create builder for AssociateRolePermissionsSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateRolePermissionsSetMessagePayload
default <T> T withAssociateRolePermissionsSetMessagePayload(Function<AssociateRolePermissionsSetMessagePayload, 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<AssociateRolePermissionsSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-