Class ApplicationGatewayListenerInner

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

public final class ApplicationGatewayListenerInner extends com.azure.core.management.SubResource
Listener of an application gateway.
  • Constructor Details

    • ApplicationGatewayListenerInner

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

    • name

      public String name()
      Get the name property: Name of the listener that is unique within an Application Gateway.
      Returns:
      the name value.
    • withName

      public ApplicationGatewayListenerInner withName(String name)
      Set the name property: Name of the listener that is unique within an Application Gateway.
      Parameters:
      name - the name value to set.
      Returns:
      the ApplicationGatewayListenerInner 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.
    • type

      public String type()
      Get the type property: Type of the resource.
      Returns:
      the type value.
    • withId

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

      public com.azure.core.management.SubResource frontendIpConfiguration()
      Get the frontendIpConfiguration property: Frontend IP configuration resource of an application gateway.
      Returns:
      the frontendIpConfiguration value.
    • withFrontendIpConfiguration

      public ApplicationGatewayListenerInner withFrontendIpConfiguration(com.azure.core.management.SubResource frontendIpConfiguration)
      Set the frontendIpConfiguration property: Frontend IP configuration resource of an application gateway.
      Parameters:
      frontendIpConfiguration - the frontendIpConfiguration value to set.
      Returns:
      the ApplicationGatewayListenerInner object itself.
    • frontendPort

      public com.azure.core.management.SubResource frontendPort()
      Get the frontendPort property: Frontend port resource of an application gateway.
      Returns:
      the frontendPort value.
    • withFrontendPort

      public ApplicationGatewayListenerInner withFrontendPort(com.azure.core.management.SubResource frontendPort)
      Set the frontendPort property: Frontend port resource of an application gateway.
      Parameters:
      frontendPort - the frontendPort value to set.
      Returns:
      the ApplicationGatewayListenerInner object itself.
    • protocol

      public ApplicationGatewayProtocol protocol()
      Get the protocol property: Protocol of the listener.
      Returns:
      the protocol value.
    • withProtocol

      Set the protocol property: Protocol of the listener.
      Parameters:
      protocol - the protocol value to set.
      Returns:
      the ApplicationGatewayListenerInner object itself.
    • sslCertificate

      public com.azure.core.management.SubResource sslCertificate()
      Get the sslCertificate property: SSL certificate resource of an application gateway.
      Returns:
      the sslCertificate value.
    • withSslCertificate

      public ApplicationGatewayListenerInner withSslCertificate(com.azure.core.management.SubResource sslCertificate)
      Set the sslCertificate property: SSL certificate resource of an application gateway.
      Parameters:
      sslCertificate - the sslCertificate value to set.
      Returns:
      the ApplicationGatewayListenerInner object itself.
    • sslProfile

      public com.azure.core.management.SubResource sslProfile()
      Get the sslProfile property: SSL profile resource of the application gateway.
      Returns:
      the sslProfile value.
    • withSslProfile

      public ApplicationGatewayListenerInner withSslProfile(com.azure.core.management.SubResource sslProfile)
      Set the sslProfile property: SSL profile resource of the application gateway.
      Parameters:
      sslProfile - the sslProfile value to set.
      Returns:
      the ApplicationGatewayListenerInner object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the listener resource.
      Returns:
      the provisioningState value.
    • hostNames

      public List<String> hostNames()
      Get the hostNames property: List of Server Name Indications(SNI) for TLS Multi-site Listener that allows special wildcard characters as well.
      Returns:
      the hostNames value.
    • withHostNames

      public ApplicationGatewayListenerInner withHostNames(List<String> hostNames)
      Set the hostNames property: List of Server Name Indications(SNI) for TLS Multi-site Listener that allows special wildcard characters as well.
      Parameters:
      hostNames - the hostNames value to set.
      Returns:
      the ApplicationGatewayListenerInner 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<com.azure.core.management.SubResource>
      Overrides:
      toJson in class com.azure.core.management.SubResource
      Throws:
      IOException
    • fromJson

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