Class LoadBalancerConfiguration
java.lang.Object
com.azure.resourcemanager.sqlvirtualmachine.models.LoadBalancerConfiguration
A load balancer configuration for an availability group listener.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the loadBalancerResourceId property: Resource id of the load balancer.Get the privateIpAddress property: Private IP address.Get the probePort property: Probe port.Get the publicIpAddressResourceId property: Resource id of the public IP.Get the sqlVirtualMachineInstances property: List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener.void
validate()
Validates the instance.withLoadBalancerResourceId
(String loadBalancerResourceId) Set the loadBalancerResourceId property: Resource id of the load balancer.withPrivateIpAddress
(PrivateIpAddress privateIpAddress) Set the privateIpAddress property: Private IP address.withProbePort
(Integer probePort) Set the probePort property: Probe port.withPublicIpAddressResourceId
(String publicIpAddressResourceId) Set the publicIpAddressResourceId property: Resource id of the public IP.withSqlVirtualMachineInstances
(List<String> sqlVirtualMachineInstances) Set the sqlVirtualMachineInstances property: List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener.
-
Constructor Details
-
LoadBalancerConfiguration
public LoadBalancerConfiguration()
-
-
Method Details
-
privateIpAddress
Get the privateIpAddress property: Private IP address.- Returns:
- the privateIpAddress value.
-
withPrivateIpAddress
Set the privateIpAddress property: Private IP address.- Parameters:
privateIpAddress
- the privateIpAddress value to set.- Returns:
- the LoadBalancerConfiguration object itself.
-
publicIpAddressResourceId
Get the publicIpAddressResourceId property: Resource id of the public IP.- Returns:
- the publicIpAddressResourceId value.
-
withPublicIpAddressResourceId
Set the publicIpAddressResourceId property: Resource id of the public IP.- Parameters:
publicIpAddressResourceId
- the publicIpAddressResourceId value to set.- Returns:
- the LoadBalancerConfiguration object itself.
-
loadBalancerResourceId
Get the loadBalancerResourceId property: Resource id of the load balancer.- Returns:
- the loadBalancerResourceId value.
-
withLoadBalancerResourceId
Set the loadBalancerResourceId property: Resource id of the load balancer.- Parameters:
loadBalancerResourceId
- the loadBalancerResourceId value to set.- Returns:
- the LoadBalancerConfiguration object itself.
-
probePort
Get the probePort property: Probe port.- Returns:
- the probePort value.
-
withProbePort
Set the probePort property: Probe port.- Parameters:
probePort
- the probePort value to set.- Returns:
- the LoadBalancerConfiguration object itself.
-
sqlVirtualMachineInstances
Get the sqlVirtualMachineInstances property: List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener.- Returns:
- the sqlVirtualMachineInstances value.
-
withSqlVirtualMachineInstances
public LoadBalancerConfiguration withSqlVirtualMachineInstances(List<String> sqlVirtualMachineInstances) Set the sqlVirtualMachineInstances property: List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener.- Parameters:
sqlVirtualMachineInstances
- the sqlVirtualMachineInstances value to set.- Returns:
- the LoadBalancerConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-