SqlServerInstanceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.azurearcdata.models.SqlServerInstanceProperties

Implements

public final class SqlServerInstanceProperties
implements JsonSerializable<SqlServerInstanceProperties>

Properties of SqlServerInstance.

Constructor Summary

Constructor Description
SqlServerInstanceProperties()

Creates an instance of SqlServerInstanceProperties class.

Method Summary

Modifier and Type Method and Description
DefenderStatus azureDefenderStatus()

Get the azureDefenderStatus property: Status of Azure Defender.

OffsetDateTime azureDefenderStatusLastUpdated()

Get the azureDefenderStatusLastUpdated property: Timestamp of last Azure Defender status update.

String collation()

Get the collation property: SQL Server collation.

String containerResourceId()

Get the containerResourceId property: ARM Resource id of the container resource (Azure Arc for Servers).

String createTime()

Get the createTime property: The time when the resource was created.

String currentVersion()

Get the currentVersion property: SQL Server current version.

EditionType edition()

Get the edition property: SQL Server edition.

static SqlServerInstanceProperties fromJson(JsonReader jsonReader)

Reads an instance of SqlServerInstanceProperties from the JsonReader.

String instanceName()

Get the instanceName property: SQL Server instance name.

ArcSqlServerLicenseType licenseType()

Get the licenseType property: SQL Server license type.

String patchLevel()

Get the patchLevel property: SQL Server update level.

String productId()

Get the productId property: SQL Server product ID.

String provisioningState()

Get the provisioningState property: The provisioningState property.

ConnectionStatus status()

Get the status property: The cloud connectivity status.

String tcpDynamicPorts()

Get the tcpDynamicPorts property: Dynamic TCP ports used by SQL Server.

String tcpStaticPorts()

Get the tcpStaticPorts property: Static TCP ports used by SQL Server.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String vCore()

Get the vCore property: The number of logical processors used by the SQL Server instance.

SqlVersion version()

Get the version property: SQL Server version.

SqlServerInstanceProperties withAzureDefenderStatus(DefenderStatus azureDefenderStatus)

Set the azureDefenderStatus property: Status of Azure Defender.

SqlServerInstanceProperties withAzureDefenderStatusLastUpdated(OffsetDateTime azureDefenderStatusLastUpdated)

Set the azureDefenderStatusLastUpdated property: Timestamp of last Azure Defender status update.

SqlServerInstanceProperties withCollation(String collation)

Set the collation property: SQL Server collation.

SqlServerInstanceProperties withContainerResourceId(String containerResourceId)

Set the containerResourceId property: ARM Resource id of the container resource (Azure Arc for Servers).

SqlServerInstanceProperties withCurrentVersion(String currentVersion)

Set the currentVersion property: SQL Server current version.

SqlServerInstanceProperties withEdition(EditionType edition)

Set the edition property: SQL Server edition.

SqlServerInstanceProperties withInstanceName(String instanceName)

Set the instanceName property: SQL Server instance name.

SqlServerInstanceProperties withLicenseType(ArcSqlServerLicenseType licenseType)

Set the licenseType property: SQL Server license type.

SqlServerInstanceProperties withPatchLevel(String patchLevel)

Set the patchLevel property: SQL Server update level.

SqlServerInstanceProperties withProductId(String productId)

Set the productId property: SQL Server product ID.

SqlServerInstanceProperties withStatus(ConnectionStatus status)

Set the status property: The cloud connectivity status.

SqlServerInstanceProperties withTcpDynamicPorts(String tcpDynamicPorts)

Set the tcpDynamicPorts property: Dynamic TCP ports used by SQL Server.

SqlServerInstanceProperties withTcpStaticPorts(String tcpStaticPorts)

Set the tcpStaticPorts property: Static TCP ports used by SQL Server.

SqlServerInstanceProperties withVCore(String vCore)

Set the vCore property: The number of logical processors used by the SQL Server instance.

SqlServerInstanceProperties withVersion(SqlVersion version)

Set the version property: SQL Server version.

Methods inherited from java.lang.Object

Constructor Details

SqlServerInstanceProperties

public SqlServerInstanceProperties()

Creates an instance of SqlServerInstanceProperties class.

Method Details

azureDefenderStatus

public DefenderStatus azureDefenderStatus()

Get the azureDefenderStatus property: Status of Azure Defender.

Returns:

the azureDefenderStatus value.

azureDefenderStatusLastUpdated

public OffsetDateTime azureDefenderStatusLastUpdated()

Get the azureDefenderStatusLastUpdated property: Timestamp of last Azure Defender status update.

Returns:

the azureDefenderStatusLastUpdated value.

collation

public String collation()

Get the collation property: SQL Server collation.

Returns:

the collation value.

containerResourceId

public String containerResourceId()

Get the containerResourceId property: ARM Resource id of the container resource (Azure Arc for Servers).

Returns:

the containerResourceId value.

createTime

public String createTime()

Get the createTime property: The time when the resource was created.

Returns:

the createTime value.

currentVersion

public String currentVersion()

Get the currentVersion property: SQL Server current version.

Returns:

the currentVersion value.

edition

public EditionType edition()

Get the edition property: SQL Server edition.

Returns:

the edition value.

fromJson

public static SqlServerInstanceProperties fromJson(JsonReader jsonReader)

Reads an instance of SqlServerInstanceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlServerInstanceProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

instanceName

public String instanceName()

Get the instanceName property: SQL Server instance name.

Returns:

the instanceName value.

licenseType

public ArcSqlServerLicenseType licenseType()

Get the licenseType property: SQL Server license type.

Returns:

the licenseType value.

patchLevel

public String patchLevel()

Get the patchLevel property: SQL Server update level.

Returns:

the patchLevel value.

productId

public String productId()

Get the productId property: SQL Server product ID.

Returns:

the productId value.

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioningState property.

Returns:

the provisioningState value.

status

public ConnectionStatus status()

Get the status property: The cloud connectivity status.

Returns:

the status value.

tcpDynamicPorts

public String tcpDynamicPorts()

Get the tcpDynamicPorts property: Dynamic TCP ports used by SQL Server.

Returns:

the tcpDynamicPorts value.

tcpStaticPorts

public String tcpStaticPorts()

Get the tcpStaticPorts property: Static TCP ports used by SQL Server.

Returns:

the tcpStaticPorts value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vCore

public String vCore()

Get the vCore property: The number of logical processors used by the SQL Server instance.

Returns:

the vCore value.

version

public SqlVersion version()

Get the version property: SQL Server version.

Returns:

the version value.

withAzureDefenderStatus

public SqlServerInstanceProperties withAzureDefenderStatus(DefenderStatus azureDefenderStatus)

Set the azureDefenderStatus property: Status of Azure Defender.

Parameters:

azureDefenderStatus - the azureDefenderStatus value to set.

Returns:

the SqlServerInstanceProperties object itself.

withAzureDefenderStatusLastUpdated

public SqlServerInstanceProperties withAzureDefenderStatusLastUpdated(OffsetDateTime azureDefenderStatusLastUpdated)

Set the azureDefenderStatusLastUpdated property: Timestamp of last Azure Defender status update.

Parameters:

azureDefenderStatusLastUpdated - the azureDefenderStatusLastUpdated value to set.

Returns:

the SqlServerInstanceProperties object itself.

withCollation

public SqlServerInstanceProperties withCollation(String collation)

Set the collation property: SQL Server collation.

Parameters:

collation - the collation value to set.

Returns:

the SqlServerInstanceProperties object itself.

withContainerResourceId

public SqlServerInstanceProperties withContainerResourceId(String containerResourceId)

Set the containerResourceId property: ARM Resource id of the container resource (Azure Arc for Servers).

Parameters:

containerResourceId - the containerResourceId value to set.

Returns:

the SqlServerInstanceProperties object itself.

withCurrentVersion

public SqlServerInstanceProperties withCurrentVersion(String currentVersion)

Set the currentVersion property: SQL Server current version.

Parameters:

currentVersion - the currentVersion value to set.

Returns:

the SqlServerInstanceProperties object itself.

withEdition

public SqlServerInstanceProperties withEdition(EditionType edition)

Set the edition property: SQL Server edition.

Parameters:

edition - the edition value to set.

Returns:

the SqlServerInstanceProperties object itself.

withInstanceName

public SqlServerInstanceProperties withInstanceName(String instanceName)

Set the instanceName property: SQL Server instance name.

Parameters:

instanceName - the instanceName value to set.

Returns:

the SqlServerInstanceProperties object itself.

withLicenseType

public SqlServerInstanceProperties withLicenseType(ArcSqlServerLicenseType licenseType)

Set the licenseType property: SQL Server license type.

Parameters:

licenseType - the licenseType value to set.

Returns:

the SqlServerInstanceProperties object itself.

withPatchLevel

public SqlServerInstanceProperties withPatchLevel(String patchLevel)

Set the patchLevel property: SQL Server update level.

Parameters:

patchLevel - the patchLevel value to set.

Returns:

the SqlServerInstanceProperties object itself.

withProductId

public SqlServerInstanceProperties withProductId(String productId)

Set the productId property: SQL Server product ID.

Parameters:

productId - the productId value to set.

Returns:

the SqlServerInstanceProperties object itself.

withStatus

public SqlServerInstanceProperties withStatus(ConnectionStatus status)

Set the status property: The cloud connectivity status.

Parameters:

status - the status value to set.

Returns:

the SqlServerInstanceProperties object itself.

withTcpDynamicPorts

public SqlServerInstanceProperties withTcpDynamicPorts(String tcpDynamicPorts)

Set the tcpDynamicPorts property: Dynamic TCP ports used by SQL Server.

Parameters:

tcpDynamicPorts - the tcpDynamicPorts value to set.

Returns:

the SqlServerInstanceProperties object itself.

withTcpStaticPorts

public SqlServerInstanceProperties withTcpStaticPorts(String tcpStaticPorts)

Set the tcpStaticPorts property: Static TCP ports used by SQL Server.

Parameters:

tcpStaticPorts - the tcpStaticPorts value to set.

Returns:

the SqlServerInstanceProperties object itself.

withVCore

public SqlServerInstanceProperties withVCore(String vCore)

Set the vCore property: The number of logical processors used by the SQL Server instance.

Parameters:

vCore - the vCore value to set.

Returns:

the SqlServerInstanceProperties object itself.

withVersion

public SqlServerInstanceProperties withVersion(SqlVersion version)

Set the version property: SQL Server version.

Parameters:

version - the version value to set.

Returns:

the SqlServerInstanceProperties object itself.

Applies to