SqlDatabaseCreateUpdateParameters Class

public final class SqlDatabaseCreateUpdateParameters
extends ArmResourceProperties

Parameters to create and update Cosmos DB SQL database.

Constructor Summary

Constructor Description
SqlDatabaseCreateUpdateParameters()

Creates an instance of SqlDatabaseCreateUpdateParameters class.

Method Summary

Modifier and Type Method and Description
CreateUpdateOptions options()

Get the options property: A key-value pair of options to be applied for the request.

SqlDatabaseResource resource()

Get the resource property: The standard JSON format of a SQL database.

void validate()

Validates the instance.

SqlDatabaseCreateUpdateParameters withLocation(String location)
SqlDatabaseCreateUpdateParameters withOptions(CreateUpdateOptions options)

Set the options property: A key-value pair of options to be applied for the request.

SqlDatabaseCreateUpdateParameters withResource(SqlDatabaseResource resource)

Set the resource property: The standard JSON format of a SQL database.

SqlDatabaseCreateUpdateParameters withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from ArmResourceProperties

Methods inherited from java.lang.Object

Constructor Details

SqlDatabaseCreateUpdateParameters

public SqlDatabaseCreateUpdateParameters()

Creates an instance of SqlDatabaseCreateUpdateParameters class.

Method Details

options

public CreateUpdateOptions options()

Get the options property: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

Returns:

the options value.

resource

public SqlDatabaseResource resource()

Get the resource property: The standard JSON format of a SQL database.

Returns:

the resource value.

validate

public void validate()

Validates the instance.

Overrides:

SqlDatabaseCreateUpdateParameters.validate()

withLocation

public SqlDatabaseCreateUpdateParameters withLocation(String location)

Overrides:

SqlDatabaseCreateUpdateParameters.withLocation(String location)

Parameters:

location

withOptions

public SqlDatabaseCreateUpdateParameters withOptions(CreateUpdateOptions options)

Set the options property: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

Parameters:

options - the options value to set.

Returns:

the SqlDatabaseCreateUpdateParameters object itself.

withResource

public SqlDatabaseCreateUpdateParameters withResource(SqlDatabaseResource resource)

Set the resource property: The standard JSON format of a SQL database.

Parameters:

resource - the resource value to set.

Returns:

the SqlDatabaseCreateUpdateParameters object itself.

withTags

public SqlDatabaseCreateUpdateParameters withTags(Map tags)

Overrides:

SqlDatabaseCreateUpdateParameters.withTags(Map<String,String> tags)

Parameters:

tags

Applies to