ServerConnectionPolicyInner Class

public final class ServerConnectionPolicyInner
extends ProxyResource

A server connection policy.

Constructor Summary

Constructor Description
ServerConnectionPolicyInner()

Creates an instance of ServerConnectionPolicyInner class.

Method Summary

Modifier and Type Method and Description
ServerConnectionType connectionType()

Get the connectionType property: The server connection type.

static ServerConnectionPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of ServerConnectionPolicyInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String kind()

Get the kind property: Metadata used for the Azure portal experience.

String location()

Get the location property: Resource location.

String name()

Get the name property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ServerConnectionPolicyInner withConnectionType(ServerConnectionType connectionType)

Set the connectionType property: The server connection type.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ServerConnectionPolicyInner

public ServerConnectionPolicyInner()

Creates an instance of ServerConnectionPolicyInner class.

Method Details

connectionType

public ServerConnectionType connectionType()

Get the connectionType property: The server connection type.

Returns:

the connectionType value.

fromJson

public static ServerConnectionPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of ServerConnectionPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServerConnectionPolicyInner 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.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ServerConnectionPolicyInner.id()

Returns:

the id value.

kind

public String kind()

Get the kind property: Metadata used for the Azure portal experience.

Returns:

the kind value.

location

public String location()

Get the location property: Resource location.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ServerConnectionPolicyInner.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ServerConnectionPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ServerConnectionPolicyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withConnectionType

public ServerConnectionPolicyInner withConnectionType(ServerConnectionType connectionType)

Set the connectionType property: The server connection type.

Parameters:

connectionType - the connectionType value to set.

Returns:

the ServerConnectionPolicyInner object itself.

Applies to