Class SqlVirtualMachineProperties
java.lang.Object
com.azure.resourcemanager.sqlvirtualmachine.fluent.models.SqlVirtualMachineProperties
The SQL virtual machine properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the assessmentSettings property: Assessment Settings.Get the autoBackupSettings property: Auto backup settings for SQL Server.Get the autoPatchingSettings property: Auto patching settings for applying critical security updates to SQL virtual machine.Get the enableAutomaticUpgrade property: Enable automatic upgrade of Sql IaaS extension Agent.Get the keyVaultCredentialSettings property: Key vault credential settings.Get the leastPrivilegeMode property: SQL IaaS Agent least privilege mode.Get the provisioningState property: Provisioning state to track the async operation status.Get the serverConfigurationsManagementSettings property: SQL Server configuration management settings.Get the sqlImageOffer property: SQL image offer.Get the sqlImageSku property: SQL Server edition type.Get the sqlManagement property: SQL Server Management type.Get the sqlServerLicenseType property: SQL Server license type.Get the sqlVirtualMachineGroupResourceId property: ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.Get the storageConfigurationSettings property: Storage Configuration Settings.void
validate()
Validates the instance.Get the virtualMachineResourceId property: ARM Resource id of underlying virtual machine created from SQL marketplace image.withAssessmentSettings
(AssessmentSettings assessmentSettings) Set the assessmentSettings property: Assessment Settings.withAutoBackupSettings
(AutoBackupSettings autoBackupSettings) Set the autoBackupSettings property: Auto backup settings for SQL Server.withAutoPatchingSettings
(AutoPatchingSettings autoPatchingSettings) Set the autoPatchingSettings property: Auto patching settings for applying critical security updates to SQL virtual machine.withEnableAutomaticUpgrade
(Boolean enableAutomaticUpgrade) Set the enableAutomaticUpgrade property: Enable automatic upgrade of Sql IaaS extension Agent.withKeyVaultCredentialSettings
(KeyVaultCredentialSettings keyVaultCredentialSettings) Set the keyVaultCredentialSettings property: Key vault credential settings.withLeastPrivilegeMode
(LeastPrivilegeMode leastPrivilegeMode) Set the leastPrivilegeMode property: SQL IaaS Agent least privilege mode.withServerConfigurationsManagementSettings
(ServerConfigurationsManagementSettings serverConfigurationsManagementSettings) Set the serverConfigurationsManagementSettings property: SQL Server configuration management settings.withSqlImageOffer
(String sqlImageOffer) Set the sqlImageOffer property: SQL image offer.withSqlImageSku
(SqlImageSku sqlImageSku) Set the sqlImageSku property: SQL Server edition type.withSqlManagement
(SqlManagementMode sqlManagement) Set the sqlManagement property: SQL Server Management type.withSqlServerLicenseType
(SqlServerLicenseType sqlServerLicenseType) Set the sqlServerLicenseType property: SQL Server license type.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.withStorageConfigurationSettings
(StorageConfigurationSettings storageConfigurationSettings) Set the storageConfigurationSettings property: Storage Configuration Settings.withVirtualMachineResourceId
(String virtualMachineResourceId) Set the virtualMachineResourceId property: ARM Resource id of underlying virtual machine created from SQL marketplace image.withWsfcDomainCredentials
(WsfcDomainCredentials wsfcDomainCredentials) Set the wsfcDomainCredentials property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.withWsfcStaticIp
(String wsfcStaticIp) Set the wsfcStaticIp property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.Get the wsfcDomainCredentials property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.Get the wsfcStaticIp property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
-
Constructor Details
-
SqlVirtualMachineProperties
public SqlVirtualMachineProperties()
-
-
Method Details
-
virtualMachineResourceId
Get the virtualMachineResourceId property: ARM Resource id of underlying virtual machine created from SQL marketplace image.- Returns:
- the virtualMachineResourceId value.
-
withVirtualMachineResourceId
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 SqlVirtualMachineProperties object itself.
-
provisioningState
Get the provisioningState property: Provisioning state to track the async operation status.- Returns:
- the provisioningState value.
-
sqlImageOffer
Get the sqlImageOffer property: SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.- Returns:
- the sqlImageOffer value.
-
withSqlImageOffer
Set the sqlImageOffer property: SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.- Parameters:
sqlImageOffer
- the sqlImageOffer value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
sqlServerLicenseType
Get the sqlServerLicenseType property: SQL Server license type.- Returns:
- the sqlServerLicenseType value.
-
withSqlServerLicenseType
public SqlVirtualMachineProperties withSqlServerLicenseType(SqlServerLicenseType sqlServerLicenseType) Set the sqlServerLicenseType property: SQL Server license type.- Parameters:
sqlServerLicenseType
- the sqlServerLicenseType value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
sqlManagement
Get the sqlManagement property: SQL Server Management type.- Returns:
- the sqlManagement value.
-
withSqlManagement
Set the sqlManagement property: SQL Server Management type.- Parameters:
sqlManagement
- the sqlManagement value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
leastPrivilegeMode
Get the leastPrivilegeMode property: SQL IaaS Agent least privilege mode.- Returns:
- the leastPrivilegeMode value.
-
withLeastPrivilegeMode
Set the leastPrivilegeMode property: SQL IaaS Agent least privilege mode.- Parameters:
leastPrivilegeMode
- the leastPrivilegeMode value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
sqlImageSku
Get the sqlImageSku property: SQL Server edition type.- Returns:
- the sqlImageSku value.
-
withSqlImageSku
Set the sqlImageSku property: SQL Server edition type.- Parameters:
sqlImageSku
- the sqlImageSku value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
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 SqlVirtualMachineProperties 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 SqlVirtualMachineProperties object itself.
-
wsfcDomainCredentials
Get the wsfcDomainCredentials property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.- Returns:
- the wsfcDomainCredentials value.
-
withWsfcDomainCredentials
public SqlVirtualMachineProperties 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 SqlVirtualMachineProperties object itself.
-
wsfcStaticIp
Get the wsfcStaticIp property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.- Returns:
- the wsfcStaticIp value.
-
withWsfcStaticIp
Set the wsfcStaticIp property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.- Parameters:
wsfcStaticIp
- the wsfcStaticIp value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
autoPatchingSettings
Get the autoPatchingSettings property: Auto patching settings for applying critical security updates to SQL virtual machine.- Returns:
- the autoPatchingSettings value.
-
withAutoPatchingSettings
public SqlVirtualMachineProperties 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 SqlVirtualMachineProperties object itself.
-
autoBackupSettings
Get the autoBackupSettings property: Auto backup settings for SQL Server.- Returns:
- the autoBackupSettings value.
-
withAutoBackupSettings
Set the autoBackupSettings property: Auto backup settings for SQL Server.- Parameters:
autoBackupSettings
- the autoBackupSettings value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
keyVaultCredentialSettings
Get the keyVaultCredentialSettings property: Key vault credential settings.- Returns:
- the keyVaultCredentialSettings value.
-
withKeyVaultCredentialSettings
public SqlVirtualMachineProperties withKeyVaultCredentialSettings(KeyVaultCredentialSettings keyVaultCredentialSettings) Set the keyVaultCredentialSettings property: Key vault credential settings.- Parameters:
keyVaultCredentialSettings
- the keyVaultCredentialSettings value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
serverConfigurationsManagementSettings
Get the serverConfigurationsManagementSettings property: SQL Server configuration management settings.- Returns:
- the serverConfigurationsManagementSettings value.
-
withServerConfigurationsManagementSettings
public SqlVirtualMachineProperties withServerConfigurationsManagementSettings(ServerConfigurationsManagementSettings serverConfigurationsManagementSettings) Set the serverConfigurationsManagementSettings property: SQL Server configuration management settings.- Parameters:
serverConfigurationsManagementSettings
- the serverConfigurationsManagementSettings value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
storageConfigurationSettings
Get the storageConfigurationSettings property: Storage Configuration Settings.- Returns:
- the storageConfigurationSettings value.
-
withStorageConfigurationSettings
public SqlVirtualMachineProperties withStorageConfigurationSettings(StorageConfigurationSettings storageConfigurationSettings) Set the storageConfigurationSettings property: Storage Configuration Settings.- Parameters:
storageConfigurationSettings
- the storageConfigurationSettings value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
assessmentSettings
Get the assessmentSettings property: Assessment Settings.- Returns:
- the assessmentSettings value.
-
withAssessmentSettings
Set the assessmentSettings property: Assessment Settings.- Parameters:
assessmentSettings
- the assessmentSettings value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
enableAutomaticUpgrade
Get the enableAutomaticUpgrade property: Enable automatic upgrade of Sql IaaS extension Agent.- Returns:
- the enableAutomaticUpgrade value.
-
withEnableAutomaticUpgrade
Set the enableAutomaticUpgrade property: Enable automatic upgrade of Sql IaaS extension Agent.- Parameters:
enableAutomaticUpgrade
- the enableAutomaticUpgrade value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-