RestorableSqlContainerProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.RestorableSqlContainerProperties

Implements

public final class RestorableSqlContainerProperties
implements JsonSerializable<RestorableSqlContainerProperties>

The properties of an Azure Cosmos DB SQL container event.

Constructor Summary

Constructor Description
RestorableSqlContainerProperties()

Creates an instance of RestorableSqlContainerProperties class.

Method Summary

Modifier and Type Method and Description
static RestorableSqlContainerProperties fromJson(JsonReader jsonReader)

Reads an instance of RestorableSqlContainerProperties from the JsonReader.

RestorableSqlContainerPropertiesResource resource()

Get the resource property: The resource of an Azure Cosmos DB SQL container event.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RestorableSqlContainerProperties withResource(RestorableSqlContainerPropertiesResource resource)

Set the resource property: The resource of an Azure Cosmos DB SQL container event.

Methods inherited from java.lang.Object

Constructor Details

RestorableSqlContainerProperties

public RestorableSqlContainerProperties()

Creates an instance of RestorableSqlContainerProperties class.

Method Details

fromJson

public static RestorableSqlContainerProperties fromJson(JsonReader jsonReader)

Reads an instance of RestorableSqlContainerProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the RestorableSqlContainerProperties.

resource

public RestorableSqlContainerPropertiesResource resource()

Get the resource property: The resource of an Azure Cosmos DB SQL container event.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResource

public RestorableSqlContainerProperties withResource(RestorableSqlContainerPropertiesResource resource)

Set the resource property: The resource of an Azure Cosmos DB SQL container event.

Parameters:

resource - the resource value to set.

Returns:

the RestorableSqlContainerProperties object itself.

Applies to