SenderAuthorization Class

  • java.lang.Object
    • com.microsoft.azure.management.monitor.SenderAuthorization

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.

SenderAuthorization withAction(String action)

Set the permissible actions. For instance: microsoft.support/supporttickets/write.

SenderAuthorization withRole(String role)

Set the role of the user. For instance: Subscription Admin.

SenderAuthorization withScope(String scope)

Set the scope.

Method Details

action

public String action()

Get the permissible actions. For instance: microsoft.support/supporttickets/write.

Returns:

the action value

role

public String role()

Get the role of the user. For instance: Subscription Admin.

Returns:

the role value

scope

public String scope()

Get the scope.

Returns:

the scope value

withAction

public SenderAuthorization withAction(String action)

Set the permissible actions. For instance: microsoft.support/supporttickets/write.

Parameters:

action - the action value to set

Returns:

the SenderAuthorization object itself.

withRole

public SenderAuthorization withRole(String role)

Set the role of the user. For instance: Subscription Admin.

Parameters:

role - the role value to set

Returns:

the SenderAuthorization object itself.

withScope

public SenderAuthorization withScope(String scope)

Set the scope.

Parameters:

scope - the scope value to set

Returns:

the SenderAuthorization object itself.

Applies to