Class ServerConnectionPolicyProperties

java.lang.Object
com.azure.resourcemanager.sql.fluent.models.ServerConnectionPolicyProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ServerConnectionPolicyProperties>

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

    • ServerConnectionPolicyProperties

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

    • connectionType

      public ServerConnectionType connectionType()
      Get the connectionType property: The server connection type.
      Returns:
      the connectionType value.
    • withConnectionType

      public ServerConnectionPolicyProperties withConnectionType(ServerConnectionType connectionType)
      Set the connectionType property: The server connection type.
      Parameters:
      connectionType - the connectionType value to set.
      Returns:
      the ServerConnectionPolicyProperties 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<ServerConnectionPolicyProperties>
      Throws:
      IOException
    • fromJson

      public static ServerConnectionPolicyProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ServerConnectionPolicyProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ServerConnectionPolicyProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ServerConnectionPolicyProperties.