Class ApplicationGatewayEntraJwtValidationConfig

java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.models.ApplicationGatewayEntraJwtValidationConfig
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>

public final class ApplicationGatewayEntraJwtValidationConfig extends com.azure.core.management.SubResource
Entra JWT Validation Configuration of an application gateway.
  • Constructor Details

    • ApplicationGatewayEntraJwtValidationConfig

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

    • name

      public String name()
      Get the name property: Name of the entra jwt validation configuration that is unique within an application gateway.
      Returns:
      the name value.
    • withName

      Set the name property: Name of the entra jwt validation configuration that is unique within an application gateway.
      Parameters:
      name - the name value to set.
      Returns:
      the ApplicationGatewayEntraJwtValidationConfig object itself.
    • etag

      public String etag()
      Get the etag property: A unique read-only string that changes whenever the resource is updated.
      Returns:
      the etag value.
    • withId

      Overrides:
      withId in class com.azure.core.management.SubResource
    • unAuthorizedRequestAction

      public ApplicationGatewayUnAuthorizedRequestAction unAuthorizedRequestAction()
      Get the unAuthorizedRequestAction property: Unauthorized request action.
      Returns:
      the unAuthorizedRequestAction value.
    • withUnAuthorizedRequestAction

      public ApplicationGatewayEntraJwtValidationConfig withUnAuthorizedRequestAction(ApplicationGatewayUnAuthorizedRequestAction unAuthorizedRequestAction)
      Set the unAuthorizedRequestAction property: Unauthorized request action.
      Parameters:
      unAuthorizedRequestAction - the unAuthorizedRequestAction value to set.
      Returns:
      the ApplicationGatewayEntraJwtValidationConfig object itself.
    • tenantId

      public String tenantId()
      Get the tenantId property: The Tenant ID of the Microsoft Entra ID application.
      Returns:
      the tenantId value.
    • withTenantId

      public ApplicationGatewayEntraJwtValidationConfig withTenantId(String tenantId)
      Set the tenantId property: The Tenant ID of the Microsoft Entra ID application.
      Parameters:
      tenantId - the tenantId value to set.
      Returns:
      the ApplicationGatewayEntraJwtValidationConfig object itself.
    • clientId

      public String clientId()
      Get the clientId property: The Client ID of the Microsoft Entra ID application.
      Returns:
      the clientId value.
    • withClientId

      public ApplicationGatewayEntraJwtValidationConfig withClientId(String clientId)
      Set the clientId property: The Client ID of the Microsoft Entra ID application.
      Parameters:
      clientId - the clientId value to set.
      Returns:
      the ApplicationGatewayEntraJwtValidationConfig object itself.
    • audiences

      public List<String> audiences()
      Get the audiences property: List of acceptable audience claims that can be present in the token (aud claim). A maximum of 5 audiences are permitted.
      Returns:
      the audiences value.
    • withAudiences

      public ApplicationGatewayEntraJwtValidationConfig withAudiences(List<String> audiences)
      Set the audiences property: List of acceptable audience claims that can be present in the token (aud claim). A maximum of 5 audiences are permitted.
      Parameters:
      audiences - the audiences value to set.
      Returns:
      the ApplicationGatewayEntraJwtValidationConfig object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the entra jwt validation configuration resource.
      Returns:
      the provisioningState value.
    • 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<com.azure.core.management.SubResource>
      Overrides:
      toJson in class com.azure.core.management.SubResource
      Throws:
      IOException
    • fromJson

      public static ApplicationGatewayEntraJwtValidationConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ApplicationGatewayEntraJwtValidationConfig from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ApplicationGatewayEntraJwtValidationConfig 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 ApplicationGatewayEntraJwtValidationConfig.