Class AccessPolicyMutableProperties

java.lang.Object
com.azure.resourcemanager.timeseriesinsights.fluent.models.AccessPolicyMutableProperties

public final class AccessPolicyMutableProperties extends Object
An object that represents a set of mutable access policy resource properties.
  • Constructor Details

    • AccessPolicyMutableProperties

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

    • description

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

      public AccessPolicyMutableProperties withDescription(String description)
      Set the description property: An description of the access policy.
      Parameters:
      description - the description value to set.
      Returns:
      the AccessPolicyMutableProperties 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

      Set the roles property: The list of roles the principal is assigned on the environment.
      Parameters:
      roles - the roles value to set.
      Returns:
      the AccessPolicyMutableProperties object itself.
    • validate

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