SqlContainerGetProperties Class

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

Implements

public final class SqlContainerGetProperties
implements JsonSerializable<SqlContainerGetProperties>

The properties of an Azure Cosmos DB container.

Constructor Summary

Constructor Description
SqlContainerGetProperties()

Creates an instance of SqlContainerGetProperties class.

Method Summary

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

Reads an instance of SqlContainerGetProperties from the JsonReader.

SqlContainerGetPropertiesOptions options()

Get the options property: The options property.

SqlContainerGetPropertiesResource resource()

Get the resource property: The resource property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlContainerGetProperties withOptions(SqlContainerGetPropertiesOptions options)

Set the options property: The options property.

SqlContainerGetProperties withResource(SqlContainerGetPropertiesResource resource)

Set the resource property: The resource property.

Methods inherited from java.lang.Object

Constructor Details

SqlContainerGetProperties

public SqlContainerGetProperties()

Creates an instance of SqlContainerGetProperties class.

Method Details

fromJson

public static SqlContainerGetProperties fromJson(JsonReader jsonReader)

Reads an instance of SqlContainerGetProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlContainerGetProperties 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 SqlContainerGetProperties.

options

public SqlContainerGetPropertiesOptions options()

Get the options property: The options property.

Returns:

the options value.

resource

public SqlContainerGetPropertiesResource resource()

Get the resource property: The resource property.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withOptions

public SqlContainerGetProperties withOptions(SqlContainerGetPropertiesOptions options)

Set the options property: The options property.

Parameters:

options - the options value to set.

Returns:

the SqlContainerGetProperties object itself.

withResource

public SqlContainerGetProperties withResource(SqlContainerGetPropertiesResource resource)

Set the resource property: The resource property.

Parameters:

resource - the resource value to set.

Returns:

the SqlContainerGetProperties object itself.

Applies to