Class SenderAuthorization
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.SenderAuthorization
-
public final class SenderAuthorization extends Object
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 Constructor Description SenderAuthorization()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaction()Get the action property: the permissible actions.Stringrole()Get the role property: the role of the user.Stringscope()Get the scope property: the scope.voidvalidate()Validates the instance.SenderAuthorizationwithAction(String action)Set the action property: the permissible actions.SenderAuthorizationwithRole(String role)Set the role property: the role of the user.SenderAuthorizationwithScope(String scope)Set the scope property: the scope.
-
-
-
Method Detail
-
action
public String action()
Get the action property: the permissible actions. For instance: microsoft.support/supporttickets/write.- Returns:
- the action value.
-
withAction
public SenderAuthorization withAction(String action)
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
public String role()
Get the role property: the role of the user. For instance: Subscription Admin.- Returns:
- the role value.
-
withRole
public SenderAuthorization withRole(String role)
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
public String scope()
Get the scope property: the scope.- Returns:
- the scope value.
-
withScope
public SenderAuthorization withScope(String scope)
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.
-
-