Class AccessPolicyResourceInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.timeseriesinsights.fluent.models.AccessPolicyResourceInner

public final class AccessPolicyResourceInner extends com.azure.core.management.ProxyResource
An access policy is used to grant users and applications access to the environment. Roles are assigned to service principals in Azure Active Directory. These roles define the actions the principal can perform through the Time Series Insights data plane APIs.
  • Constructor Details

    • AccessPolicyResourceInner

      public AccessPolicyResourceInner()
      Creates an instance of AccessPolicyResourceInner class.
  • Method Details

    • principalObjectId

      public String principalObjectId()
      Get the principalObjectId property: The objectId of the principal in Azure Active Directory.
      Returns:
      the principalObjectId value.
    • withPrincipalObjectId

      public AccessPolicyResourceInner withPrincipalObjectId(String principalObjectId)
      Set the principalObjectId property: The objectId of the principal in Azure Active Directory.
      Parameters:
      principalObjectId - the principalObjectId value to set.
      Returns:
      the AccessPolicyResourceInner object itself.
    • description

      public String description()
      Get the description property: An description of the access policy.
      Returns:
      the description value.
    • withDescription

      public AccessPolicyResourceInner withDescription(String description)
      Set the description property: An description of the access policy.
      Parameters:
      description - the description value to set.
      Returns:
      the AccessPolicyResourceInner object itself.
    • roles

      public List<AccessPolicyRole> roles()
      Get the roles property: The list of roles the principal is assigned on the environment.
      Returns:
      the roles value.
    • withRoles

      public AccessPolicyResourceInner withRoles(List<AccessPolicyRole> roles)
      Set the roles property: The list of roles the principal is assigned on the environment.
      Parameters:
      roles - the roles value to set.
      Returns:
      the AccessPolicyResourceInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.