Class ApplicationGatewayHttpListener
- java.lang.Object
-
- com.azure.core.management.SubResource
-
- com.azure.resourcemanager.network.models.ApplicationGatewayHttpListener
-
public final class ApplicationGatewayHttpListener extends com.azure.core.management.SubResourceHttp listener of an application gateway.
-
-
Constructor Summary
Constructors Constructor Description ApplicationGatewayHttpListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ApplicationGatewayCustomError>customErrorConfigurations()Get the customErrorConfigurations property: Custom error configurations of the HTTP listener.Stringetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.com.azure.core.management.SubResourcefirewallPolicy()Get the firewallPolicy property: Reference to the FirewallPolicy resource.com.azure.core.management.SubResourcefrontendIpConfiguration()Get the frontendIpConfiguration property: Frontend IP configuration resource of an application gateway.com.azure.core.management.SubResourcefrontendPort()Get the frontendPort property: Frontend port resource of an application gateway.Stringhostname()Get the hostname property: Host name of HTTP listener.List<String>hostNames()Get the hostNames property: List of Host names for HTTP Listener that allows special wildcard characters as well.Stringname()Get the name property: Name of the HTTP listener that is unique within an Application Gateway.ApplicationGatewayProtocolprotocol()Get the protocol property: Protocol of the HTTP listener.ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of the HTTP listener resource.BooleanrequireServerNameIndication()Get the requireServerNameIndication property: Applicable only if protocol is https.com.azure.core.management.SubResourcesslCertificate()Get the sslCertificate property: SSL certificate resource of an application gateway.com.azure.core.management.SubResourcesslProfile()Get the sslProfile property: SSL profile resource of the application gateway.Stringtype()Get the type property: Type of the resource.voidvalidate()Validates the instance.ApplicationGatewayHttpListenerwithCustomErrorConfigurations(List<ApplicationGatewayCustomError> customErrorConfigurations)Set the customErrorConfigurations property: Custom error configurations of the HTTP listener.ApplicationGatewayHttpListenerwithFirewallPolicy(com.azure.core.management.SubResource firewallPolicy)Set the firewallPolicy property: Reference to the FirewallPolicy resource.ApplicationGatewayHttpListenerwithFrontendIpConfiguration(com.azure.core.management.SubResource frontendIpConfiguration)Set the frontendIpConfiguration property: Frontend IP configuration resource of an application gateway.ApplicationGatewayHttpListenerwithFrontendPort(com.azure.core.management.SubResource frontendPort)Set the frontendPort property: Frontend port resource of an application gateway.ApplicationGatewayHttpListenerwithHostname(String hostname)Set the hostname property: Host name of HTTP listener.ApplicationGatewayHttpListenerwithHostNames(List<String> hostNames)Set the hostNames property: List of Host names for HTTP Listener that allows special wildcard characters as well.ApplicationGatewayHttpListenerwithId(String id)ApplicationGatewayHttpListenerwithName(String name)Set the name property: Name of the HTTP listener that is unique within an Application Gateway.ApplicationGatewayHttpListenerwithProtocol(ApplicationGatewayProtocol protocol)Set the protocol property: Protocol of the HTTP listener.ApplicationGatewayHttpListenerwithRequireServerNameIndication(Boolean requireServerNameIndication)Set the requireServerNameIndication property: Applicable only if protocol is https.ApplicationGatewayHttpListenerwithSslCertificate(com.azure.core.management.SubResource sslCertificate)Set the sslCertificate property: SSL certificate resource of an application gateway.ApplicationGatewayHttpListenerwithSslProfile(com.azure.core.management.SubResource sslProfile)Set the sslProfile property: SSL profile resource of the application gateway.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the HTTP listener that is unique within an Application Gateway.- Returns:
- the name value.
-
withName
public ApplicationGatewayHttpListener withName(String name)
Set the name property: Name of the HTTP listener that is unique within an Application Gateway.- Parameters:
name- the name value to set.- Returns:
- the ApplicationGatewayHttpListener 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
public ApplicationGatewayHttpListener withId(String id)
- Overrides:
withIdin classcom.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 ApplicationGatewayHttpListener 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 ApplicationGatewayHttpListener 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 ApplicationGatewayHttpListener 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 ApplicationGatewayHttpListener object itself.
-
protocol
public ApplicationGatewayProtocol protocol()
Get the protocol property: Protocol of the HTTP listener.- Returns:
- the protocol value.
-
withProtocol
public ApplicationGatewayHttpListener withProtocol(ApplicationGatewayProtocol protocol)
Set the protocol property: Protocol of the HTTP listener.- Parameters:
protocol- the protocol value to set.- Returns:
- the ApplicationGatewayHttpListener object itself.
-
hostname
public String hostname()
Get the hostname property: Host name of HTTP listener.- Returns:
- the hostname value.
-
withHostname
public ApplicationGatewayHttpListener withHostname(String hostname)
Set the hostname property: Host name of HTTP listener.- Parameters:
hostname- the hostname value to set.- Returns:
- the ApplicationGatewayHttpListener 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 ApplicationGatewayHttpListener 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 ApplicationGatewayHttpListener 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 ApplicationGatewayHttpListener 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 ApplicationGatewayHttpListener object itself.
-
requireServerNameIndication
public Boolean requireServerNameIndication()
Get the requireServerNameIndication property: Applicable only if protocol is https. Enables SNI for multi-hosting.- Returns:
- the requireServerNameIndication value.
-
withRequireServerNameIndication
public ApplicationGatewayHttpListener withRequireServerNameIndication(Boolean requireServerNameIndication)
Set the requireServerNameIndication property: Applicable only if protocol is https. Enables SNI for multi-hosting.- Parameters:
requireServerNameIndication- the requireServerNameIndication value to set.- Returns:
- the ApplicationGatewayHttpListener object itself.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the HTTP listener resource.- Returns:
- the provisioningState value.
-
customErrorConfigurations
public List<ApplicationGatewayCustomError> customErrorConfigurations()
Get the customErrorConfigurations property: Custom error configurations of the HTTP listener.- Returns:
- the customErrorConfigurations value.
-
withCustomErrorConfigurations
public ApplicationGatewayHttpListener withCustomErrorConfigurations(List<ApplicationGatewayCustomError> customErrorConfigurations)
Set the customErrorConfigurations property: Custom error configurations of the HTTP listener.- Parameters:
customErrorConfigurations- the customErrorConfigurations value to set.- Returns:
- the ApplicationGatewayHttpListener object itself.
-
firewallPolicy
public com.azure.core.management.SubResource firewallPolicy()
Get the firewallPolicy property: Reference to the FirewallPolicy resource.- Returns:
- the firewallPolicy value.
-
withFirewallPolicy
public ApplicationGatewayHttpListener withFirewallPolicy(com.azure.core.management.SubResource firewallPolicy)
Set the firewallPolicy property: Reference to the FirewallPolicy resource.- Parameters:
firewallPolicy- the firewallPolicy value to set.- Returns:
- the ApplicationGatewayHttpListener object itself.
-
hostNames
public List<String> hostNames()
Get the hostNames property: List of Host names for HTTP Listener that allows special wildcard characters as well.- Returns:
- the hostNames value.
-
withHostNames
public ApplicationGatewayHttpListener withHostNames(List<String> hostNames)
Set the hostNames property: List of Host names for HTTP Listener that allows special wildcard characters as well.- Parameters:
hostNames- the hostNames value to set.- Returns:
- the ApplicationGatewayHttpListener object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-