Class Network
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.Network
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Network>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the delegatedSubnetResourceId property: Resource identifier of the delegated subnet.static NetworkfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Network from the JsonReader.Get the privateDnsZoneArmResourceId property: Identifier of the private DNS zone.Get the publicNetworkAccess property: Indicates if public network access is enabled or not.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDelegatedSubnetResourceId(String delegatedSubnetResourceId) Set the delegatedSubnetResourceId property: Resource identifier of the delegated subnet.withPrivateDnsZoneArmResourceId(String privateDnsZoneArmResourceId) Set the privateDnsZoneArmResourceId property: Identifier of the private DNS zone.withPublicNetworkAccess(ServerPublicNetworkAccessState publicNetworkAccess) Set the publicNetworkAccess property: Indicates if public network access is enabled or not.Methods inherited from class 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
-
Network
public Network()Creates an instance of Network class.
-
-
Method Details
-
publicNetworkAccess
Get the publicNetworkAccess property: Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.- Returns:
- the publicNetworkAccess value.
-
withPublicNetworkAccess
Set the publicNetworkAccess property: Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.- Parameters:
publicNetworkAccess- the publicNetworkAccess value to set.- Returns:
- the Network object itself.
-
delegatedSubnetResourceId
Get the delegatedSubnetResourceId property: Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.- Returns:
- the delegatedSubnetResourceId value.
-
withDelegatedSubnetResourceId
Set the delegatedSubnetResourceId property: Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.- Parameters:
delegatedSubnetResourceId- the delegatedSubnetResourceId value to set.- Returns:
- the Network object itself.
-
privateDnsZoneArmResourceId
Get the privateDnsZoneArmResourceId property: Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.- Returns:
- the privateDnsZoneArmResourceId value.
-
withPrivateDnsZoneArmResourceId
Set the privateDnsZoneArmResourceId property: Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.- Parameters:
privateDnsZoneArmResourceId- the privateDnsZoneArmResourceId value to set.- Returns:
- the Network 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<Network>- Throws:
IOException
-
fromJson
Reads an instance of Network from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Network 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 Network.
-