TableResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. TableResource
- com.
Implements
public class TableResource
implements JsonSerializable<TableResource>
Cosmos DB table resource object.
Constructor Summary
Constructor | Description |
---|---|
TableResource() |
Creates an instance of Table |
Method Summary
Modifier and Type | Method and Description |
---|---|
Create |
createMode()
Get the create |
static
Table |
fromJson(JsonReader jsonReader)
Reads an instance of Table |
String |
id()
Get the id property: Name of the Cosmos DB table. |
Resource |
restoreParameters()
Get the restore |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Table |
withCreateMode(CreateMode createMode)
Set the create |
Table |
withId(String id)
Set the id property: Name of the Cosmos DB table. |
Table |
withRestoreParameters(ResourceRestoreParameters restoreParameters)
Set the restore |
Methods inherited from java.lang.Object
Constructor Details
TableResource
public TableResource()
Creates an instance of TableResource class.
Method Details
createMode
public CreateMode createMode()
Get the createMode property: Enum to indicate the mode of resource creation.
Returns:
fromJson
public static TableResource fromJson(JsonReader jsonReader)
Reads an instance of TableResource from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Name of the Cosmos DB table.
Returns:
restoreParameters
public ResourceRestoreParameters restoreParameters()
Get the restoreParameters property: Parameters to indicate the information about the restore.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCreateMode
public TableResource withCreateMode(CreateMode createMode)
Set the createMode property: Enum to indicate the mode of resource creation.
Parameters:
Returns:
withId
public TableResource withId(String id)
Set the id property: Name of the Cosmos DB table.
Parameters:
Returns:
withRestoreParameters
public TableResource withRestoreParameters(ResourceRestoreParameters restoreParameters)
Set the restoreParameters property: Parameters to indicate the information about the restore.
Parameters:
Returns:
Applies to
Azure SDK for Java