TableResource Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.TableResource

Implements

public class TableResource
implements JsonSerializable<TableResource>

Cosmos DB table resource object.

Constructor Summary

Constructor Description
TableResource()

Creates an instance of TableResource class.

Method Summary

Modifier and Type Method and Description
CreateMode createMode()

Get the createMode property: Enum to indicate the mode of resource creation.

static TableResource fromJson(JsonReader jsonReader)

Reads an instance of TableResource from the JsonReader.

String id()

Get the id property: Name of the Cosmos DB table.

ResourceRestoreParameters restoreParameters()

Get the restoreParameters property: Parameters to indicate the information about the restore.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TableResource withCreateMode(CreateMode createMode)

Set the createMode property: Enum to indicate the mode of resource creation.

TableResource withId(String id)

Set the id property: Name of the Cosmos DB table.

TableResource withRestoreParameters(ResourceRestoreParameters restoreParameters)

Set the restoreParameters property: Parameters to indicate the information about 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:

the createMode value.

fromJson

public static TableResource fromJson(JsonReader jsonReader)

Reads an instance of TableResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TableResource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Name of the Cosmos DB table.

Returns:

the id value.

restoreParameters

public ResourceRestoreParameters restoreParameters()

Get the restoreParameters property: Parameters to indicate the information about the restore.

Returns:

the restoreParameters value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

createMode - the createMode value to set.

Returns:

the TableResource object itself.

withId

public TableResource withId(String id)

Set the id property: Name of the Cosmos DB table.

Parameters:

id - the id value to set.

Returns:

the TableResource object itself.

withRestoreParameters

public TableResource withRestoreParameters(ResourceRestoreParameters restoreParameters)

Set the restoreParameters property: Parameters to indicate the information about the restore.

Parameters:

restoreParameters - the restoreParameters value to set.

Returns:

the TableResource object itself.

Applies to