Compartilhar via


MongoDBDatabaseGetPropertiesOptions Class

public final class MongoDBDatabaseGetPropertiesOptions
extends OptionsResource

The MongoDBDatabaseGetPropertiesOptions model.

Constructor Summary

Constructor Description
MongoDBDatabaseGetPropertiesOptions()

Creates an instance of MongoDBDatabaseGetPropertiesOptions class.

Method Summary

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

Reads an instance of MongoDBDatabaseGetPropertiesOptions from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MongoDBDatabaseGetPropertiesOptions withAutoscaleSettings(AutoscaleSettings autoscaleSettings)

Set the autoscaleSettings property: Specifies the Autoscale settings.

MongoDBDatabaseGetPropertiesOptions withThroughput(Integer throughput)

Set the throughput property: Value of the Cosmos DB resource throughput or autoscaleSettings.

Methods inherited from OptionsResource

Methods inherited from java.lang.Object

Constructor Details

MongoDBDatabaseGetPropertiesOptions

public MongoDBDatabaseGetPropertiesOptions()

Creates an instance of MongoDBDatabaseGetPropertiesOptions class.

Method Details

fromJson

public static MongoDBDatabaseGetPropertiesOptions fromJson(JsonReader jsonReader)

Reads an instance of MongoDBDatabaseGetPropertiesOptions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MongoDBDatabaseGetPropertiesOptions.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MongoDBDatabaseGetPropertiesOptions.validate()

withAutoscaleSettings

public MongoDBDatabaseGetPropertiesOptions withAutoscaleSettings(AutoscaleSettings autoscaleSettings)

Set the autoscaleSettings property: Specifies the Autoscale settings.

Overrides:

MongoDBDatabaseGetPropertiesOptions.withAutoscaleSettings(AutoscaleSettings autoscaleSettings)

Parameters:

autoscaleSettings

withThroughput

public MongoDBDatabaseGetPropertiesOptions withThroughput(Integer throughput)

Set the throughput property: Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.

Overrides:

MongoDBDatabaseGetPropertiesOptions.withThroughput(Integer throughput)

Parameters:

throughput

Applies to