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