SenderAuthorization Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. SenderAuthorization
- com.
Implements
public final class SenderAuthorization
implements JsonSerializable<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
Constructor | Description |
---|---|
SenderAuthorization() |
Creates an instance of Sender |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
action()
Get the action property: the permissible actions. |
static
Sender |
fromJson(JsonReader jsonReader)
Reads an instance of Sender |
String |
role()
Get the role property: the role of the user. |
String |
scope()
Get the scope property: the scope. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Sender |
withAction(String action)
Set the action property: the permissible actions. |
Sender |
withRole(String role)
Set the role property: the role of the user. |
Sender |
withScope(String scope)
Set the scope property: the scope. |
Methods inherited from java.lang.Object
Constructor Details
SenderAuthorization
public SenderAuthorization()
Creates an instance of SenderAuthorization class.
Method Details
action
public String action()
Get the action property: the permissible actions. For instance: microsoft.support/supporttickets/write.
Returns:
fromJson
public static SenderAuthorization fromJson(JsonReader jsonReader)
Reads an instance of SenderAuthorization from the JsonReader.
Parameters:
Returns:
Throws:
role
public String role()
Get the role property: the role of the user. For instance: Subscription Admin.
Returns:
scope
public String scope()
Get the scope property: the scope.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAction
public SenderAuthorization withAction(String action)
Set the action property: the permissible actions. For instance: microsoft.support/supporttickets/write.
Parameters:
Returns:
withRole
public SenderAuthorization withRole(String role)
Set the role property: the role of the user. For instance: Subscription Admin.
Parameters:
Returns:
withScope
public SenderAuthorization withScope(String scope)
Set the scope property: the scope.
Parameters:
Returns:
Applies to
Azure SDK for Java