Class MongoDBDatabaseResource
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.MongoDBDatabaseResource
-
- Direct Known Subclasses:
MongoDBDatabaseGetPropertiesResource
public class MongoDBDatabaseResource extends Object
Cosmos DB MongoDB database resource object.
-
-
Constructor Summary
Constructors Constructor Description MongoDBDatabaseResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringid()Get the id property: Name of the Cosmos DB MongoDB database.voidvalidate()Validates the instance.MongoDBDatabaseResourcewithId(String id)Set the id property: Name of the Cosmos DB MongoDB database.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Name of the Cosmos DB MongoDB database.- Returns:
- the id value.
-
withId
public MongoDBDatabaseResource withId(String id)
Set the id property: Name of the Cosmos DB MongoDB database.- Parameters:
id- the id value to set.- Returns:
- the MongoDBDatabaseResource object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-