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 Summary
ConstructorsConstructorDescriptionCreates an instance of ServerConnectionPolicyProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionType property: The server connection type.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServerConnectionPolicyProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withConnectionType(ServerConnectionType connectionType) Set the connectionType property: The server connection type.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
-
ServerConnectionPolicyProperties
public ServerConnectionPolicyProperties()Creates an instance of ServerConnectionPolicyProperties class.
-
-
Method Details
-
connectionType
Get the connectionType property: The server connection type.- Returns:
- the connectionType value.
-
withConnectionType
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
- Specified by:
toJsonin interfacecom.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.
-