Class SenderAuthorization
java.lang.Object
com.azure.resourcemanager.monitor.models.SenderAuthorization
the authorization used by the user who has performed the operation that led to this event. This captures the RBAC
properties of the event. These usually include the 'action', 'role' and the 'scope'.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: the permissible actions.role()Get the role property: the role of the user.scope()Get the scope property: the scope.voidvalidate()Validates the instance.withAction(String action) Set the action property: the permissible actions.Set the role property: the role of the user.Set the scope property: the scope.
-
Constructor Details
-
SenderAuthorization
public SenderAuthorization()Creates an instance of SenderAuthorization class.
-
-
Method Details
-
action
Get the action property: the permissible actions. For instance: microsoft.support/supporttickets/write.- Returns:
- the action value.
-
withAction
Set the action property: the permissible actions. For instance: microsoft.support/supporttickets/write.- Parameters:
action- the action value to set.- Returns:
- the SenderAuthorization object itself.
-
role
Get the role property: the role of the user. For instance: Subscription Admin.- Returns:
- the role value.
-
withRole
Set the role property: the role of the user. For instance: Subscription Admin.- Parameters:
role- the role value to set.- Returns:
- the SenderAuthorization object itself.
-
scope
Get the scope property: the scope.- Returns:
- the scope value.
-
withScope
Set the scope property: the scope.- Parameters:
scope- the scope value to set.- Returns:
- the SenderAuthorization object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-