Class AzureVmWorkloadSqlAvailabilityGroupProtectableItem
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadProtectableItem
com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectableItem
com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlAvailabilityGroupProtectableItem
public final class AzureVmWorkloadSqlAvailabilityGroupProtectableItem
extends AzureVmWorkloadProtectableItem
Azure VM workload-specific protectable item representing SQL Availability Group.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AzureVmWorkloadSqlAvailabilityGroupProtectableItem class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Validates the instance.withBackupManagementType
(String backupManagementType) Set the backupManagementType property: Type of backup management to backup an item.withFriendlyName
(String friendlyName) Set the friendlyName property: Friendly name of the backup item.withIsAutoProtectable
(Boolean isAutoProtectable) Set the isAutoProtectable property: Indicates if protectable item is auto-protectable.withIsAutoProtected
(Boolean isAutoProtected) Set the isAutoProtected property: Indicates if protectable item is auto-protected.withParentName
(String parentName) Set the parentName property: Name for instance or AG.withParentUniqueName
(String parentUniqueName) Set the parentUniqueName property: Parent Unique Name is added to provide the service formatted URI Name of the Parent Only Applicable for data bases where the parent would be either Instance or a SQL AG.withPrebackupvalidation
(PreBackupValidation prebackupvalidation) Set the prebackupvalidation property: Pre-backup validation for protectable objects.withProtectionState
(ProtectionStatus protectionState) Set the protectionState property: State of the back up item.withServerName
(String serverName) Set the serverName property: Host/Cluster Name for instance or AG.withSubinquireditemcount
(Integer subinquireditemcount) Set the subinquireditemcount property: For instance or AG, indicates number of DB's present.withSubprotectableitemcount
(Integer subprotectableitemcount) Set the subprotectableitemcount property: For instance or AG, indicates number of DB's to be protected.withWorkloadType
(String workloadType) Set the workloadType property: Type of workload for the backup management.Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectableItem
isAutoProtectable, isAutoProtected, parentName, parentUniqueName, prebackupvalidation, serverName, subinquireditemcount, subprotectableitemcount
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadProtectableItem
backupManagementType, friendlyName, protectionState, workloadType
-
Constructor Details
-
AzureVmWorkloadSqlAvailabilityGroupProtectableItem
public AzureVmWorkloadSqlAvailabilityGroupProtectableItem()Creates an instance of AzureVmWorkloadSqlAvailabilityGroupProtectableItem class.
-
-
Method Details
-
withParentName
Set the parentName property: Name for instance or AG.- Overrides:
withParentName
in classAzureVmWorkloadProtectableItem
- Parameters:
parentName
- the parentName value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withParentUniqueName
public AzureVmWorkloadSqlAvailabilityGroupProtectableItem withParentUniqueName(String parentUniqueName) Set the parentUniqueName property: Parent Unique Name is added to provide the service formatted URI Name of the Parent Only Applicable for data bases where the parent would be either Instance or a SQL AG.- Overrides:
withParentUniqueName
in classAzureVmWorkloadProtectableItem
- Parameters:
parentUniqueName
- the parentUniqueName value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withServerName
Set the serverName property: Host/Cluster Name for instance or AG.- Overrides:
withServerName
in classAzureVmWorkloadProtectableItem
- Parameters:
serverName
- the serverName value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withIsAutoProtectable
public AzureVmWorkloadSqlAvailabilityGroupProtectableItem withIsAutoProtectable(Boolean isAutoProtectable) Set the isAutoProtectable property: Indicates if protectable item is auto-protectable.- Overrides:
withIsAutoProtectable
in classAzureVmWorkloadProtectableItem
- Parameters:
isAutoProtectable
- the isAutoProtectable value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withIsAutoProtected
public AzureVmWorkloadSqlAvailabilityGroupProtectableItem withIsAutoProtected(Boolean isAutoProtected) Set the isAutoProtected property: Indicates if protectable item is auto-protected.- Overrides:
withIsAutoProtected
in classAzureVmWorkloadProtectableItem
- Parameters:
isAutoProtected
- the isAutoProtected value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withSubinquireditemcount
public AzureVmWorkloadSqlAvailabilityGroupProtectableItem withSubinquireditemcount(Integer subinquireditemcount) Set the subinquireditemcount property: For instance or AG, indicates number of DB's present.- Overrides:
withSubinquireditemcount
in classAzureVmWorkloadProtectableItem
- Parameters:
subinquireditemcount
- the subinquireditemcount value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withSubprotectableitemcount
public AzureVmWorkloadSqlAvailabilityGroupProtectableItem withSubprotectableitemcount(Integer subprotectableitemcount) Set the subprotectableitemcount property: For instance or AG, indicates number of DB's to be protected.- Overrides:
withSubprotectableitemcount
in classAzureVmWorkloadProtectableItem
- Parameters:
subprotectableitemcount
- the subprotectableitemcount value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withPrebackupvalidation
public AzureVmWorkloadSqlAvailabilityGroupProtectableItem withPrebackupvalidation(PreBackupValidation prebackupvalidation) Set the prebackupvalidation property: Pre-backup validation for protectable objects.- Overrides:
withPrebackupvalidation
in classAzureVmWorkloadProtectableItem
- Parameters:
prebackupvalidation
- the prebackupvalidation value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withBackupManagementType
public AzureVmWorkloadSqlAvailabilityGroupProtectableItem withBackupManagementType(String backupManagementType) Set the backupManagementType property: Type of backup management to backup an item.- Overrides:
withBackupManagementType
in classAzureVmWorkloadProtectableItem
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
withWorkloadType
Set the workloadType property: Type of workload for the backup management.- Overrides:
withWorkloadType
in classAzureVmWorkloadProtectableItem
- Parameters:
workloadType
- the workloadType value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
withFriendlyName
Set the friendlyName property: Friendly name of the backup item.- Overrides:
withFriendlyName
in classAzureVmWorkloadProtectableItem
- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
withProtectionState
public AzureVmWorkloadSqlAvailabilityGroupProtectableItem withProtectionState(ProtectionStatus protectionState) Set the protectionState property: State of the back up item.- Overrides:
withProtectionState
in classAzureVmWorkloadProtectableItem
- Parameters:
protectionState
- the protectionState value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classAzureVmWorkloadProtectableItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-