Sdílet prostřednictvím


InboundNatRulePropertiesFormatInner Class

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

Implements

public final class InboundNatRulePropertiesFormatInner
implements JsonSerializable<InboundNatRulePropertiesFormatInner>

Properties of the inbound NAT rule.

Constructor Summary

Constructor Description
InboundNatRulePropertiesFormatInner()

Creates an instance of InboundNatRulePropertiesFormatInner class.

Method Summary

Modifier and Type Method and Description
SubResource backendAddressPool()

Get the backendAddressPool property: A reference to backendAddressPool resource.

NetworkInterfaceIpConfigurationInner backendIpConfiguration()

Get the backendIpConfiguration property: A reference to a private IP address defined on a network interface of a VM.

Integer backendPort()

Get the backendPort property: The port used for the internal 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 InboundNatRulePropertiesFormatInner fromJson(JsonReader jsonReader)

Reads an instance of InboundNatRulePropertiesFormatInner from the JsonReader.

SubResource frontendIpConfiguration()

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

Integer frontendPort()

Get the frontendPort property: The port for the external endpoint.

Integer frontendPortRangeEnd()

Get the frontendPortRangeEnd property: The port range end for the external endpoint.

Integer frontendPortRangeStart()

Get the frontendPortRangeStart property: The port range start for the external endpoint.

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 load balancing rule.

ProvisioningState provisioningState()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

InboundNatRulePropertiesFormatInner withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: A reference to backendAddressPool resource.

InboundNatRulePropertiesFormatInner withBackendPort(Integer backendPort)

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

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

InboundNatRulePropertiesFormatInner withEnableTcpReset(Boolean enableTcpReset)

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

InboundNatRulePropertiesFormatInner withFrontendIpConfiguration(SubResource frontendIpConfiguration)

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

InboundNatRulePropertiesFormatInner withFrontendPort(Integer frontendPort)

Set the frontendPort property: The port for the external endpoint.

InboundNatRulePropertiesFormatInner withFrontendPortRangeEnd(Integer frontendPortRangeEnd)

Set the frontendPortRangeEnd property: The port range end for the external endpoint.

InboundNatRulePropertiesFormatInner withFrontendPortRangeStart(Integer frontendPortRangeStart)

Set the frontendPortRangeStart property: The port range start for the external endpoint.

InboundNatRulePropertiesFormatInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

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

InboundNatRulePropertiesFormatInner withProtocol(TransportProtocol protocol)

Set the protocol property: The reference to the transport protocol used by the load balancing rule.

Methods inherited from java.lang.Object

Constructor Details

InboundNatRulePropertiesFormatInner

public InboundNatRulePropertiesFormatInner()

Creates an instance of InboundNatRulePropertiesFormatInner class.

Method Details

backendAddressPool

public SubResource backendAddressPool()

Get the backendAddressPool property: A reference to backendAddressPool resource.

Returns:

the backendAddressPool value.

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.

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.

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 InboundNatRulePropertiesFormatInner fromJson(JsonReader jsonReader)

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.

frontendIpConfiguration

public SubResource frontendIpConfiguration()

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

Returns:

the frontendIpConfiguration value.

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.

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.

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.

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 load balancing rule.

Returns:

the protocol value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBackendAddressPool

public InboundNatRulePropertiesFormatInner withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: A reference to backendAddressPool resource.

Parameters:

backendAddressPool - the backendAddressPool value to set.

Returns:

the InboundNatRulePropertiesFormatInner object itself.

withBackendPort

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

withEnableFloatingIp

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

withEnableTcpReset

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

withFrontendIpConfiguration

public InboundNatRulePropertiesFormatInner withFrontendIpConfiguration(SubResource frontendIpConfiguration)

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

Parameters:

frontendIpConfiguration - the frontendIpConfiguration value to set.

Returns:

the InboundNatRulePropertiesFormatInner object itself.

withFrontendPort

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

withFrontendPortRangeEnd

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

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.

withIdleTimeoutInMinutes

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

withProtocol

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

Applies to