Class ApplicationGatewayBackendSettings

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

public final class ApplicationGatewayBackendSettings extends com.azure.core.management.SubResource
Backend address pool settings of an application gateway.
  • Constructor Details

    • ApplicationGatewayBackendSettings

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

    • name

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

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

      public Integer port()
      Get the port property: The destination port on the backend.
      Returns:
      the port value.
    • withPort

      Set the port property: The destination port on the backend.
      Parameters:
      port - the port value to set.
      Returns:
      the ApplicationGatewayBackendSettings object itself.
    • protocol

      public ApplicationGatewayProtocol protocol()
      Get the protocol property: The protocol used to communicate with the backend.
      Returns:
      the protocol value.
    • withProtocol

      Set the protocol property: The protocol used to communicate with the backend.
      Parameters:
      protocol - the protocol value to set.
      Returns:
      the ApplicationGatewayBackendSettings object itself.
    • timeout

      public Integer timeout()
      Get the timeout property: Connection timeout in seconds. Application Gateway will fail the request if response is not received within ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds.
      Returns:
      the timeout value.
    • withTimeout

      public ApplicationGatewayBackendSettings withTimeout(Integer timeout)
      Set the timeout property: Connection timeout in seconds. Application Gateway will fail the request if response is not received within ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds.
      Parameters:
      timeout - the timeout value to set.
      Returns:
      the ApplicationGatewayBackendSettings object itself.
    • probe

      public com.azure.core.management.SubResource probe()
      Get the probe property: Probe resource of an application gateway.
      Returns:
      the probe value.
    • withProbe

      public ApplicationGatewayBackendSettings withProbe(com.azure.core.management.SubResource probe)
      Set the probe property: Probe resource of an application gateway.
      Parameters:
      probe - the probe value to set.
      Returns:
      the ApplicationGatewayBackendSettings object itself.
    • trustedRootCertificates

      public List<com.azure.core.management.SubResource> trustedRootCertificates()
      Get the trustedRootCertificates property: Array of references to application gateway trusted root certificates.
      Returns:
      the trustedRootCertificates value.
    • withTrustedRootCertificates

      public ApplicationGatewayBackendSettings withTrustedRootCertificates(List<com.azure.core.management.SubResource> trustedRootCertificates)
      Set the trustedRootCertificates property: Array of references to application gateway trusted root certificates.
      Parameters:
      trustedRootCertificates - the trustedRootCertificates value to set.
      Returns:
      the ApplicationGatewayBackendSettings object itself.
    • hostname

      public String hostname()
      Get the hostname property: Server name indication to be sent to the backend servers for Tls protocol.
      Returns:
      the hostname value.
    • withHostname

      public ApplicationGatewayBackendSettings withHostname(String hostname)
      Set the hostname property: Server name indication to be sent to the backend servers for Tls protocol.
      Parameters:
      hostname - the hostname value to set.
      Returns:
      the ApplicationGatewayBackendSettings object itself.
    • pickHostnameFromBackendAddress

      public Boolean pickHostnameFromBackendAddress()
      Get the pickHostnameFromBackendAddress property: Whether to pick server name indication from the host name of the backend server for Tls protocol. Default value is false.
      Returns:
      the pickHostnameFromBackendAddress value.
    • withPickHostnameFromBackendAddress

      public ApplicationGatewayBackendSettings withPickHostnameFromBackendAddress(Boolean pickHostnameFromBackendAddress)
      Set the pickHostnameFromBackendAddress property: Whether to pick server name indication from the host name of the backend server for Tls protocol. Default value is false.
      Parameters:
      pickHostnameFromBackendAddress - the pickHostnameFromBackendAddress value to set.
      Returns:
      the ApplicationGatewayBackendSettings object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the backend HTTP settings 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 ApplicationGatewayBackendSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ApplicationGatewayBackendSettings from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ApplicationGatewayBackendSettings 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 ApplicationGatewayBackendSettings.