Del via


ServerConnectionPolicyProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.ServerConnectionPolicyProperties

Implements

public final class ServerConnectionPolicyProperties
implements JsonSerializable<ServerConnectionPolicyProperties>

The properties of a server connection policy.

Constructor Summary

Constructor Description
ServerConnectionPolicyProperties()

Creates an instance of ServerConnectionPolicyProperties class.

Method Summary

Modifier and Type Method and Description
ServerConnectionType connectionType()

Get the connectionType property: The server connection type.

static ServerConnectionPolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of ServerConnectionPolicyProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServerConnectionPolicyProperties withConnectionType(ServerConnectionType connectionType)

Set the connectionType property: The server connection type.

Methods inherited from java.lang.Object

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.

fromJson

public static ServerConnectionPolicyProperties fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

Applies to