MongoDbShardKeyField Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. models. MongoDbShardKeyField
- com.
Implements
public final class MongoDbShardKeyField
implements JsonSerializable<MongoDbShardKeyField>
Describes a field reference within a MongoDB shard key.
Constructor Summary
| Constructor | Description |
|---|---|
| MongoDbShardKeyField() |
Creates an instance of Mongo |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Mongo |
fromJson(JsonReader jsonReader)
Reads an instance of Mongo |
| String |
name()
Get the name property: The name of the field. |
|
Mongo |
order()
Get the order property: The field ordering. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Mongo |
withName(String name)
Set the name property: The name of the field. |
|
Mongo |
withOrder(MongoDbShardKeyOrder order)
Set the order property: The field ordering. |
Methods inherited from java.lang.Object
Constructor Details
MongoDbShardKeyField
public MongoDbShardKeyField()
Creates an instance of MongoDbShardKeyField class.
Method Details
fromJson
public static MongoDbShardKeyField fromJson(JsonReader jsonReader)
Reads an instance of MongoDbShardKeyField from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the field.
Returns:
order
public MongoDbShardKeyOrder order()
Get the order property: The field ordering.
Returns:
toJson
validate
public void validate()
Validates the instance.
withName
public MongoDbShardKeyField withName(String name)
Set the name property: The name of the field.
Parameters:
Returns:
withOrder
public MongoDbShardKeyField withOrder(MongoDbShardKeyOrder order)
Set the order property: The field ordering.
Parameters:
Returns: