Class BackendAddressPoolInner
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.fluent.models.BackendAddressPoolInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class BackendAddressPoolInner
extends com.azure.core.management.SubResource
Pool of backend IP addresses.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BackendAddressPoolInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the backendIpConfigurations property: An array of references to IP addresses defined in network interfaces.Get the drainPeriodInSeconds property: Amount of seconds Load Balancer waits for before sending RESET to client and backend address.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.static BackendAddressPoolInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BackendAddressPoolInner from the JsonReader.List<com.azure.core.management.SubResource> Get the inboundNatRules property: An array of references to inbound NAT rules that use this backend address pool.Get the loadBalancerBackendAddresses property: An array of backend addresses.List<com.azure.core.management.SubResource> Get the loadBalancingRules property: An array of references to load balancing rules that use this backend address pool.location()Get the location property: The location of the backend address pool.name()Get the name property: The name of the resource that is unique within the set of backend address pools used by the load balancer.com.azure.core.management.SubResourceGet the outboundRule property: A reference to an outbound rule that uses this backend address pool.List<com.azure.core.management.SubResource> Get the outboundRules property: An array of references to outbound rules that use this backend address pool.Get the provisioningState property: The provisioning state of the backend address pool resource.syncMode()Get the syncMode property: Backend address synchronous mode for the backend pool.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the tunnelInterfaces property: An array of gateway load balancer tunnel interfaces.type()Get the type property: Type of the resource.voidvalidate()Validates the instance.com.azure.core.management.SubResourceGet the virtualNetwork property: A reference to a virtual network.withDrainPeriodInSeconds(Integer drainPeriodInSeconds) Set the drainPeriodInSeconds property: Amount of seconds Load Balancer waits for before sending RESET to client and backend address.withLoadBalancerBackendAddresses(List<LoadBalancerBackendAddress> loadBalancerBackendAddresses) Set the loadBalancerBackendAddresses property: An array of backend addresses.withLocation(String location) Set the location property: The location of the backend address pool.Set the name property: The name of the resource that is unique within the set of backend address pools used by the load balancer.withSyncMode(SyncMode syncMode) Set the syncMode property: Backend address synchronous mode for the backend pool.withTunnelInterfaces(List<GatewayLoadBalancerTunnelInterface> tunnelInterfaces) Set the tunnelInterfaces property: An array of gateway load balancer tunnel interfaces.withVirtualNetwork(com.azure.core.management.SubResource virtualNetwork) Set the virtualNetwork property: A reference to a virtual network.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
-
BackendAddressPoolInner
public BackendAddressPoolInner()Creates an instance of BackendAddressPoolInner class.
-
-
Method Details
-
name
Get the name property: The name of the resource that is unique within the set of backend address pools 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 backend address pools used by the load balancer. This name can be used to access the resource.- Parameters:
name- the name value to set.- Returns:
- the BackendAddressPoolInner 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
-
location
Get the location property: The location of the backend address pool.- Returns:
- the location value.
-
withLocation
Set the location property: The location of the backend address pool.- Parameters:
location- the location value to set.- Returns:
- the BackendAddressPoolInner object itself.
-
tunnelInterfaces
Get the tunnelInterfaces property: An array of gateway load balancer tunnel interfaces.- Returns:
- the tunnelInterfaces value.
-
withTunnelInterfaces
public BackendAddressPoolInner withTunnelInterfaces(List<GatewayLoadBalancerTunnelInterface> tunnelInterfaces) Set the tunnelInterfaces property: An array of gateway load balancer tunnel interfaces.- Parameters:
tunnelInterfaces- the tunnelInterfaces value to set.- Returns:
- the BackendAddressPoolInner object itself.
-
loadBalancerBackendAddresses
Get the loadBalancerBackendAddresses property: An array of backend addresses.- Returns:
- the loadBalancerBackendAddresses value.
-
withLoadBalancerBackendAddresses
public BackendAddressPoolInner withLoadBalancerBackendAddresses(List<LoadBalancerBackendAddress> loadBalancerBackendAddresses) Set the loadBalancerBackendAddresses property: An array of backend addresses.- Parameters:
loadBalancerBackendAddresses- the loadBalancerBackendAddresses value to set.- Returns:
- the BackendAddressPoolInner object itself.
-
backendIpConfigurations
Get the backendIpConfigurations property: An array of references to IP addresses defined in network interfaces.- Returns:
- the backendIpConfigurations value.
-
loadBalancingRules
Get the loadBalancingRules property: An array of references to load balancing rules that use this backend address pool.- Returns:
- the loadBalancingRules value.
-
outboundRule
public com.azure.core.management.SubResource outboundRule()Get the outboundRule property: A reference to an outbound rule that uses this backend address pool.- Returns:
- the outboundRule value.
-
outboundRules
Get the outboundRules property: An array of references to outbound rules that use this backend address pool.- Returns:
- the outboundRules value.
-
inboundNatRules
Get the inboundNatRules property: An array of references to inbound NAT rules that use this backend address pool.- Returns:
- the inboundNatRules value.
-
provisioningState
Get the provisioningState property: The provisioning state of the backend address pool resource.- Returns:
- the provisioningState value.
-
drainPeriodInSeconds
Get the drainPeriodInSeconds property: Amount of seconds Load Balancer waits for before sending RESET to client and backend address.- Returns:
- the drainPeriodInSeconds value.
-
withDrainPeriodInSeconds
Set the drainPeriodInSeconds property: Amount of seconds Load Balancer waits for before sending RESET to client and backend address.- Parameters:
drainPeriodInSeconds- the drainPeriodInSeconds value to set.- Returns:
- the BackendAddressPoolInner object itself.
-
virtualNetwork
public com.azure.core.management.SubResource virtualNetwork()Get the virtualNetwork property: A reference to a virtual network.- Returns:
- the virtualNetwork value.
-
withVirtualNetwork
public BackendAddressPoolInner withVirtualNetwork(com.azure.core.management.SubResource virtualNetwork) Set the virtualNetwork property: A reference to a virtual network.- Parameters:
virtualNetwork- the virtualNetwork value to set.- Returns:
- the BackendAddressPoolInner object itself.
-
syncMode
Get the syncMode property: Backend address synchronous mode for the backend pool.- Returns:
- the syncMode value.
-
withSyncMode
Set the syncMode property: Backend address synchronous mode for the backend pool.- Parameters:
syncMode- the syncMode value to set.- Returns:
- the BackendAddressPoolInner 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
public static BackendAddressPoolInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BackendAddressPoolInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BackendAddressPoolInner 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 BackendAddressPoolInner.
-