Class LoadBalancerConfiguration
- java.lang.Object
-
- com.azure.resourcemanager.sqlvirtualmachine.models.LoadBalancerConfiguration
-
public final class LoadBalancerConfiguration extends Object
A load balancer configuration for an availability group listener.
-
-
Constructor Summary
Constructors Constructor Description LoadBalancerConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
loadBalancerResourceId()
Get the loadBalancerResourceId property: Resource id of the load balancer.PrivateIpAddress
privateIpAddress()
Get the privateIpAddress property: Private IP address.Integer
probePort()
Get the probePort property: Probe port.String
publicIpAddressResourceId()
Get the publicIpAddressResourceId property: Resource id of the public IP.List<String>
sqlVirtualMachineInstances()
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.LoadBalancerConfiguration
withLoadBalancerResourceId(String loadBalancerResourceId)
Set the loadBalancerResourceId property: Resource id of the load balancer.LoadBalancerConfiguration
withPrivateIpAddress(PrivateIpAddress privateIpAddress)
Set the privateIpAddress property: Private IP address.LoadBalancerConfiguration
withProbePort(Integer probePort)
Set the probePort property: Probe port.LoadBalancerConfiguration
withPublicIpAddressResourceId(String publicIpAddressResourceId)
Set the publicIpAddressResourceId property: Resource id of the public IP.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.
-
-
-
Method Detail
-
privateIpAddress
public PrivateIpAddress privateIpAddress()
Get the privateIpAddress property: Private IP address.- Returns:
- the privateIpAddress value.
-
withPrivateIpAddress
public LoadBalancerConfiguration withPrivateIpAddress(PrivateIpAddress privateIpAddress)
Set the privateIpAddress property: Private IP address.- Parameters:
privateIpAddress
- the privateIpAddress value to set.- Returns:
- the LoadBalancerConfiguration object itself.
-
publicIpAddressResourceId
public String publicIpAddressResourceId()
Get the publicIpAddressResourceId property: Resource id of the public IP.- Returns:
- the publicIpAddressResourceId value.
-
withPublicIpAddressResourceId
public LoadBalancerConfiguration withPublicIpAddressResourceId(String publicIpAddressResourceId)
Set the publicIpAddressResourceId property: Resource id of the public IP.- Parameters:
publicIpAddressResourceId
- the publicIpAddressResourceId value to set.- Returns:
- the LoadBalancerConfiguration object itself.
-
loadBalancerResourceId
public String loadBalancerResourceId()
Get the loadBalancerResourceId property: Resource id of the load balancer.- Returns:
- the loadBalancerResourceId value.
-
withLoadBalancerResourceId
public LoadBalancerConfiguration withLoadBalancerResourceId(String loadBalancerResourceId)
Set the loadBalancerResourceId property: Resource id of the load balancer.- Parameters:
loadBalancerResourceId
- the loadBalancerResourceId value to set.- Returns:
- the LoadBalancerConfiguration object itself.
-
probePort
public Integer probePort()
Get the probePort property: Probe port.- Returns:
- the probePort value.
-
withProbePort
public LoadBalancerConfiguration withProbePort(Integer probePort)
Set the probePort property: Probe port.- Parameters:
probePort
- the probePort value to set.- Returns:
- the LoadBalancerConfiguration object itself.
-
sqlVirtualMachineInstances
public List<String> 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.
-
-