MongoDBCollectionGetPropertiesOptions Class

public final class MongoDBCollectionGetPropertiesOptions
extends OptionsResource

The MongoDBCollectionGetPropertiesOptions model.

Constructor Summary

Constructor Description
MongoDBCollectionGetPropertiesOptions()

Creates an instance of MongoDBCollectionGetPropertiesOptions class.

Method Summary

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

Reads an instance of MongoDBCollectionGetPropertiesOptions from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MongoDBCollectionGetPropertiesOptions withAutoscaleSettings(AutoscaleSettings autoscaleSettings)

Set the autoscaleSettings property: Specifies the Autoscale settings.

MongoDBCollectionGetPropertiesOptions 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

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:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MongoDBCollectionGetPropertiesOptions.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

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:

autoscaleSettings

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:

throughput

Applies to