MongoDBDatabaseGetPropertiesOptions Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. OptionsResource - com.
azure. resourcemanager. cosmos. models. MongoDBDatabaseGetPropertiesOptions
- com.
- com.
public final class MongoDBDatabaseGetPropertiesOptions
extends OptionsResource
The MongoDBDatabaseGetPropertiesOptions model.
Constructor Summary
Constructor | Description |
---|---|
MongoDBDatabaseGetPropertiesOptions() |
Creates an instance of Mongo |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Mongo |
fromJson(JsonReader jsonReader)
Reads an instance of Mongo |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Mongo |
withAutoscaleSettings(AutoscaleSettings autoscaleSettings)
Set the autoscale |
Mongo |
withThroughput(Integer throughput)
Set the throughput property: Value of the Cosmos DB resource throughput or autoscale |
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:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MongoDBDatabaseGetPropertiesOptions.toJson(JsonWriter jsonWriter)Parameters:
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:
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:
Applies to
Azure SDK for Java