Class SqlServerInstanceProperties

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

public final class SqlServerInstanceProperties extends Object
Properties of SqlServerInstance.
  • Constructor Details

    • SqlServerInstanceProperties

      public SqlServerInstanceProperties()
      Creates an instance of SqlServerInstanceProperties class.
  • Method Details

    • version

      public SqlVersion version()
      Get the version property: SQL Server version.
      Returns:
      the version value.
    • 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.
    • edition

      public EditionType edition()
      Get the edition property: SQL Server edition.
      Returns:
      the edition value.
    • 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.
    • containerResourceId

      public String containerResourceId()
      Get the containerResourceId property: ARM Resource id of the container resource (Azure Arc for Servers).
      Returns:
      the containerResourceId value.
    • 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.
    • createTime

      public String createTime()
      Get the createTime property: The time when the resource was created.
      Returns:
      the createTime value.
    • vCore

      public String vCore()
      Get the vCore property: The number of logical processors used by the SQL Server instance.
      Returns:
      the vCore value.
    • 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.
    • status

      public ConnectionStatus status()
      Get the status property: The cloud connectivity status.
      Returns:
      the status value.
    • 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.
    • patchLevel

      public String patchLevel()
      Get the patchLevel property: SQL Server update level.
      Returns:
      the patchLevel value.
    • 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.
    • collation

      public String collation()
      Get the collation property: SQL Server collation.
      Returns:
      the collation value.
    • 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.
    • currentVersion

      public String currentVersion()
      Get the currentVersion property: SQL Server current version.
      Returns:
      the currentVersion value.
    • 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.
    • instanceName

      public String instanceName()
      Get the instanceName property: SQL Server instance name.
      Returns:
      the instanceName value.
    • 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.
    • tcpDynamicPorts

      public String tcpDynamicPorts()
      Get the tcpDynamicPorts property: Dynamic TCP ports used by SQL Server.
      Returns:
      the tcpDynamicPorts value.
    • 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.
    • tcpStaticPorts

      public String tcpStaticPorts()
      Get the tcpStaticPorts property: Static TCP ports used by SQL Server.
      Returns:
      the tcpStaticPorts value.
    • 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.
    • productId

      public String productId()
      Get the productId property: SQL Server product ID.
      Returns:
      the productId value.
    • 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.
    • licenseType

      public ArcSqlServerLicenseType licenseType()
      Get the licenseType property: SQL Server license type.
      Returns:
      the licenseType value.
    • 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.
    • azureDefenderStatusLastUpdated

      public OffsetDateTime 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

      public DefenderStatus azureDefenderStatus()
      Get the azureDefenderStatus property: Status of Azure Defender.
      Returns:
      the azureDefenderStatus 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.
    • provisioningState

      public String 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.