OutboundRuleInner Class

public final class OutboundRuleInner
extends SubResource

Outbound rule of the load balancer.

Constructor Summary

Constructor Description
OutboundRuleInner()

Creates an instance of OutboundRuleInner class.

Method Summary

Modifier and Type Method and Description
Integer allocatedOutboundPorts()

Get the allocatedOutboundPorts property: The number of outbound ports to be used for NAT.

SubResource backendAddressPool()

Get the backendAddressPool property: A reference to a pool of DIPs.

Boolean enableTcpReset()

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

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static OutboundRuleInner fromJson(JsonReader jsonReader)

Reads an instance of OutboundRuleInner from the JsonReader.

List<SubResource> frontendIpConfigurations()

Get the frontendIpConfigurations property: The Frontend IP addresses of the load balancer.

Integer idleTimeoutInMinutes()

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

String name()

Get the name property: The name of the resource that is unique within the set of outbound rules used by the load balancer.

LoadBalancerOutboundRuleProtocol protocol()

Get the protocol property: The protocol for the outbound rule in load balancer.

ProvisioningState provisioningState()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the resource.

void validate()

Validates the instance.

OutboundRuleInner withAllocatedOutboundPorts(Integer allocatedOutboundPorts)

Set the allocatedOutboundPorts property: The number of outbound ports to be used for NAT.

OutboundRuleInner withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: A reference to a pool of DIPs.

OutboundRuleInner withEnableTcpReset(Boolean enableTcpReset)

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

OutboundRuleInner withFrontendIpConfigurations(List<SubResource> frontendIpConfigurations)

Set the frontendIpConfigurations property: The Frontend IP addresses of the load balancer.

OutboundRuleInner withId(String id)
OutboundRuleInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

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

OutboundRuleInner withName(String name)

Set the name property: The name of the resource that is unique within the set of outbound rules used by the load balancer.

OutboundRuleInner withProtocol(LoadBalancerOutboundRuleProtocol protocol)

Set the protocol property: The protocol for the outbound rule in load balancer.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

OutboundRuleInner

public OutboundRuleInner()

Creates an instance of OutboundRuleInner class.

Method Details

allocatedOutboundPorts

public Integer allocatedOutboundPorts()

Get the allocatedOutboundPorts property: The number of outbound ports to be used for NAT.

Returns:

the allocatedOutboundPorts value.

backendAddressPool

public SubResource backendAddressPool()

Get the backendAddressPool property: A reference to a pool of DIPs. Outbound traffic is randomly load balanced across IPs in the backend IPs.

Returns:

the backendAddressPool 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.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static OutboundRuleInner fromJson(JsonReader jsonReader)

Reads an instance of OutboundRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OutboundRuleInner 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 OutboundRuleInner.

frontendIpConfigurations

public List frontendIpConfigurations()

Get the frontendIpConfigurations property: The Frontend IP addresses of the load balancer.

Returns:

the frontendIpConfigurations value.

idleTimeoutInMinutes

public Integer idleTimeoutInMinutes()

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

Returns:

the idleTimeoutInMinutes value.

name

public String name()

Get the name property: The name of the resource that is unique within the set of outbound rules used by the load balancer. This name can be used to access the resource.

Returns:

the name value.

protocol

public LoadBalancerOutboundRuleProtocol protocol()

Get the protocol property: The protocol for the outbound rule in load balancer.

Returns:

the protocol value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

OutboundRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of the resource.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAllocatedOutboundPorts

public OutboundRuleInner withAllocatedOutboundPorts(Integer allocatedOutboundPorts)

Set the allocatedOutboundPorts property: The number of outbound ports to be used for NAT.

Parameters:

allocatedOutboundPorts - the allocatedOutboundPorts value to set.

Returns:

the OutboundRuleInner object itself.

withBackendAddressPool

public OutboundRuleInner withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: A reference to a pool of DIPs. Outbound traffic is randomly load balanced across IPs in the backend IPs.

Parameters:

backendAddressPool - the backendAddressPool value to set.

Returns:

the OutboundRuleInner object itself.

withEnableTcpReset

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

withFrontendIpConfigurations

public OutboundRuleInner withFrontendIpConfigurations(List frontendIpConfigurations)

Set the frontendIpConfigurations property: The Frontend IP addresses of the load balancer.

Parameters:

frontendIpConfigurations - the frontendIpConfigurations value to set.

Returns:

the OutboundRuleInner object itself.

withId

public OutboundRuleInner withId(String id)

Overrides:

OutboundRuleInner.withId(String id)

Parameters:

id

withIdleTimeoutInMinutes

public OutboundRuleInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

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

Parameters:

idleTimeoutInMinutes - the idleTimeoutInMinutes value to set.

Returns:

the OutboundRuleInner object itself.

withName

public OutboundRuleInner withName(String name)

Set the name property: The name of the resource that is unique within the set of outbound rules used by the load balancer. This name can be used to access the resource.

Parameters:

name - the name value to set.

Returns:

the OutboundRuleInner object itself.

withProtocol

public OutboundRuleInner withProtocol(LoadBalancerOutboundRuleProtocol protocol)

Set the protocol property: The protocol for the outbound rule in load balancer.

Parameters:

protocol - the protocol value to set.

Returns:

the OutboundRuleInner object itself.

Applies to