Class AuthorizationPolicyInner

java.lang.Object
com.azure.resourcemanager.customerinsights.fluent.models.AuthorizationPolicyInner

public final class AuthorizationPolicyInner extends Object
The authorization policy.
  • Constructor Details

    • AuthorizationPolicyInner

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

    • policyName

      public String policyName()
      Get the policyName property: Name of the policy.
      Returns:
      the policyName value.
    • permissions

      public List<PermissionTypes> permissions()
      Get the permissions property: The permissions associated with the policy.
      Returns:
      the permissions value.
    • withPermissions

      public AuthorizationPolicyInner withPermissions(List<PermissionTypes> permissions)
      Set the permissions property: The permissions associated with the policy.
      Parameters:
      permissions - the permissions value to set.
      Returns:
      the AuthorizationPolicyInner object itself.
    • primaryKey

      public String primaryKey()
      Get the primaryKey property: Primary key associated with the policy.
      Returns:
      the primaryKey value.
    • withPrimaryKey

      public AuthorizationPolicyInner withPrimaryKey(String primaryKey)
      Set the primaryKey property: Primary key associated with the policy.
      Parameters:
      primaryKey - the primaryKey value to set.
      Returns:
      the AuthorizationPolicyInner object itself.
    • secondaryKey

      public String secondaryKey()
      Get the secondaryKey property: Secondary key associated with the policy.
      Returns:
      the secondaryKey value.
    • withSecondaryKey

      public AuthorizationPolicyInner withSecondaryKey(String secondaryKey)
      Set the secondaryKey property: Secondary key associated with the policy.
      Parameters:
      secondaryKey - the secondaryKey value to set.
      Returns:
      the AuthorizationPolicyInner object itself.
    • validate

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