SqlDatabaseGetProperties Class

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

Implements

public final class SqlDatabaseGetProperties
implements JsonSerializable<SqlDatabaseGetProperties>

The properties of an Azure Cosmos DB SQL database.

Constructor Summary

Constructor Description
SqlDatabaseGetProperties()

Creates an instance of SqlDatabaseGetProperties class.

Method Summary

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

Reads an instance of SqlDatabaseGetProperties from the JsonReader.

SqlDatabaseGetPropertiesOptions options()

Get the options property: The options property.

SqlDatabaseGetPropertiesResource resource()

Get the resource property: The resource property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlDatabaseGetProperties withOptions(SqlDatabaseGetPropertiesOptions options)

Set the options property: The options property.

SqlDatabaseGetProperties withResource(SqlDatabaseGetPropertiesResource resource)

Set the resource property: The resource property.

Methods inherited from java.lang.Object

Constructor Details

SqlDatabaseGetProperties

public SqlDatabaseGetProperties()

Creates an instance of SqlDatabaseGetProperties class.

Method Details

fromJson

public static SqlDatabaseGetProperties fromJson(JsonReader jsonReader)

Reads an instance of SqlDatabaseGetProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

options

public SqlDatabaseGetPropertiesOptions options()

Get the options property: The options property.

Returns:

the options value.

resource

public SqlDatabaseGetPropertiesResource 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 SqlDatabaseGetProperties withOptions(SqlDatabaseGetPropertiesOptions options)

Set the options property: The options property.

Parameters:

options - the options value to set.

Returns:

the SqlDatabaseGetProperties object itself.

withResource

public SqlDatabaseGetProperties withResource(SqlDatabaseGetPropertiesResource resource)

Set the resource property: The resource property.

Parameters:

resource - the resource value to set.

Returns:

the SqlDatabaseGetProperties object itself.

Applies to