Class AuthorizationPolicyResourceFormatInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.customerinsights.fluent.models.AuthorizationPolicyResourceFormatInner

public final class AuthorizationPolicyResourceFormatInner extends com.azure.core.management.ProxyResource
The authorization policy resource format.
  • Constructor Details

    • AuthorizationPolicyResourceFormatInner

      public AuthorizationPolicyResourceFormatInner()
      Creates an instance of AuthorizationPolicyResourceFormatInner 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 AuthorizationPolicyResourceFormatInner withPermissions(List<PermissionTypes> permissions)
      Set the permissions property: The permissions associated with the policy.
      Parameters:
      permissions - the permissions value to set.
      Returns:
      the AuthorizationPolicyResourceFormatInner object itself.
    • primaryKey

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

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

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

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

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