Class AccessPolicyCreateOrUpdateParameters

java.lang.Object
com.azure.resourcemanager.timeseriesinsights.models.AccessPolicyCreateOrUpdateParameters

public final class AccessPolicyCreateOrUpdateParameters extends Object
The AccessPolicyCreateOrUpdateParameters model.
  • Constructor Details

    • AccessPolicyCreateOrUpdateParameters

      public AccessPolicyCreateOrUpdateParameters()
      Creates an instance of AccessPolicyCreateOrUpdateParameters 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 AccessPolicyCreateOrUpdateParameters 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 AccessPolicyCreateOrUpdateParameters object itself.
    • description

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

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

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