MongoDBDatabaseGetProperties Class

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

Implements

public final class MongoDBDatabaseGetProperties
implements JsonSerializable<MongoDBDatabaseGetProperties>

The properties of an Azure Cosmos DB MongoDB database.

Constructor Summary

Constructor Description
MongoDBDatabaseGetProperties()

Creates an instance of MongoDBDatabaseGetProperties class.

Method Summary

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

Reads an instance of MongoDBDatabaseGetProperties from the JsonReader.

MongoDBDatabaseGetPropertiesOptions options()

Get the options property: The options property.

MongoDBDatabaseGetPropertiesResource resource()

Get the resource property: The resource property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MongoDBDatabaseGetProperties withOptions(MongoDBDatabaseGetPropertiesOptions options)

Set the options property: The options property.

MongoDBDatabaseGetProperties withResource(MongoDBDatabaseGetPropertiesResource resource)

Set the resource property: The resource property.

Methods inherited from java.lang.Object

Constructor Details

MongoDBDatabaseGetProperties

public MongoDBDatabaseGetProperties()

Creates an instance of MongoDBDatabaseGetProperties class.

Method Details

fromJson

public static MongoDBDatabaseGetProperties fromJson(JsonReader jsonReader)

Reads an instance of MongoDBDatabaseGetProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

options

public MongoDBDatabaseGetPropertiesOptions options()

Get the options property: The options property.

Returns:

the options value.

resource

public MongoDBDatabaseGetPropertiesResource resource()

Get the resource property: The resource property.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withOptions

public MongoDBDatabaseGetProperties withOptions(MongoDBDatabaseGetPropertiesOptions options)

Set the options property: The options property.

Parameters:

options - the options value to set.

Returns:

the MongoDBDatabaseGetProperties object itself.

withResource

public MongoDBDatabaseGetProperties withResource(MongoDBDatabaseGetPropertiesResource resource)

Set the resource property: The resource property.

Parameters:

resource - the resource value to set.

Returns:

the MongoDBDatabaseGetProperties object itself.

Applies to