Class SqlVirtualMachineProperties
- java.lang.Object
-
- com.azure.resourcemanager.sqlvirtualmachine.fluent.models.SqlVirtualMachineProperties
-
public final class SqlVirtualMachineProperties extends Object
The SQL virtual machine properties.
-
-
Constructor Summary
Constructors Constructor Description SqlVirtualMachineProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssessmentSettings
assessmentSettings()
Get the assessmentSettings property: Assessment Settings.AutoBackupSettings
autoBackupSettings()
Get the autoBackupSettings property: Auto backup settings for SQL Server.AutoPatchingSettings
autoPatchingSettings()
Get the autoPatchingSettings property: Auto patching settings for applying critical security updates to SQL virtual machine.KeyVaultCredentialSettings
keyVaultCredentialSettings()
Get the keyVaultCredentialSettings property: Key vault credential settings.String
provisioningState()
Get the provisioningState property: Provisioning state to track the async operation status.ServerConfigurationsManagementSettings
serverConfigurationsManagementSettings()
Get the serverConfigurationsManagementSettings property: SQL Server configuration management settings.String
sqlImageOffer()
Get the sqlImageOffer property: SQL image offer.SqlImageSku
sqlImageSku()
Get the sqlImageSku property: SQL Server edition type.SqlManagementMode
sqlManagement()
Get the sqlManagement property: SQL Server Management type.SqlServerLicenseType
sqlServerLicenseType()
Get the sqlServerLicenseType property: SQL Server license type.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.StorageConfigurationSettings
storageConfigurationSettings()
Get the storageConfigurationSettings property: Storage Configuration Settings.void
validate()
Validates the instance.String
virtualMachineResourceId()
Get the virtualMachineResourceId property: ARM Resource id of underlying virtual machine created from SQL marketplace image.SqlVirtualMachineProperties
withAssessmentSettings(AssessmentSettings assessmentSettings)
Set the assessmentSettings property: Assessment Settings.SqlVirtualMachineProperties
withAutoBackupSettings(AutoBackupSettings autoBackupSettings)
Set the autoBackupSettings property: Auto backup settings for SQL Server.SqlVirtualMachineProperties
withAutoPatchingSettings(AutoPatchingSettings autoPatchingSettings)
Set the autoPatchingSettings property: Auto patching settings for applying critical security updates to SQL virtual machine.SqlVirtualMachineProperties
withKeyVaultCredentialSettings(KeyVaultCredentialSettings keyVaultCredentialSettings)
Set the keyVaultCredentialSettings property: Key vault credential settings.SqlVirtualMachineProperties
withServerConfigurationsManagementSettings(ServerConfigurationsManagementSettings serverConfigurationsManagementSettings)
Set the serverConfigurationsManagementSettings property: SQL Server configuration management settings.SqlVirtualMachineProperties
withSqlImageOffer(String sqlImageOffer)
Set the sqlImageOffer property: SQL image offer.SqlVirtualMachineProperties
withSqlImageSku(SqlImageSku sqlImageSku)
Set the sqlImageSku property: SQL Server edition type.SqlVirtualMachineProperties
withSqlManagement(SqlManagementMode sqlManagement)
Set the sqlManagement property: SQL Server Management type.SqlVirtualMachineProperties
withSqlServerLicenseType(SqlServerLicenseType sqlServerLicenseType)
Set the sqlServerLicenseType property: SQL Server license type.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.SqlVirtualMachineProperties
withStorageConfigurationSettings(StorageConfigurationSettings storageConfigurationSettings)
Set the storageConfigurationSettings property: Storage Configuration Settings.SqlVirtualMachineProperties
withVirtualMachineResourceId(String virtualMachineResourceId)
Set the virtualMachineResourceId property: ARM Resource id of underlying virtual machine created from SQL marketplace image.SqlVirtualMachineProperties
withWsfcDomainCredentials(WsfcDomainCredentials wsfcDomainCredentials)
Set the wsfcDomainCredentials property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.WsfcDomainCredentials
wsfcDomainCredentials()
Get the wsfcDomainCredentials property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
-
-
-
Method Detail
-
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 SqlVirtualMachineProperties 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 SqlVirtualMachineProperties 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 SqlVirtualMachineProperties 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 SqlVirtualMachineProperties object itself.
-
sqlServerLicenseType
public SqlServerLicenseType 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
public SqlManagementMode sqlManagement()
Get the sqlManagement property: SQL Server Management type.- Returns:
- the sqlManagement value.
-
withSqlManagement
public SqlVirtualMachineProperties withSqlManagement(SqlManagementMode sqlManagement)
Set the sqlManagement property: SQL Server Management type.- Parameters:
sqlManagement
- the sqlManagement value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
sqlImageSku
public SqlImageSku sqlImageSku()
Get the sqlImageSku property: SQL Server edition type.- Returns:
- the sqlImageSku value.
-
withSqlImageSku
public SqlVirtualMachineProperties withSqlImageSku(SqlImageSku sqlImageSku)
Set the sqlImageSku property: SQL Server edition type.- Parameters:
sqlImageSku
- the sqlImageSku value to set.- Returns:
- the SqlVirtualMachineProperties 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 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
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 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.
-
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 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
public AutoBackupSettings autoBackupSettings()
Get the autoBackupSettings property: Auto backup settings for SQL Server.- Returns:
- the autoBackupSettings value.
-
withAutoBackupSettings
public SqlVirtualMachineProperties withAutoBackupSettings(AutoBackupSettings autoBackupSettings)
Set the autoBackupSettings property: Auto backup settings for SQL Server.- Parameters:
autoBackupSettings
- the autoBackupSettings value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
keyVaultCredentialSettings
public KeyVaultCredentialSettings 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
public ServerConfigurationsManagementSettings 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
public StorageConfigurationSettings 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
public AssessmentSettings assessmentSettings()
Get the assessmentSettings property: Assessment Settings.- Returns:
- the assessmentSettings value.
-
withAssessmentSettings
public SqlVirtualMachineProperties withAssessmentSettings(AssessmentSettings assessmentSettings)
Set the assessmentSettings property: Assessment Settings.- Parameters:
assessmentSettings
- the assessmentSettings value to set.- Returns:
- the SqlVirtualMachineProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-