OutboundRulePropertiesFormat Class

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

Implements

public final class OutboundRulePropertiesFormat
implements JsonSerializable<OutboundRulePropertiesFormat>

Outbound rule of the load balancer.

Constructor Summary

Constructor Description
OutboundRulePropertiesFormat()

Creates an instance of OutboundRulePropertiesFormat 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.

static OutboundRulePropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of OutboundRulePropertiesFormat 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.

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)
void validate()

Validates the instance.

OutboundRulePropertiesFormat withAllocatedOutboundPorts(Integer allocatedOutboundPorts)

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

OutboundRulePropertiesFormat withBackendAddressPool(SubResource backendAddressPool)

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

OutboundRulePropertiesFormat withEnableTcpReset(Boolean enableTcpReset)

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

OutboundRulePropertiesFormat withFrontendIpConfigurations(List<SubResource> frontendIpConfigurations)

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

OutboundRulePropertiesFormat withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

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

OutboundRulePropertiesFormat withProtocol(LoadBalancerOutboundRuleProtocol protocol)

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

Methods inherited from java.lang.Object

Constructor Details

OutboundRulePropertiesFormat

public OutboundRulePropertiesFormat()

Creates an instance of OutboundRulePropertiesFormat 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.

fromJson

public static OutboundRulePropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of OutboundRulePropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

frontendIpConfigurations

public List<SubResource> 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.

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)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllocatedOutboundPorts

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

withBackendAddressPool

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

withEnableTcpReset

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

withFrontendIpConfigurations

public OutboundRulePropertiesFormat withFrontendIpConfigurations(List<SubResource> frontendIpConfigurations)

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

Parameters:

frontendIpConfigurations - the frontendIpConfigurations value to set.

Returns:

the OutboundRulePropertiesFormat object itself.

withIdleTimeoutInMinutes

public OutboundRulePropertiesFormat withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

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

Parameters:

idleTimeoutInMinutes - the idleTimeoutInMinutes value to set.

Returns:

the OutboundRulePropertiesFormat object itself.

withProtocol

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

Applies to