Class SqlServerInstanceProperties
java.lang.Object
com.azure.resourcemanager.azurearcdata.models.SqlServerInstanceProperties
Properties of SqlServerInstance.
-
Constructor Summary
ConstructorDescriptionCreates an instance of SqlServerInstanceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the azureDefenderStatus property: Status of Azure Defender.Get the azureDefenderStatusLastUpdated property: Timestamp of last Azure Defender status update.Get the collation property: SQL Server collation.Get the containerResourceId property: ARM Resource id of the container resource (Azure Arc for Servers).Get the createTime property: The time when the resource was created.Get the currentVersion property: SQL Server current version.edition()
Get the edition property: SQL Server edition.Get the instanceName property: SQL Server instance name.Get the licenseType property: SQL Server license type.Get the patchLevel property: SQL Server update level.Get the productId property: SQL Server product ID.Get the provisioningState property: The provisioningState property.status()
Get the status property: The cloud connectivity status.Get the tcpDynamicPorts property: Dynamic TCP ports used by SQL Server.Get the tcpStaticPorts property: Static TCP ports used by SQL Server.void
validate()
Validates the instance.vCore()
Get the vCore property: The number of logical processors used by the SQL Server instance.version()
Get the version property: SQL Server version.withAzureDefenderStatus
(DefenderStatus azureDefenderStatus) Set the azureDefenderStatus property: Status of Azure Defender.withAzureDefenderStatusLastUpdated
(OffsetDateTime azureDefenderStatusLastUpdated) Set the azureDefenderStatusLastUpdated property: Timestamp of last Azure Defender status update.withCollation
(String collation) Set the collation property: SQL Server collation.withContainerResourceId
(String containerResourceId) Set the containerResourceId property: ARM Resource id of the container resource (Azure Arc for Servers).withCurrentVersion
(String currentVersion) Set the currentVersion property: SQL Server current version.withEdition
(EditionType edition) Set the edition property: SQL Server edition.withInstanceName
(String instanceName) Set the instanceName property: SQL Server instance name.withLicenseType
(ArcSqlServerLicenseType licenseType) Set the licenseType property: SQL Server license type.withPatchLevel
(String patchLevel) Set the patchLevel property: SQL Server update level.withProductId
(String productId) Set the productId property: SQL Server product ID.withStatus
(ConnectionStatus status) Set the status property: The cloud connectivity status.withTcpDynamicPorts
(String tcpDynamicPorts) Set the tcpDynamicPorts property: Dynamic TCP ports used by SQL Server.withTcpStaticPorts
(String tcpStaticPorts) Set the tcpStaticPorts property: Static TCP ports used by SQL Server.Set the vCore property: The number of logical processors used by the SQL Server instance.withVersion
(SqlVersion version) Set the version property: SQL Server version.
-
Constructor Details
-
SqlServerInstanceProperties
public SqlServerInstanceProperties()Creates an instance of SqlServerInstanceProperties class.
-
-
Method Details
-
version
Get the version property: SQL Server version.- Returns:
- the version value.
-
withVersion
Set the version property: SQL Server version.- Parameters:
version
- the version value to set.- Returns:
- the SqlServerInstanceProperties object itself.
-
edition
Get the edition property: SQL Server edition.- Returns:
- the edition value.
-
withEdition
Set the edition property: SQL Server edition.- Parameters:
edition
- the edition value to set.- Returns:
- the SqlServerInstanceProperties object itself.
-
containerResourceId
Get the containerResourceId property: ARM Resource id of the container resource (Azure Arc for Servers).- Returns:
- the containerResourceId value.
-
withContainerResourceId
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.
-
createTime
Get the createTime property: The time when the resource was created.- Returns:
- the createTime value.
-
vCore
Get the vCore property: The number of logical processors used by the SQL Server instance.- Returns:
- the vCore value.
-
withVCore
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.
-
status
Get the status property: The cloud connectivity status.- Returns:
- the status value.
-
withStatus
Set the status property: The cloud connectivity status.- Parameters:
status
- the status value to set.- Returns:
- the SqlServerInstanceProperties object itself.
-
patchLevel
Get the patchLevel property: SQL Server update level.- Returns:
- the patchLevel value.
-
withPatchLevel
Set the patchLevel property: SQL Server update level.- Parameters:
patchLevel
- the patchLevel value to set.- Returns:
- the SqlServerInstanceProperties object itself.
-
collation
Get the collation property: SQL Server collation.- Returns:
- the collation value.
-
withCollation
Set the collation property: SQL Server collation.- Parameters:
collation
- the collation value to set.- Returns:
- the SqlServerInstanceProperties object itself.
-
currentVersion
Get the currentVersion property: SQL Server current version.- Returns:
- the currentVersion value.
-
withCurrentVersion
Set the currentVersion property: SQL Server current version.- Parameters:
currentVersion
- the currentVersion value to set.- Returns:
- the SqlServerInstanceProperties object itself.
-
instanceName
Get the instanceName property: SQL Server instance name.- Returns:
- the instanceName value.
-
withInstanceName
Set the instanceName property: SQL Server instance name.- Parameters:
instanceName
- the instanceName value to set.- Returns:
- the SqlServerInstanceProperties object itself.
-
tcpDynamicPorts
Get the tcpDynamicPorts property: Dynamic TCP ports used by SQL Server.- Returns:
- the tcpDynamicPorts value.
-
withTcpDynamicPorts
Set the tcpDynamicPorts property: Dynamic TCP ports used by SQL Server.- Parameters:
tcpDynamicPorts
- the tcpDynamicPorts value to set.- Returns:
- the SqlServerInstanceProperties object itself.
-
tcpStaticPorts
Get the tcpStaticPorts property: Static TCP ports used by SQL Server.- Returns:
- the tcpStaticPorts value.
-
withTcpStaticPorts
Set the tcpStaticPorts property: Static TCP ports used by SQL Server.- Parameters:
tcpStaticPorts
- the tcpStaticPorts value to set.- Returns:
- the SqlServerInstanceProperties object itself.
-
productId
Get the productId property: SQL Server product ID.- Returns:
- the productId value.
-
withProductId
Set the productId property: SQL Server product ID.- Parameters:
productId
- the productId value to set.- Returns:
- the SqlServerInstanceProperties object itself.
-
licenseType
Get the licenseType property: SQL Server license type.- Returns:
- the licenseType value.
-
withLicenseType
Set the licenseType property: SQL Server license type.- Parameters:
licenseType
- the licenseType value to set.- Returns:
- the SqlServerInstanceProperties object itself.
-
azureDefenderStatusLastUpdated
Get the azureDefenderStatusLastUpdated property: Timestamp of last Azure Defender status update.- Returns:
- the azureDefenderStatusLastUpdated value.
-
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.
-
azureDefenderStatus
Get the azureDefenderStatus property: Status of Azure Defender.- Returns:
- the azureDefenderStatus value.
-
withAzureDefenderStatus
Set the azureDefenderStatus property: Status of Azure Defender.- Parameters:
azureDefenderStatus
- the azureDefenderStatus value to set.- Returns:
- the SqlServerInstanceProperties object itself.
-
provisioningState
Get the provisioningState property: The provisioningState property.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-