Share via


SqlServerResourceSettings Class

public final class SqlServerResourceSettings
extends ResourceSettings

Defines the SQL Server resource settings.

Constructor Summary

Constructor Description
SqlServerResourceSettings()

Creates an instance of SqlServerResourceSettings class.

Method Summary

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

Reads an instance of SqlServerResourceSettings from the JsonReader.

String resourceType()

Get the resourceType property: The resource type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlServerResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

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

SqlServerResourceSettings withTargetResourceName(String targetResourceName)

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

Methods inherited from ResourceSettings

Methods inherited from java.lang.Object

Constructor Details

SqlServerResourceSettings

public SqlServerResourceSettings()

Creates an instance of SqlServerResourceSettings class.

Method Details

fromJson

public static SqlServerResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of SqlServerResourceSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resourceType

public String resourceType()

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

Overrides:

SqlServerResourceSettings.resourceType()

Returns:

the resourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SqlServerResourceSettings.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

SqlServerResourceSettings.validate()

withTargetResourceGroupName

public SqlServerResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

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

Overrides:

SqlServerResourceSettings.withTargetResourceGroupName(String targetResourceGroupName)

Parameters:

targetResourceGroupName

withTargetResourceName

public SqlServerResourceSettings withTargetResourceName(String targetResourceName)

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

Overrides:

SqlServerResourceSettings.withTargetResourceName(String targetResourceName)

Parameters:

targetResourceName

Applies to