Class AuthorizationAccessPolicyContractProperties

java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.AuthorizationAccessPolicyContractProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<AuthorizationAccessPolicyContractProperties>

public final class AuthorizationAccessPolicyContractProperties extends Object implements com.azure.json.JsonSerializable<AuthorizationAccessPolicyContractProperties>
Authorization Access Policy details.
  • Constructor Details

    • AuthorizationAccessPolicyContractProperties

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

    • appIds

      public List<String> appIds()
      Get the appIds property: The allowed Azure Active Directory Application IDs.
      Returns:
      the appIds value.
    • withAppIds

      Set the appIds property: The allowed Azure Active Directory Application IDs.
      Parameters:
      appIds - the appIds value to set.
      Returns:
      the AuthorizationAccessPolicyContractProperties object itself.
    • tenantId

      public String tenantId()
      Get the tenantId property: The Tenant Id.
      Returns:
      the tenantId value.
    • withTenantId

      public AuthorizationAccessPolicyContractProperties withTenantId(String tenantId)
      Set the tenantId property: The Tenant Id.
      Parameters:
      tenantId - the tenantId value to set.
      Returns:
      the AuthorizationAccessPolicyContractProperties object itself.
    • objectId

      public String objectId()
      Get the objectId property: The Object Id.
      Returns:
      the objectId value.
    • withObjectId

      public AuthorizationAccessPolicyContractProperties withObjectId(String objectId)
      Set the objectId property: The Object Id.
      Parameters:
      objectId - the objectId value to set.
      Returns:
      the AuthorizationAccessPolicyContractProperties object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AuthorizationAccessPolicyContractProperties>
      Throws:
      IOException
    • fromJson

      public static AuthorizationAccessPolicyContractProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AuthorizationAccessPolicyContractProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AuthorizationAccessPolicyContractProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the AuthorizationAccessPolicyContractProperties.