Class InboundNatRuleInner
- java.lang.Object
-
- com.azure.core.management.SubResource
-
- com.azure.resourcemanager.network.fluent.models.InboundNatRuleInner
-
public final class InboundNatRuleInner extends com.azure.core.management.SubResourceInbound NAT rule of the load balancer.
-
-
Constructor Summary
Constructors Constructor Description InboundNatRuleInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.core.management.SubResourcebackendAddressPool()Get the backendAddressPool property: A reference to backendAddressPool resource.NetworkInterfaceIpConfigurationInnerbackendIpConfiguration()Get the backendIpConfiguration property: A reference to a private IP address defined on a network interface of a VM.IntegerbackendPort()Get the backendPort property: The port used for the internal endpoint.BooleanenableFloatingIp()Get the enableFloatingIp property: Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group.BooleanenableTcpReset()Get the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination.Stringetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.com.azure.core.management.SubResourcefrontendIpConfiguration()Get the frontendIpConfiguration property: A reference to frontend IP addresses.IntegerfrontendPort()Get the frontendPort property: The port for the external endpoint.IntegerfrontendPortRangeEnd()Get the frontendPortRangeEnd property: The port range end for the external endpoint.IntegerfrontendPortRangeStart()Get the frontendPortRangeStart property: The port range start for the external endpoint.IntegeridleTimeoutInMinutes()Get the idleTimeoutInMinutes property: The timeout for the TCP idle connection.Stringname()Get the name property: The name of the resource that is unique within the set of inbound NAT rules used by the load balancer.TransportProtocolprotocol()Get the protocol property: The reference to the transport protocol used by the load balancing rule.ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of the inbound NAT rule resource.Stringtype()Get the type property: Type of the resource.voidvalidate()Validates the instance.InboundNatRuleInnerwithBackendAddressPool(com.azure.core.management.SubResource backendAddressPool)Set the backendAddressPool property: A reference to backendAddressPool resource.InboundNatRuleInnerwithBackendPort(Integer backendPort)Set the backendPort property: The port used for the internal endpoint.InboundNatRuleInnerwithEnableFloatingIp(Boolean enableFloatingIp)Set the enableFloatingIp property: Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group.InboundNatRuleInnerwithEnableTcpReset(Boolean enableTcpReset)Set the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination.InboundNatRuleInnerwithFrontendIpConfiguration(com.azure.core.management.SubResource frontendIpConfiguration)Set the frontendIpConfiguration property: A reference to frontend IP addresses.InboundNatRuleInnerwithFrontendPort(Integer frontendPort)Set the frontendPort property: The port for the external endpoint.InboundNatRuleInnerwithFrontendPortRangeEnd(Integer frontendPortRangeEnd)Set the frontendPortRangeEnd property: The port range end for the external endpoint.InboundNatRuleInnerwithFrontendPortRangeStart(Integer frontendPortRangeStart)Set the frontendPortRangeStart property: The port range start for the external endpoint.InboundNatRuleInnerwithId(String id)InboundNatRuleInnerwithIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)Set the idleTimeoutInMinutes property: The timeout for the TCP idle connection.InboundNatRuleInnerwithName(String name)Set the name property: The name of the resource that is unique within the set of inbound NAT rules used by the load balancer.InboundNatRuleInnerwithProtocol(TransportProtocol protocol)Set the protocol property: The reference to the transport protocol used by the load balancing rule.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name of the resource that is unique within the set of inbound NAT rules used by the load balancer. This name can be used to access the resource.- Returns:
- the name value.
-
withName
public InboundNatRuleInner withName(String name)
Set the name property: The name of the resource that is unique within the set of inbound NAT rules used by the load balancer. This name can be used to access the resource.- Parameters:
name- the name value to set.- Returns:
- the InboundNatRuleInner 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 InboundNatRuleInner withId(String id)
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
frontendIpConfiguration
public com.azure.core.management.SubResource frontendIpConfiguration()
Get the frontendIpConfiguration property: A reference to frontend IP addresses.- Returns:
- the frontendIpConfiguration value.
-
withFrontendIpConfiguration
public InboundNatRuleInner withFrontendIpConfiguration(com.azure.core.management.SubResource frontendIpConfiguration)
Set the frontendIpConfiguration property: A reference to frontend IP addresses.- Parameters:
frontendIpConfiguration- the frontendIpConfiguration value to set.- Returns:
- the InboundNatRuleInner object itself.
-
backendIpConfiguration
public NetworkInterfaceIpConfigurationInner backendIpConfiguration()
Get the backendIpConfiguration property: A reference to a private IP address defined on a network interface of a VM. Traffic sent to the frontend port of each of the frontend IP configurations is forwarded to the backend IP.- Returns:
- the backendIpConfiguration value.
-
protocol
public TransportProtocol protocol()
Get the protocol property: The reference to the transport protocol used by the load balancing rule.- Returns:
- the protocol value.
-
withProtocol
public InboundNatRuleInner withProtocol(TransportProtocol protocol)
Set the protocol property: The reference to the transport protocol used by the load balancing rule.- Parameters:
protocol- the protocol value to set.- Returns:
- the InboundNatRuleInner object itself.
-
frontendPort
public Integer frontendPort()
Get the frontendPort property: The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534.- Returns:
- the frontendPort value.
-
withFrontendPort
public InboundNatRuleInner withFrontendPort(Integer frontendPort)
Set the frontendPort property: The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534.- Parameters:
frontendPort- the frontendPort value to set.- Returns:
- the InboundNatRuleInner object itself.
-
backendPort
public Integer backendPort()
Get the backendPort property: The port used for the internal endpoint. Acceptable values range from 1 to 65535.- Returns:
- the backendPort value.
-
withBackendPort
public InboundNatRuleInner withBackendPort(Integer backendPort)
Set the backendPort property: The port used for the internal endpoint. Acceptable values range from 1 to 65535.- Parameters:
backendPort- the backendPort value to set.- Returns:
- the InboundNatRuleInner object itself.
-
idleTimeoutInMinutes
public Integer idleTimeoutInMinutes()
Get the idleTimeoutInMinutes property: The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP.- Returns:
- the idleTimeoutInMinutes value.
-
withIdleTimeoutInMinutes
public InboundNatRuleInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)
Set the idleTimeoutInMinutes property: The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP.- Parameters:
idleTimeoutInMinutes- the idleTimeoutInMinutes value to set.- Returns:
- the InboundNatRuleInner object itself.
-
enableFloatingIp
public Boolean enableFloatingIp()
Get the enableFloatingIp property: Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint.- Returns:
- the enableFloatingIp value.
-
withEnableFloatingIp
public InboundNatRuleInner withEnableFloatingIp(Boolean enableFloatingIp)
Set the enableFloatingIp property: Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint.- Parameters:
enableFloatingIp- the enableFloatingIp value to set.- Returns:
- the InboundNatRuleInner object itself.
-
enableTcpReset
public Boolean enableTcpReset()
Get the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP.- Returns:
- the enableTcpReset value.
-
withEnableTcpReset
public InboundNatRuleInner withEnableTcpReset(Boolean enableTcpReset)
Set the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP.- Parameters:
enableTcpReset- the enableTcpReset value to set.- Returns:
- the InboundNatRuleInner object itself.
-
frontendPortRangeStart
public Integer frontendPortRangeStart()
Get the frontendPortRangeStart property: The port range start for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeEnd. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534.- Returns:
- the frontendPortRangeStart value.
-
withFrontendPortRangeStart
public InboundNatRuleInner withFrontendPortRangeStart(Integer frontendPortRangeStart)
Set the frontendPortRangeStart property: The port range start for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeEnd. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534.- Parameters:
frontendPortRangeStart- the frontendPortRangeStart value to set.- Returns:
- the InboundNatRuleInner object itself.
-
frontendPortRangeEnd
public Integer frontendPortRangeEnd()
Get the frontendPortRangeEnd property: The port range end for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeStart. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534.- Returns:
- the frontendPortRangeEnd value.
-
withFrontendPortRangeEnd
public InboundNatRuleInner withFrontendPortRangeEnd(Integer frontendPortRangeEnd)
Set the frontendPortRangeEnd property: The port range end for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeStart. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534.- Parameters:
frontendPortRangeEnd- the frontendPortRangeEnd value to set.- Returns:
- the InboundNatRuleInner object itself.
-
backendAddressPool
public com.azure.core.management.SubResource backendAddressPool()
Get the backendAddressPool property: A reference to backendAddressPool resource.- Returns:
- the backendAddressPool value.
-
withBackendAddressPool
public InboundNatRuleInner withBackendAddressPool(com.azure.core.management.SubResource backendAddressPool)
Set the backendAddressPool property: A reference to backendAddressPool resource.- Parameters:
backendAddressPool- the backendAddressPool value to set.- Returns:
- the InboundNatRuleInner object itself.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the inbound NAT rule resource.- Returns:
- the provisioningState value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-