Class Network

java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.Network
All Implemented Interfaces:
com.azure.json.JsonSerializable<Network>

public final class Network extends Object implements com.azure.json.JsonSerializable<Network>
Network properties of a server.
  • Constructor Details

    • Network

      public Network()
      Creates an instance of Network class.
  • Method Details

    • publicNetworkAccess

      public ServerPublicNetworkAccessState 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

      public Network withPublicNetworkAccess(ServerPublicNetworkAccessState publicNetworkAccess)
      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

      public String 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

      public Network withDelegatedSubnetResourceId(String delegatedSubnetResourceId)
      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

      public String 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

      public Network withPrivateDnsZoneArmResourceId(String privateDnsZoneArmResourceId)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Network>
      Throws:
      IOException
    • fromJson

      public static Network fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.