InboundNatPoolPropertiesFormat Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.InboundNatPoolPropertiesFormat

Implements

public final class InboundNatPoolPropertiesFormat
implements JsonSerializable<InboundNatPoolPropertiesFormat>

Properties of Inbound NAT pool.

Constructor Summary

Constructor Description
InboundNatPoolPropertiesFormat()

Creates an instance of InboundNatPoolPropertiesFormat class.

Method Summary

Modifier and Type Method and Description
int backendPort()

Get the backendPort property: The port used for internal connections on the endpoint.

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.

Boolean enableTcpReset()

Get the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination.

static InboundNatPoolPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of InboundNatPoolPropertiesFormat from the JsonReader.

SubResource frontendIpConfiguration()

Get the frontendIpConfiguration property: A reference to frontend IP addresses.

int frontendPortRangeEnd()

Get the frontendPortRangeEnd property: The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer.

int frontendPortRangeStart()

Get the frontendPortRangeStart property: The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer.

Integer idleTimeoutInMinutes()

Get the idleTimeoutInMinutes property: The timeout for the TCP idle connection.

TransportProtocol protocol()

Get the protocol property: The reference to the transport protocol used by the inbound NAT pool.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the inbound NAT pool resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

InboundNatPoolPropertiesFormat withBackendPort(int backendPort)

Set the backendPort property: The port used for internal connections on the endpoint.

InboundNatPoolPropertiesFormat 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.

InboundNatPoolPropertiesFormat withEnableTcpReset(Boolean enableTcpReset)

Set the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination.

InboundNatPoolPropertiesFormat withFrontendIpConfiguration(SubResource frontendIpConfiguration)

Set the frontendIpConfiguration property: A reference to frontend IP addresses.

InboundNatPoolPropertiesFormat withFrontendPortRangeEnd(int frontendPortRangeEnd)

Set the frontendPortRangeEnd property: The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer.

InboundNatPoolPropertiesFormat withFrontendPortRangeStart(int frontendPortRangeStart)

Set the frontendPortRangeStart property: The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer.

InboundNatPoolPropertiesFormat withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

Set the idleTimeoutInMinutes property: The timeout for the TCP idle connection.

InboundNatPoolPropertiesFormat withProtocol(TransportProtocol protocol)

Set the protocol property: The reference to the transport protocol used by the inbound NAT pool.

Methods inherited from java.lang.Object

Constructor Details

InboundNatPoolPropertiesFormat

public InboundNatPoolPropertiesFormat()

Creates an instance of InboundNatPoolPropertiesFormat class.

Method Details

backendPort

public int backendPort()

Get the backendPort property: The port used for internal connections on the endpoint. Acceptable values are between 1 and 65535.

Returns:

the backendPort value.

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.

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.

fromJson

public static InboundNatPoolPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of InboundNatPoolPropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of InboundNatPoolPropertiesFormat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

frontendIpConfiguration

public SubResource frontendIpConfiguration()

Get the frontendIpConfiguration property: A reference to frontend IP addresses.

Returns:

the frontendIpConfiguration value.

frontendPortRangeEnd

public int frontendPortRangeEnd()

Get the frontendPortRangeEnd property: The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65535.

Returns:

the frontendPortRangeEnd value.

frontendPortRangeStart

public int frontendPortRangeStart()

Get the frontendPortRangeStart property: The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65534.

Returns:

the frontendPortRangeStart value.

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.

protocol

public TransportProtocol protocol()

Get the protocol property: The reference to the transport protocol used by the inbound NAT pool.

Returns:

the protocol value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the inbound NAT pool resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBackendPort

public InboundNatPoolPropertiesFormat withBackendPort(int backendPort)

Set the backendPort property: The port used for internal connections on the endpoint. Acceptable values are between 1 and 65535.

Parameters:

backendPort - the backendPort value to set.

Returns:

the InboundNatPoolPropertiesFormat object itself.

withEnableFloatingIp

public InboundNatPoolPropertiesFormat 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 InboundNatPoolPropertiesFormat object itself.

withEnableTcpReset

public InboundNatPoolPropertiesFormat 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 InboundNatPoolPropertiesFormat object itself.

withFrontendIpConfiguration

public InboundNatPoolPropertiesFormat withFrontendIpConfiguration(SubResource frontendIpConfiguration)

Set the frontendIpConfiguration property: A reference to frontend IP addresses.

Parameters:

frontendIpConfiguration - the frontendIpConfiguration value to set.

Returns:

the InboundNatPoolPropertiesFormat object itself.

withFrontendPortRangeEnd

public InboundNatPoolPropertiesFormat withFrontendPortRangeEnd(int frontendPortRangeEnd)

Set the frontendPortRangeEnd property: The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65535.

Parameters:

frontendPortRangeEnd - the frontendPortRangeEnd value to set.

Returns:

the InboundNatPoolPropertiesFormat object itself.

withFrontendPortRangeStart

public InboundNatPoolPropertiesFormat withFrontendPortRangeStart(int frontendPortRangeStart)

Set the frontendPortRangeStart property: The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65534.

Parameters:

frontendPortRangeStart - the frontendPortRangeStart value to set.

Returns:

the InboundNatPoolPropertiesFormat object itself.

withIdleTimeoutInMinutes

public InboundNatPoolPropertiesFormat 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 InboundNatPoolPropertiesFormat object itself.

withProtocol

public InboundNatPoolPropertiesFormat withProtocol(TransportProtocol protocol)

Set the protocol property: The reference to the transport protocol used by the inbound NAT pool.

Parameters:

protocol - the protocol value to set.

Returns:

the InboundNatPoolPropertiesFormat object itself.

Applies to