SenderAuthorization Class
- java.
lang. Object - com.
microsoft. azure. management. monitor. SenderAuthorization
- com.
public class 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'.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
action()
Get the permissible actions. For instance: microsoft.support/supporttickets/write. |
String |
role()
Get the role of the user. For instance: Subscription Admin. |
String |
scope()
Get the scope. |
Sender |
withAction(String action)
Set the permissible actions. For instance: microsoft.support/supporttickets/write. |
Sender |
withRole(String role)
Set the role of the user. For instance: Subscription Admin. |
Sender |
withScope(String scope)
Set the scope. |
Method Details
action
public String action()
Get the permissible actions. For instance: microsoft.support/supporttickets/write.
Returns:
role
public String role()
Get the role of the user. For instance: Subscription Admin.
Returns:
scope
public String scope()
Get the scope.
Returns:
withAction
public SenderAuthorization withAction(String action)
Set the permissible actions. For instance: microsoft.support/supporttickets/write.
Parameters:
Returns:
withRole
public SenderAuthorization withRole(String role)
Set the role of the user. For instance: Subscription Admin.
Parameters:
Returns:
withScope
public SenderAuthorization withScope(String scope)
Set the scope.
Parameters:
Returns:
Applies to
Azure SDK for Java