Class AzureVmWorkloadSqlInstanceWorkloadItem
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadItem
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadItem
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlInstanceWorkloadItem
-
public final class AzureVmWorkloadSqlInstanceWorkloadItem extends AzureVmWorkloadItem
Azure VM workload-specific workload item representing SQL Instance.
-
-
Constructor Summary
Constructors Constructor Description AzureVmWorkloadSqlInstanceWorkloadItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SqlDataDirectory>
dataDirectoryPaths()
Get the dataDirectoryPaths property: Data Directory Paths for default directories.void
validate()
Validates the instance.AzureVmWorkloadSqlInstanceWorkloadItem
withBackupManagementType(String backupManagementType)
Set the backupManagementType property: Type of backup management to backup an item.AzureVmWorkloadSqlInstanceWorkloadItem
withDataDirectoryPaths(List<SqlDataDirectory> dataDirectoryPaths)
Set the dataDirectoryPaths property: Data Directory Paths for default directories.AzureVmWorkloadSqlInstanceWorkloadItem
withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of the backup item.AzureVmWorkloadSqlInstanceWorkloadItem
withIsAutoProtectable(Boolean isAutoProtectable)
Set the isAutoProtectable property: Indicates if workload item is auto-protectable.AzureVmWorkloadSqlInstanceWorkloadItem
withParentName(String parentName)
Set the parentName property: Name for instance or AG.AzureVmWorkloadSqlInstanceWorkloadItem
withProtectionState(ProtectionStatus protectionState)
Set the protectionState property: State of the back up item.AzureVmWorkloadSqlInstanceWorkloadItem
withServerName(String serverName)
Set the serverName property: Host/Cluster Name for instance or AG.AzureVmWorkloadSqlInstanceWorkloadItem
withSubinquireditemcount(Integer subinquireditemcount)
Set the subinquireditemcount property: For instance or AG, indicates number of DB's present.AzureVmWorkloadSqlInstanceWorkloadItem
withSubWorkloadItemCount(Integer subWorkloadItemCount)
Set the subWorkloadItemCount property: For instance or AG, indicates number of DB's to be protected.AzureVmWorkloadSqlInstanceWorkloadItem
withWorkloadType(String workloadType)
Set the workloadType property: Type of workload for the backup management.-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadItem
isAutoProtectable, parentName, serverName, subinquireditemcount, subWorkloadItemCount
-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadItem
backupManagementType, friendlyName, protectionState, workloadType
-
-
-
-
Method Detail
-
dataDirectoryPaths
public List<SqlDataDirectory> dataDirectoryPaths()
Get the dataDirectoryPaths property: Data Directory Paths for default directories.- Returns:
- the dataDirectoryPaths value.
-
withDataDirectoryPaths
public AzureVmWorkloadSqlInstanceWorkloadItem withDataDirectoryPaths(List<SqlDataDirectory> dataDirectoryPaths)
Set the dataDirectoryPaths property: Data Directory Paths for default directories.- Parameters:
dataDirectoryPaths
- the dataDirectoryPaths value to set.- Returns:
- the AzureVmWorkloadSqlInstanceWorkloadItem object itself.
-
withParentName
public AzureVmWorkloadSqlInstanceWorkloadItem withParentName(String parentName)
Set the parentName property: Name for instance or AG.- Overrides:
withParentName
in classAzureVmWorkloadItem
- Parameters:
parentName
- the parentName value to set.- Returns:
- the AzureVmWorkloadItem object itself.
-
withServerName
public AzureVmWorkloadSqlInstanceWorkloadItem withServerName(String serverName)
Set the serverName property: Host/Cluster Name for instance or AG.- Overrides:
withServerName
in classAzureVmWorkloadItem
- Parameters:
serverName
- the serverName value to set.- Returns:
- the AzureVmWorkloadItem object itself.
-
withIsAutoProtectable
public AzureVmWorkloadSqlInstanceWorkloadItem withIsAutoProtectable(Boolean isAutoProtectable)
Set the isAutoProtectable property: Indicates if workload item is auto-protectable.- Overrides:
withIsAutoProtectable
in classAzureVmWorkloadItem
- Parameters:
isAutoProtectable
- the isAutoProtectable value to set.- Returns:
- the AzureVmWorkloadItem object itself.
-
withSubinquireditemcount
public AzureVmWorkloadSqlInstanceWorkloadItem withSubinquireditemcount(Integer subinquireditemcount)
Set the subinquireditemcount property: For instance or AG, indicates number of DB's present.- Overrides:
withSubinquireditemcount
in classAzureVmWorkloadItem
- Parameters:
subinquireditemcount
- the subinquireditemcount value to set.- Returns:
- the AzureVmWorkloadItem object itself.
-
withSubWorkloadItemCount
public AzureVmWorkloadSqlInstanceWorkloadItem withSubWorkloadItemCount(Integer subWorkloadItemCount)
Set the subWorkloadItemCount property: For instance or AG, indicates number of DB's to be protected.- Overrides:
withSubWorkloadItemCount
in classAzureVmWorkloadItem
- Parameters:
subWorkloadItemCount
- the subWorkloadItemCount value to set.- Returns:
- the AzureVmWorkloadItem object itself.
-
withBackupManagementType
public AzureVmWorkloadSqlInstanceWorkloadItem withBackupManagementType(String backupManagementType)
Set the backupManagementType property: Type of backup management to backup an item.- Overrides:
withBackupManagementType
in classAzureVmWorkloadItem
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the WorkloadItem object itself.
-
withWorkloadType
public AzureVmWorkloadSqlInstanceWorkloadItem withWorkloadType(String workloadType)
Set the workloadType property: Type of workload for the backup management.- Overrides:
withWorkloadType
in classAzureVmWorkloadItem
- Parameters:
workloadType
- the workloadType value to set.- Returns:
- the WorkloadItem object itself.
-
withFriendlyName
public AzureVmWorkloadSqlInstanceWorkloadItem withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of the backup item.- Overrides:
withFriendlyName
in classAzureVmWorkloadItem
- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the WorkloadItem object itself.
-
withProtectionState
public AzureVmWorkloadSqlInstanceWorkloadItem withProtectionState(ProtectionStatus protectionState)
Set the protectionState property: State of the back up item.- Overrides:
withProtectionState
in classAzureVmWorkloadItem
- Parameters:
protectionState
- the protectionState value to set.- Returns:
- the WorkloadItem object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classAzureVmWorkloadItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-