Interface AssociateRoleRemovePermissionAction
- All Superinterfaces:
AssociateRoleUpdateAction
,ResourceUpdateAction<AssociateRoleUpdateAction>
Removing a Permission from an AssociateRole generates an AssociateRolePermissionRemoved Message.
Example to create an instance using the builder pattern
AssociateRoleRemovePermissionAction associateRoleRemovePermissionAction = AssociateRoleRemovePermissionAction.builder()
.permission(Permission.ADD_CHILD_UNITS)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for AssociateRoleRemovePermissionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AssociateRoleRemovePermissionActionbuilder
(AssociateRoleRemovePermissionAction template) create builder for AssociateRoleRemovePermissionAction instancedeepCopy
(AssociateRoleRemovePermissionAction template) factory method to create a deep copy of AssociateRoleRemovePermissionAction@NotNull Permission
Permission to be removed from the AssociateRole.of()
factory methodof
(AssociateRoleRemovePermissionAction template) factory method to create a shallow copy AssociateRoleRemovePermissionActionvoid
setPermission
(Permission permission) Permission to be removed from the AssociateRole.static com.fasterxml.jackson.core.type.TypeReference<AssociateRoleRemovePermissionAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.associate_role.AssociateRoleUpdateAction
getAction, withAssociateRoleUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_PERMISSION
discriminator value for AssociateRoleRemovePermissionAction- See Also:
-
-
Method Details
-
getPermission
Permission to be removed from the AssociateRole.
- Returns:
- permission
-
setPermission
Permission to be removed from the AssociateRole.
- Parameters:
permission
- value to be set
-
of
factory method- Returns:
- instance of AssociateRoleRemovePermissionAction
-
of
factory method to create a shallow copy AssociateRoleRemovePermissionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static AssociateRoleRemovePermissionAction deepCopy(@Nullable AssociateRoleRemovePermissionAction template) factory method to create a deep copy of AssociateRoleRemovePermissionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateRoleRemovePermissionAction- Returns:
- builder
-
builder
static AssociateRoleRemovePermissionActionBuilder builder(AssociateRoleRemovePermissionAction template) create builder for AssociateRoleRemovePermissionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateRoleRemovePermissionAction
default <T> T withAssociateRoleRemovePermissionAction(Function<AssociateRoleRemovePermissionAction, 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<AssociateRoleRemovePermissionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-