Freigeben über


RestorableGremlinDatabaseGetResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.RestorableGremlinDatabaseGetResultInner

Implements

public final class RestorableGremlinDatabaseGetResultInner
implements JsonSerializable<RestorableGremlinDatabaseGetResultInner>

An Azure Cosmos DB Gremlin database event.

Constructor Summary

Constructor Description
RestorableGremlinDatabaseGetResultInner()

Creates an instance of RestorableGremlinDatabaseGetResultInner class.

Method Summary

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

Reads an instance of RestorableGremlinDatabaseGetResultInner from the JsonReader.

String id()

Get the id property: The unique resource Identifier of the ARM resource.

String name()

Get the name property: The name of the ARM resource.

RestorableGremlinDatabasePropertiesResource resource()

Get the resource property: The resource of an Azure Cosmos DB Gremlin database event.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of Azure resource.

void validate()

Validates the instance.

RestorableGremlinDatabaseGetResultInner withResource(RestorableGremlinDatabasePropertiesResource resource)

Set the resource property: The resource of an Azure Cosmos DB Gremlin database event.

Methods inherited from java.lang.Object

Constructor Details

RestorableGremlinDatabaseGetResultInner

public RestorableGremlinDatabaseGetResultInner()

Creates an instance of RestorableGremlinDatabaseGetResultInner class.

Method Details

fromJson

public static RestorableGremlinDatabaseGetResultInner fromJson(JsonReader jsonReader)

Reads an instance of RestorableGremlinDatabaseGetResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The unique resource Identifier of the ARM resource.

Returns:

the id value.

name

public String name()

Get the name property: The name of the ARM resource.

Returns:

the name value.

resource

public RestorableGremlinDatabasePropertiesResource resource()

Get the resource property: The resource of an Azure Cosmos DB Gremlin database event.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of Azure resource.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withResource

public RestorableGremlinDatabaseGetResultInner withResource(RestorableGremlinDatabasePropertiesResource resource)

Set the resource property: The resource of an Azure Cosmos DB Gremlin database event.

Parameters:

resource - the resource value to set.

Returns:

the RestorableGremlinDatabaseGetResultInner object itself.

Applies to