Class PrivateIpAddress
- java.lang.Object
-
- com.azure.resourcemanager.sqlvirtualmachine.models.PrivateIpAddress
-
public final class PrivateIpAddress extends Object
A private IP address bound to the availability group listener.
-
-
Constructor Summary
Constructors Constructor Description PrivateIpAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
ipAddress()
Get the ipAddress property: Private IP address bound to the availability group listener.String
subnetResourceId()
Get the subnetResourceId property: Subnet used to include private IP.void
validate()
Validates the instance.PrivateIpAddress
withIpAddress(String ipAddress)
Set the ipAddress property: Private IP address bound to the availability group listener.PrivateIpAddress
withSubnetResourceId(String subnetResourceId)
Set the subnetResourceId property: Subnet used to include private IP.
-
-
-
Method Detail
-
ipAddress
public String ipAddress()
Get the ipAddress property: Private IP address bound to the availability group listener.- Returns:
- the ipAddress value.
-
withIpAddress
public PrivateIpAddress withIpAddress(String ipAddress)
Set the ipAddress property: Private IP address bound to the availability group listener.- Parameters:
ipAddress
- the ipAddress value to set.- Returns:
- the PrivateIpAddress object itself.
-
subnetResourceId
public String subnetResourceId()
Get the subnetResourceId property: Subnet used to include private IP.- Returns:
- the subnetResourceId value.
-
withSubnetResourceId
public PrivateIpAddress withSubnetResourceId(String subnetResourceId)
Set the subnetResourceId property: Subnet used to include private IP.- Parameters:
subnetResourceId
- the subnetResourceId value to set.- Returns:
- the PrivateIpAddress object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-