ConnectionSharedKeyResultInner Class

public final class ConnectionSharedKeyResultInner
extends SubResource

SharedKey Resource .

Constructor Summary

Constructor Description
ConnectionSharedKeyResultInner()

Creates an instance of ConnectionSharedKeyResultInner class.

Method Summary

Modifier and Type Method and Description
static ConnectionSharedKeyResultInner fromJson(JsonReader jsonReader)

Reads an instance of ConnectionSharedKeyResultInner from the JsonReader.

String name()

Get the name property: The name of the resource that is unique within a resource group.

SharedKeyProperties properties()

Get the properties property: Properties of the shared key.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

ConnectionSharedKeyResultInner withId(String id)
ConnectionSharedKeyResultInner withName(String name)

Set the name property: The name of the resource that is unique within a resource group.

ConnectionSharedKeyResultInner withProperties(SharedKeyProperties properties)

Set the properties property: Properties of the shared key.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

ConnectionSharedKeyResultInner

public ConnectionSharedKeyResultInner()

Creates an instance of ConnectionSharedKeyResultInner class.

Method Details

fromJson

public static ConnectionSharedKeyResultInner fromJson(JsonReader jsonReader)

Reads an instance of ConnectionSharedKeyResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.

Returns:

the name value.

properties

public SharedKeyProperties properties()

Get the properties property: Properties of the shared key.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ConnectionSharedKeyResultInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public ConnectionSharedKeyResultInner withId(String id)

Overrides:

ConnectionSharedKeyResultInner.withId(String id)

Parameters:

id

withName

public ConnectionSharedKeyResultInner withName(String name)

Set the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.

Parameters:

name - the name value to set.

Returns:

the ConnectionSharedKeyResultInner object itself.

withProperties

public ConnectionSharedKeyResultInner withProperties(SharedKeyProperties properties)

Set the properties property: Properties of the shared key.

Parameters:

properties - the properties value to set.

Returns:

the ConnectionSharedKeyResultInner object itself.

Applies to