MongoDBCollectionGetResultsInner Class

public final class MongoDBCollectionGetResultsInner
extends ArmResourceProperties

An Azure Cosmos DB MongoDB collection.

Constructor Summary

Constructor Description
MongoDBCollectionGetResultsInner()

Creates an instance of MongoDBCollectionGetResultsInner class.

Method Summary

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

Reads an instance of MongoDBCollectionGetResultsInner 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.

MongoDBCollectionGetPropertiesOptions options()

Get the options property: The options property.

MongoDBCollectionGetPropertiesResource resource()

Get the resource property: The resource property.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

MongoDBCollectionGetResultsInner withLocation(String location)
MongoDBCollectionGetResultsInner withOptions(MongoDBCollectionGetPropertiesOptions options)

Set the options property: The options property.

MongoDBCollectionGetResultsInner withResource(MongoDBCollectionGetPropertiesResource resource)

Set the resource property: The resource property.

MongoDBCollectionGetResultsInner withTags(Map<String,String> tags)

Methods inherited from Resource

Methods inherited from ArmResourceProperties

Methods inherited from java.lang.Object

Constructor Details

MongoDBCollectionGetResultsInner

public MongoDBCollectionGetResultsInner()

Creates an instance of MongoDBCollectionGetResultsInner class.

Method Details

fromJson

public static MongoDBCollectionGetResultsInner fromJson(JsonReader jsonReader)

Reads an instance of MongoDBCollectionGetResultsInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

MongoDBCollectionGetResultsInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

MongoDBCollectionGetResultsInner.name()

Returns:

the name value.

options

public MongoDBCollectionGetPropertiesOptions options()

Get the options property: The options property.

Returns:

the options value.

resource

public MongoDBCollectionGetPropertiesResource resource()

Get the resource property: The resource property.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MongoDBCollectionGetResultsInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

MongoDBCollectionGetResultsInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

MongoDBCollectionGetResultsInner.validate()

withLocation

public MongoDBCollectionGetResultsInner withLocation(String location)

Overrides:

MongoDBCollectionGetResultsInner.withLocation(String location)

Parameters:

location

withOptions

public MongoDBCollectionGetResultsInner withOptions(MongoDBCollectionGetPropertiesOptions options)

Set the options property: The options property.

Parameters:

options - the options value to set.

Returns:

the MongoDBCollectionGetResultsInner object itself.

withResource

public MongoDBCollectionGetResultsInner withResource(MongoDBCollectionGetPropertiesResource resource)

Set the resource property: The resource property.

Parameters:

resource - the resource value to set.

Returns:

the MongoDBCollectionGetResultsInner object itself.

withTags

public MongoDBCollectionGetResultsInner withTags(Map tags)

Overrides:

MongoDBCollectionGetResultsInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to