MongoDBCollectionGetPropertiesOptions Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. OptionsResource - com.
azure. resourcemanager. cosmos. models. MongoDBCollectionGetPropertiesOptions
- com.
- com.
public final class MongoDBCollectionGetPropertiesOptions
extends OptionsResource
The MongoDBCollectionGetPropertiesOptions model.
Constructor Summary
Constructor | Description |
---|---|
MongoDBCollectionGetPropertiesOptions() |
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
MongoDBCollectionGetPropertiesOptions
public MongoDBCollectionGetPropertiesOptions()
Creates an instance of MongoDBCollectionGetPropertiesOptions class.
Method Details
fromJson
public static MongoDBCollectionGetPropertiesOptions fromJson(JsonReader jsonReader)
Reads an instance of MongoDBCollectionGetPropertiesOptions from the JsonReader.
Parameters:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MongoDBCollectionGetPropertiesOptions.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
MongoDBCollectionGetPropertiesOptions.validate()withAutoscaleSettings
public MongoDBCollectionGetPropertiesOptions withAutoscaleSettings(AutoscaleSettings autoscaleSettings)
Set the autoscaleSettings property: Specifies the Autoscale settings.
Overrides:
MongoDBCollectionGetPropertiesOptions.withAutoscaleSettings(AutoscaleSettings autoscaleSettings)Parameters:
withThroughput
public MongoDBCollectionGetPropertiesOptions 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:
MongoDBCollectionGetPropertiesOptions.withThroughput(Integer throughput)Parameters:
Applies to
Azure SDK for Java