Share via


SqlDatabaseResourceSettings Class

public final class SqlDatabaseResourceSettings
extends ResourceSettings

Defines the Sql Database resource settings.

Constructor Summary

Constructor Description
SqlDatabaseResourceSettings()

Creates an instance of SqlDatabaseResourceSettings class.

Method Summary

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

Reads an instance of SqlDatabaseResourceSettings from the JsonReader.

String resourceType()

Get the resourceType property: The resource type.

Map<String,String> tags()

Get the tags property: Gets or sets the Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlDatabaseResourceSettings withTags(Map<String,String> tags)

Set the tags property: Gets or sets the Resource tags.

SqlDatabaseResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

Set the targetResourceGroupName property: Gets or sets the target resource group name.

SqlDatabaseResourceSettings withTargetResourceName(String targetResourceName)

Set the targetResourceName property: Gets or sets the target Resource name.

SqlDatabaseResourceSettings withZoneRedundant(ZoneRedundant zoneRedundant)

Set the zoneRedundant property: Defines the zone redundant resource setting.

ZoneRedundant zoneRedundant()

Get the zoneRedundant property: Defines the zone redundant resource setting.

Methods inherited from ResourceSettings

Methods inherited from java.lang.Object

Constructor Details

SqlDatabaseResourceSettings

public SqlDatabaseResourceSettings()

Creates an instance of SqlDatabaseResourceSettings class.

Method Details

fromJson

public static SqlDatabaseResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of SqlDatabaseResourceSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resourceType

public String resourceType()

Get the resourceType property: The resource type. For example, the value can be Microsoft.Compute/virtualMachines.

Overrides:

SqlDatabaseResourceSettings.resourceType()

Returns:

the resourceType value.

tags

public Map<String,String> tags()

Get the tags property: Gets or sets the Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SqlDatabaseResourceSettings.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

SqlDatabaseResourceSettings.validate()

withTags

public SqlDatabaseResourceSettings withTags(Map<String,String> tags)

Set the tags property: Gets or sets the Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the SqlDatabaseResourceSettings object itself.

withTargetResourceGroupName

public SqlDatabaseResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

Set the targetResourceGroupName property: Gets or sets the target resource group name.

Overrides:

SqlDatabaseResourceSettings.withTargetResourceGroupName(String targetResourceGroupName)

Parameters:

targetResourceGroupName

withTargetResourceName

public SqlDatabaseResourceSettings withTargetResourceName(String targetResourceName)

Set the targetResourceName property: Gets or sets the target Resource name.

Overrides:

SqlDatabaseResourceSettings.withTargetResourceName(String targetResourceName)

Parameters:

targetResourceName

withZoneRedundant

public SqlDatabaseResourceSettings withZoneRedundant(ZoneRedundant zoneRedundant)

Set the zoneRedundant property: Defines the zone redundant resource setting.

Parameters:

zoneRedundant - the zoneRedundant value to set.

Returns:

the SqlDatabaseResourceSettings object itself.

zoneRedundant

public ZoneRedundant zoneRedundant()

Get the zoneRedundant property: Defines the zone redundant resource setting.

Returns:

the zoneRedundant value.

Applies to