com.microsoft.azure.management.cosmosdb.MongoDBCollectionResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-cosmosdb Show documentation
Show all versions of azure-mgmt-cosmosdb Show documentation
This package contains Microsoft Azure CosmosDB SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.cosmosdb;
import java.util.Map;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Cosmos DB MongoDB collection resource object.
*/
public class MongoDBCollectionResource {
/**
* Name of the Cosmos DB MongoDB collection.
*/
@JsonProperty(value = "id", required = true)
private String id;
/**
* A key-value pair of shard keys to be applied for the request.
*/
@JsonProperty(value = "shardKey")
private Map shardKey;
/**
* List of index keys.
*/
@JsonProperty(value = "indexes")
private List indexes;
/**
* Get name of the Cosmos DB MongoDB collection.
*
* @return the id value
*/
public String id() {
return this.id;
}
/**
* Set name of the Cosmos DB MongoDB collection.
*
* @param id the id value to set
* @return the MongoDBCollectionResource object itself.
*/
public MongoDBCollectionResource withId(String id) {
this.id = id;
return this;
}
/**
* Get a key-value pair of shard keys to be applied for the request.
*
* @return the shardKey value
*/
public Map shardKey() {
return this.shardKey;
}
/**
* Set a key-value pair of shard keys to be applied for the request.
*
* @param shardKey the shardKey value to set
* @return the MongoDBCollectionResource object itself.
*/
public MongoDBCollectionResource withShardKey(Map shardKey) {
this.shardKey = shardKey;
return this;
}
/**
* Get list of index keys.
*
* @return the indexes value
*/
public List indexes() {
return this.indexes;
}
/**
* Set list of index keys.
*
* @param indexes the indexes value to set
* @return the MongoDBCollectionResource object itself.
*/
public MongoDBCollectionResource withIndexes(List indexes) {
this.indexes = indexes;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy