Class InboundNatRulePropertiesFormatInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.InboundNatRulePropertiesFormatInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<InboundNatRulePropertiesFormatInner>
public final class InboundNatRulePropertiesFormatInner
extends Object
implements com.azure.json.JsonSerializable<InboundNatRulePropertiesFormatInner>
Properties of the inbound NAT rule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of InboundNatRulePropertiesFormatInner class. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.SubResourceGet the backendAddressPool property: A reference to backendAddressPool resource.Get the backendIpConfiguration property: A reference to a private IP address defined on a network interface of a VM.Get the backendPort property: The port used for the internal endpoint.Get the enableFloatingIp property: Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group.Get the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of InboundNatRulePropertiesFormatInner from the JsonReader.com.azure.core.management.SubResourceGet the frontendIpConfiguration property: A reference to frontend IP addresses.Get the frontendPort property: The port for the external endpoint.Get the frontendPortRangeEnd property: The port range end for the external endpoint.Get the frontendPortRangeStart property: The port range start for the external endpoint.Get the idleTimeoutInMinutes property: The timeout for the TCP idle connection.protocol()Get the protocol property: The reference to the transport protocol used by the load balancing rule.Get the provisioningState property: The provisioning state of the inbound NAT rule resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBackendAddressPool(com.azure.core.management.SubResource backendAddressPool) Set the backendAddressPool property: A reference to backendAddressPool resource.withBackendPort(Integer backendPort) Set the backendPort property: The port used for the internal endpoint.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.withEnableTcpReset(Boolean enableTcpReset) Set the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination.withFrontendIpConfiguration(com.azure.core.management.SubResource frontendIpConfiguration) Set the frontendIpConfiguration property: A reference to frontend IP addresses.withFrontendPort(Integer frontendPort) Set the frontendPort property: The port for the external endpoint.withFrontendPortRangeEnd(Integer frontendPortRangeEnd) Set the frontendPortRangeEnd property: The port range end for the external endpoint.withFrontendPortRangeStart(Integer frontendPortRangeStart) Set the frontendPortRangeStart property: The port range start for the external endpoint.withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes) Set the idleTimeoutInMinutes property: The timeout for the TCP idle connection.withProtocol(TransportProtocol protocol) Set the protocol property: The reference to the transport protocol used by the load balancing rule.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
InboundNatRulePropertiesFormatInner
public InboundNatRulePropertiesFormatInner()Creates an instance of InboundNatRulePropertiesFormatInner class.
-
-
Method Details
-
frontendIpConfiguration
public com.azure.core.management.SubResource frontendIpConfiguration()Get the frontendIpConfiguration property: A reference to frontend IP addresses.- Returns:
- the frontendIpConfiguration value.
-
withFrontendIpConfiguration
public InboundNatRulePropertiesFormatInner 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 InboundNatRulePropertiesFormatInner object itself.
-
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
Get the protocol property: The reference to the transport protocol used by the load balancing rule.- Returns:
- the protocol value.
-
withProtocol
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 InboundNatRulePropertiesFormatInner object itself.
-
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
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 InboundNatRulePropertiesFormatInner object itself.
-
backendPort
Get the backendPort property: The port used for the internal endpoint. Acceptable values range from 1 to 65535.- Returns:
- the backendPort value.
-
withBackendPort
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 InboundNatRulePropertiesFormatInner object itself.
-
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
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 InboundNatRulePropertiesFormatInner object itself.
-
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
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 InboundNatRulePropertiesFormatInner object itself.
-
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
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 InboundNatRulePropertiesFormatInner object itself.
-
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 InboundNatRulePropertiesFormatInner 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 InboundNatRulePropertiesFormatInner object itself.
-
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
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 InboundNatRulePropertiesFormatInner 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 InboundNatRulePropertiesFormatInner 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 InboundNatRulePropertiesFormatInner object itself.
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<InboundNatRulePropertiesFormatInner>- Throws:
IOException
-
fromJson
public static InboundNatRulePropertiesFormatInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of InboundNatRulePropertiesFormatInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of InboundNatRulePropertiesFormatInner 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 InboundNatRulePropertiesFormatInner.
-