Class SqlVirtualMachineInner


  • public final class SqlVirtualMachineInner
    extends com.azure.core.management.Resource
    A SQL virtual machine.
    • Constructor Detail

      • SqlVirtualMachineInner

        public SqlVirtualMachineInner()
    • Method Detail

      • identity

        public ResourceIdentity identity()
        Get the identity property: Azure Active Directory identity of the server.
        Returns:
        the identity value.
      • withIdentity

        public SqlVirtualMachineInner withIdentity​(ResourceIdentity identity)
        Set the identity property: Azure Active Directory identity of the server.
        Parameters:
        identity - the identity value to set.
        Returns:
        the SqlVirtualMachineInner object itself.
      • systemData

        public com.azure.core.management.SystemData systemData()
        Get the systemData property: Metadata pertaining to creation and last modification of the resource.
        Returns:
        the systemData value.
      • withLocation

        public SqlVirtualMachineInner withLocation​(String location)
        Overrides:
        withLocation in class com.azure.core.management.Resource
      • virtualMachineResourceId

        public String virtualMachineResourceId()
        Get the virtualMachineResourceId property: ARM Resource id of underlying virtual machine created from SQL marketplace image.
        Returns:
        the virtualMachineResourceId value.
      • withVirtualMachineResourceId

        public SqlVirtualMachineInner withVirtualMachineResourceId​(String virtualMachineResourceId)
        Set the virtualMachineResourceId property: ARM Resource id of underlying virtual machine created from SQL marketplace image.
        Parameters:
        virtualMachineResourceId - the virtualMachineResourceId value to set.
        Returns:
        the SqlVirtualMachineInner object itself.
      • provisioningState

        public String provisioningState()
        Get the provisioningState property: Provisioning state to track the async operation status.
        Returns:
        the provisioningState value.
      • sqlImageOffer

        public String sqlImageOffer()
        Get the sqlImageOffer property: SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.
        Returns:
        the sqlImageOffer value.
      • withSqlImageOffer

        public SqlVirtualMachineInner withSqlImageOffer​(String sqlImageOffer)
        Set the sqlImageOffer property: SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.
        Parameters:
        sqlImageOffer - the sqlImageOffer value to set.
        Returns:
        the SqlVirtualMachineInner object itself.
      • sqlServerLicenseType

        public SqlServerLicenseType sqlServerLicenseType()
        Get the sqlServerLicenseType property: SQL Server license type.
        Returns:
        the sqlServerLicenseType value.
      • withSqlServerLicenseType

        public SqlVirtualMachineInner withSqlServerLicenseType​(SqlServerLicenseType sqlServerLicenseType)
        Set the sqlServerLicenseType property: SQL Server license type.
        Parameters:
        sqlServerLicenseType - the sqlServerLicenseType value to set.
        Returns:
        the SqlVirtualMachineInner object itself.
      • sqlManagement

        public SqlManagementMode sqlManagement()
        Get the sqlManagement property: SQL Server Management type.
        Returns:
        the sqlManagement value.
      • withSqlManagement

        public SqlVirtualMachineInner withSqlManagement​(SqlManagementMode sqlManagement)
        Set the sqlManagement property: SQL Server Management type.
        Parameters:
        sqlManagement - the sqlManagement value to set.
        Returns:
        the SqlVirtualMachineInner object itself.
      • sqlImageSku

        public SqlImageSku sqlImageSku()
        Get the sqlImageSku property: SQL Server edition type.
        Returns:
        the sqlImageSku value.
      • withSqlImageSku

        public SqlVirtualMachineInner withSqlImageSku​(SqlImageSku sqlImageSku)
        Set the sqlImageSku property: SQL Server edition type.
        Parameters:
        sqlImageSku - the sqlImageSku value to set.
        Returns:
        the SqlVirtualMachineInner object itself.
      • sqlVirtualMachineGroupResourceId

        public String sqlVirtualMachineGroupResourceId()
        Get the sqlVirtualMachineGroupResourceId property: ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.
        Returns:
        the sqlVirtualMachineGroupResourceId value.
      • withSqlVirtualMachineGroupResourceId

        public SqlVirtualMachineInner withSqlVirtualMachineGroupResourceId​(String sqlVirtualMachineGroupResourceId)
        Set the sqlVirtualMachineGroupResourceId property: ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.
        Parameters:
        sqlVirtualMachineGroupResourceId - the sqlVirtualMachineGroupResourceId value to set.
        Returns:
        the SqlVirtualMachineInner object itself.
      • wsfcDomainCredentials

        public WsfcDomainCredentials wsfcDomainCredentials()
        Get the wsfcDomainCredentials property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
        Returns:
        the wsfcDomainCredentials value.
      • withWsfcDomainCredentials

        public SqlVirtualMachineInner withWsfcDomainCredentials​(WsfcDomainCredentials wsfcDomainCredentials)
        Set the wsfcDomainCredentials property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
        Parameters:
        wsfcDomainCredentials - the wsfcDomainCredentials value to set.
        Returns:
        the SqlVirtualMachineInner object itself.
      • autoPatchingSettings

        public AutoPatchingSettings autoPatchingSettings()
        Get the autoPatchingSettings property: Auto patching settings for applying critical security updates to SQL virtual machine.
        Returns:
        the autoPatchingSettings value.
      • withAutoPatchingSettings

        public SqlVirtualMachineInner withAutoPatchingSettings​(AutoPatchingSettings autoPatchingSettings)
        Set the autoPatchingSettings property: Auto patching settings for applying critical security updates to SQL virtual machine.
        Parameters:
        autoPatchingSettings - the autoPatchingSettings value to set.
        Returns:
        the SqlVirtualMachineInner object itself.
      • autoBackupSettings

        public AutoBackupSettings autoBackupSettings()
        Get the autoBackupSettings property: Auto backup settings for SQL Server.
        Returns:
        the autoBackupSettings value.
      • withAutoBackupSettings

        public SqlVirtualMachineInner withAutoBackupSettings​(AutoBackupSettings autoBackupSettings)
        Set the autoBackupSettings property: Auto backup settings for SQL Server.
        Parameters:
        autoBackupSettings - the autoBackupSettings value to set.
        Returns:
        the SqlVirtualMachineInner object itself.
      • keyVaultCredentialSettings

        public KeyVaultCredentialSettings keyVaultCredentialSettings()
        Get the keyVaultCredentialSettings property: Key vault credential settings.
        Returns:
        the keyVaultCredentialSettings value.
      • withKeyVaultCredentialSettings

        public SqlVirtualMachineInner withKeyVaultCredentialSettings​(KeyVaultCredentialSettings keyVaultCredentialSettings)
        Set the keyVaultCredentialSettings property: Key vault credential settings.
        Parameters:
        keyVaultCredentialSettings - the keyVaultCredentialSettings value to set.
        Returns:
        the SqlVirtualMachineInner object itself.
      • serverConfigurationsManagementSettings

        public ServerConfigurationsManagementSettings serverConfigurationsManagementSettings()
        Get the serverConfigurationsManagementSettings property: SQL Server configuration management settings.
        Returns:
        the serverConfigurationsManagementSettings value.
      • withServerConfigurationsManagementSettings

        public SqlVirtualMachineInner withServerConfigurationsManagementSettings​(ServerConfigurationsManagementSettings serverConfigurationsManagementSettings)
        Set the serverConfigurationsManagementSettings property: SQL Server configuration management settings.
        Parameters:
        serverConfigurationsManagementSettings - the serverConfigurationsManagementSettings value to set.
        Returns:
        the SqlVirtualMachineInner object itself.
      • storageConfigurationSettings

        public StorageConfigurationSettings storageConfigurationSettings()
        Get the storageConfigurationSettings property: Storage Configuration Settings.
        Returns:
        the storageConfigurationSettings value.
      • withStorageConfigurationSettings

        public SqlVirtualMachineInner withStorageConfigurationSettings​(StorageConfigurationSettings storageConfigurationSettings)
        Set the storageConfigurationSettings property: Storage Configuration Settings.
        Parameters:
        storageConfigurationSettings - the storageConfigurationSettings value to set.
        Returns:
        the SqlVirtualMachineInner object itself.
      • assessmentSettings

        public AssessmentSettings assessmentSettings()
        Get the assessmentSettings property: Assessment Settings.
        Returns:
        the assessmentSettings value.
      • withAssessmentSettings

        public SqlVirtualMachineInner withAssessmentSettings​(AssessmentSettings assessmentSettings)
        Set the assessmentSettings property: Assessment Settings.
        Parameters:
        assessmentSettings - the assessmentSettings value to set.
        Returns:
        the SqlVirtualMachineInner object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.