Class OutboundRuleInner
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.fluent.models.OutboundRuleInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class OutboundRuleInner
extends com.azure.core.management.SubResource
Outbound rule of the load balancer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the allocatedOutboundPorts property: The number of outbound ports to be used for NAT.com.azure.core.management.SubResourceGet the backendAddressPool property: A reference to a pool of DIPs.Get the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.static OutboundRuleInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OutboundRuleInner from the JsonReader.List<com.azure.core.management.SubResource> Get the frontendIpConfigurations property: The Frontend IP addresses of the load balancer.Get the idleTimeoutInMinutes property: The timeout for the TCP idle connection.name()Get the name property: The name of the resource that is unique within the set of outbound rules used by the load balancer.protocol()Get the protocol property: The protocol for the outbound rule in load balancer.Get the provisioningState property: The provisioning state of the outbound rule resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the resource.voidvalidate()Validates the instance.withAllocatedOutboundPorts(Integer allocatedOutboundPorts) Set the allocatedOutboundPorts property: The number of outbound ports to be used for NAT.withBackendAddressPool(com.azure.core.management.SubResource backendAddressPool) Set the backendAddressPool property: A reference to a pool of DIPs.withEnableTcpReset(Boolean enableTcpReset) Set the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination.withFrontendIpConfigurations(List<com.azure.core.management.SubResource> frontendIpConfigurations) Set the frontendIpConfigurations property: The Frontend IP addresses of the load balancer.withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes) Set the idleTimeoutInMinutes property: The timeout for the TCP idle connection.Set the name property: The name of the resource that is unique within the set of outbound rules used by the load balancer.withProtocol(LoadBalancerOutboundRuleProtocol protocol) Set the protocol property: The protocol for the outbound rule in load balancer.Methods inherited from class com.azure.core.management.SubResource
idMethods 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
-
OutboundRuleInner
public OutboundRuleInner()Creates an instance of OutboundRuleInner class.
-
-
Method Details
-
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.
-
withName
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.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
type
Get the type property: Type of the resource.- Returns:
- the type value.
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
allocatedOutboundPorts
Get the allocatedOutboundPorts property: The number of outbound ports to be used for NAT.- Returns:
- the allocatedOutboundPorts value.
-
withAllocatedOutboundPorts
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.
-
frontendIpConfigurations
Get the frontendIpConfigurations property: The Frontend IP addresses of the load balancer.- Returns:
- the frontendIpConfigurations value.
-
withFrontendIpConfigurations
public OutboundRuleInner withFrontendIpConfigurations(List<com.azure.core.management.SubResource> 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.
-
backendAddressPool
public com.azure.core.management.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.
-
withBackendAddressPool
public OutboundRuleInner withBackendAddressPool(com.azure.core.management.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.
-
provisioningState
Get the provisioningState property: The provisioning state of the outbound rule resource.- Returns:
- the provisioningState value.
-
protocol
Get the protocol property: The protocol for the outbound rule in load balancer.- Returns:
- the protocol value.
-
withProtocol
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.
-
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 OutboundRuleInner object itself.
-
idleTimeoutInMinutes
Get the idleTimeoutInMinutes property: The timeout for the TCP idle connection.- Returns:
- the idleTimeoutInMinutes value.
-
withIdleTimeoutInMinutes
Set the idleTimeoutInMinutes property: The timeout for the TCP idle connection.- Parameters:
idleTimeoutInMinutes- the idleTimeoutInMinutes value to set.- Returns:
- the OutboundRuleInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
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.
-