Interface AssociateRoleSetPermissionsAction
- All Superinterfaces:
AssociateRoleUpdateAction,ResourceUpdateAction<AssociateRoleUpdateAction>
Updating the Permissions on an AssociateRole generates an AssociateRolePermissionsSet Message.
Example to create an instance using the builder pattern
AssociateRoleSetPermissionsAction associateRoleSetPermissionsAction = AssociateRoleSetPermissionsAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AssociateRoleSetPermissionsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AssociateRoleSetPermissionsActionbuilder(AssociateRoleSetPermissionsAction template) create builder for AssociateRoleSetPermissionsAction instancecopyDeep()deepCopy(AssociateRoleSetPermissionsAction template) factory method to create a deep copy of AssociateRoleSetPermissionsActionOverrides the current list of Permissions for the AssociateRole.of()factory methodof(AssociateRoleSetPermissionsAction template) factory method to create a shallow copy AssociateRoleSetPermissionsActionvoidsetPermissions(Permission... permissions) Overrides the current list of Permissions for the AssociateRole.voidsetPermissions(List<Permission> permissions) Overrides the current list of Permissions for the AssociateRole.static com.fasterxml.jackson.core.type.TypeReference<AssociateRoleSetPermissionsAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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
-
SET_PERMISSIONS
discriminator value for AssociateRoleSetPermissionsAction- See Also:
-
-
Method Details
-
getPermissions
List<Permission> getPermissions()Overrides the current list of Permissions for the AssociateRole.
- Returns:
- permissions
-
setPermissions
Overrides the current list of Permissions for the AssociateRole.
- Parameters:
permissions- values to be set
-
setPermissions
Overrides the current list of Permissions for the AssociateRole.
- Parameters:
permissions- values to be set
-
of
factory method- Returns:
- instance of AssociateRoleSetPermissionsAction
-
of
factory method to create a shallow copy AssociateRoleSetPermissionsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AssociateRoleSetPermissionsAction copyDeep()- Specified by:
copyDeepin interfaceAssociateRoleUpdateAction
-
deepCopy
@Nullable static AssociateRoleSetPermissionsAction deepCopy(@Nullable AssociateRoleSetPermissionsAction template) factory method to create a deep copy of AssociateRoleSetPermissionsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateRoleSetPermissionsAction- Returns:
- builder
-
builder
create builder for AssociateRoleSetPermissionsAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateRoleSetPermissionsAction
default <T> T withAssociateRoleSetPermissionsAction(Function<AssociateRoleSetPermissionsAction, 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<AssociateRoleSetPermissionsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-