Class Network
- java.lang.Object
-
- com.azure.resourcemanager.mysqlflexibleserver.models.Network
-
public final class Network extends Object
Network related properties of a server.
-
-
Constructor Summary
Constructors Constructor Description Network()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
delegatedSubnetResourceId()
Get the delegatedSubnetResourceId property: Delegated subnet resource id used to setup vnet for a server.String
privateDnsZoneResourceId()
Get the privateDnsZoneResourceId property: Private DNS zone resource id.EnableStatusEnum
publicNetworkAccess()
Get the publicNetworkAccess property: Whether or not public network access is allowed for this server.void
validate()
Validates the instance.Network
withDelegatedSubnetResourceId(String delegatedSubnetResourceId)
Set the delegatedSubnetResourceId property: Delegated subnet resource id used to setup vnet for a server.Network
withPrivateDnsZoneResourceId(String privateDnsZoneResourceId)
Set the privateDnsZoneResourceId property: Private DNS zone resource id.
-
-
-
Method Detail
-
publicNetworkAccess
public EnableStatusEnum publicNetworkAccess()
Get the publicNetworkAccess property: Whether or not public network access is allowed for this server. Value is 'Disabled' when server has VNet integration.- Returns:
- the publicNetworkAccess value.
-
delegatedSubnetResourceId
public String delegatedSubnetResourceId()
Get the delegatedSubnetResourceId property: Delegated subnet resource id used to setup vnet for a server.- Returns:
- the delegatedSubnetResourceId value.
-
withDelegatedSubnetResourceId
public Network withDelegatedSubnetResourceId(String delegatedSubnetResourceId)
Set the delegatedSubnetResourceId property: Delegated subnet resource id used to setup vnet for a server.- Parameters:
delegatedSubnetResourceId
- the delegatedSubnetResourceId value to set.- Returns:
- the Network object itself.
-
privateDnsZoneResourceId
public String privateDnsZoneResourceId()
Get the privateDnsZoneResourceId property: Private DNS zone resource id.- Returns:
- the privateDnsZoneResourceId value.
-
withPrivateDnsZoneResourceId
public Network withPrivateDnsZoneResourceId(String privateDnsZoneResourceId)
Set the privateDnsZoneResourceId property: Private DNS zone resource id.- Parameters:
privateDnsZoneResourceId
- the privateDnsZoneResourceId value to set.- Returns:
- the Network object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-