Interface AssociateRolePermissionsSetMessage
- All Superinterfaces:
BaseResource,DomainResource<Message>,Identifiable<Message>,Message,Versioned<Message>
Generated after a successful Set Permissions update action.
Example to create an instance using the builder pattern
AssociateRolePermissionsSetMessage associateRolePermissionsSetMessage = AssociateRolePermissionsSetMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.plusPermissions(permissionsBuilder -> permissionsBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AssociateRolePermissionsSetMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AssociateRolePermissionsSetMessagebuilder(AssociateRolePermissionsSetMessage template) create builder for AssociateRolePermissionsSetMessage instancecopyDeep()deepCopy(AssociateRolePermissionsSetMessage template) factory method to create a deep copy of AssociateRolePermissionsSetMessage@NotNull List<Permission>Permission assigned to the AssociateRole.of()factory methodof(AssociateRolePermissionsSetMessage template) factory method to create a shallow copy AssociateRolePermissionsSetMessagevoidsetPermissions(Permission... permissions) Permission assigned to the AssociateRole.voidsetPermissions(List<Permission> permissions) Permission assigned to the AssociateRole.static com.fasterxml.jackson.core.type.TypeReference<AssociateRolePermissionsSetMessage>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
ASSOCIATE_ROLE_PERMISSIONS_SET
discriminator value for AssociateRolePermissionsSetMessage- 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 AssociateRolePermissionsSetMessage
-
of
factory method to create a shallow copy AssociateRolePermissionsSetMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AssociateRolePermissionsSetMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage
-
deepCopy
@Nullable static AssociateRolePermissionsSetMessage deepCopy(@Nullable AssociateRolePermissionsSetMessage template) factory method to create a deep copy of AssociateRolePermissionsSetMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateRolePermissionsSetMessage- Returns:
- builder
-
builder
static AssociateRolePermissionsSetMessageBuilder builder(AssociateRolePermissionsSetMessage template) create builder for AssociateRolePermissionsSetMessage instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateRolePermissionsSetMessage
default <T> T withAssociateRolePermissionsSetMessage(Function<AssociateRolePermissionsSetMessage, 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<AssociateRolePermissionsSetMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-