LocationGetResultInner Class

public final class LocationGetResultInner
extends ArmProxyResource

Cosmos DB location get result.

Constructor Summary

Constructor Description
LocationGetResultInner()

Creates an instance of LocationGetResultInner class.

Method Summary

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

Reads an instance of LocationGetResultInner from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

LocationProperties properties()

Get the properties property: Cosmos DB location metadata.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

LocationGetResultInner withProperties(LocationProperties properties)

Set the properties property: Cosmos DB location metadata.

Methods inherited from ArmProxyResource

Methods inherited from java.lang.Object

Constructor Details

LocationGetResultInner

public LocationGetResultInner()

Creates an instance of LocationGetResultInner class.

Method Details

fromJson

public static LocationGetResultInner fromJson(JsonReader jsonReader)

Reads an instance of LocationGetResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LocationGetResultInner 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:

LocationGetResultInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

LocationGetResultInner.name()

Returns:

the name value.

properties

public LocationProperties properties()

Get the properties property: Cosmos DB location metadata.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

LocationGetResultInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

LocationGetResultInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

LocationGetResultInner.validate()

withProperties

public LocationGetResultInner withProperties(LocationProperties properties)

Set the properties property: Cosmos DB location metadata.

Parameters:

properties - the properties value to set.

Returns:

the LocationGetResultInner object itself.

Applies to