Class AzureSqlagWorkloadContainerProtectionContainer
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainer
com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadContainer
com.azure.resourcemanager.recoveryservicesbackup.models.AzureSqlagWorkloadContainerProtectionContainer
Container for SQL workloads under SQL Availability Group.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AzureSqlagWorkloadContainerProtectionContainer class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Validates the instance.withBackupManagementType
(BackupManagementType backupManagementType) Set the backupManagementType property: Type of backup management for the container.withExtendedInfo
(AzureWorkloadContainerExtendedInfo extendedInfo) Set the extendedInfo property: Additional details of a workload container.withFriendlyName
(String friendlyName) Set the friendlyName property: Friendly name of the container.withHealthStatus
(String healthStatus) Set the healthStatus property: Status of health of the container.withLastUpdatedTime
(OffsetDateTime lastUpdatedTime) Set the lastUpdatedTime property: Time stamp when this container was updated.withOperationType
(OperationType operationType) Set the operationType property: Re-Do Operation.withProtectableObjectType
(String protectableObjectType) Set the protectableObjectType property: Type of the protectable object associated with this container.withRegistrationStatus
(String registrationStatus) Set the registrationStatus property: Status of registration of the container with the Recovery Services Vault.withSourceResourceId
(String sourceResourceId) Set the sourceResourceId property: ARM ID of the virtual machine represented by this Azure Workload Container.withWorkloadType
(WorkloadType workloadType) Set the workloadType property: Workload type for which registration was sent.Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadContainer
extendedInfo, lastUpdatedTime, operationType, sourceResourceId, workloadType
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainer
backupManagementType, friendlyName, healthStatus, protectableObjectType, registrationStatus
-
Constructor Details
-
AzureSqlagWorkloadContainerProtectionContainer
public AzureSqlagWorkloadContainerProtectionContainer()Creates an instance of AzureSqlagWorkloadContainerProtectionContainer class.
-
-
Method Details
-
withSourceResourceId
Set the sourceResourceId property: ARM ID of the virtual machine represented by this Azure Workload Container.- Overrides:
withSourceResourceId
in classAzureWorkloadContainer
- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the AzureWorkloadContainer object itself.
-
withLastUpdatedTime
public AzureSqlagWorkloadContainerProtectionContainer withLastUpdatedTime(OffsetDateTime lastUpdatedTime) Set the lastUpdatedTime property: Time stamp when this container was updated.- Overrides:
withLastUpdatedTime
in classAzureWorkloadContainer
- Parameters:
lastUpdatedTime
- the lastUpdatedTime value to set.- Returns:
- the AzureWorkloadContainer object itself.
-
withExtendedInfo
public AzureSqlagWorkloadContainerProtectionContainer withExtendedInfo(AzureWorkloadContainerExtendedInfo extendedInfo) Set the extendedInfo property: Additional details of a workload container.- Overrides:
withExtendedInfo
in classAzureWorkloadContainer
- Parameters:
extendedInfo
- the extendedInfo value to set.- Returns:
- the AzureWorkloadContainer object itself.
-
withWorkloadType
Set the workloadType property: Workload type for which registration was sent.- Overrides:
withWorkloadType
in classAzureWorkloadContainer
- Parameters:
workloadType
- the workloadType value to set.- Returns:
- the AzureWorkloadContainer object itself.
-
withOperationType
public AzureSqlagWorkloadContainerProtectionContainer withOperationType(OperationType operationType) Set the operationType property: Re-Do Operation.- Overrides:
withOperationType
in classAzureWorkloadContainer
- Parameters:
operationType
- the operationType value to set.- Returns:
- the AzureWorkloadContainer object itself.
-
withFriendlyName
Set the friendlyName property: Friendly name of the container.- Overrides:
withFriendlyName
in classAzureWorkloadContainer
- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the ProtectionContainer object itself.
-
withBackupManagementType
public AzureSqlagWorkloadContainerProtectionContainer withBackupManagementType(BackupManagementType backupManagementType) Set the backupManagementType property: Type of backup management for the container.- Overrides:
withBackupManagementType
in classAzureWorkloadContainer
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the ProtectionContainer object itself.
-
withRegistrationStatus
public AzureSqlagWorkloadContainerProtectionContainer withRegistrationStatus(String registrationStatus) Set the registrationStatus property: Status of registration of the container with the Recovery Services Vault.- Overrides:
withRegistrationStatus
in classAzureWorkloadContainer
- Parameters:
registrationStatus
- the registrationStatus value to set.- Returns:
- the ProtectionContainer object itself.
-
withHealthStatus
Set the healthStatus property: Status of health of the container.- Overrides:
withHealthStatus
in classAzureWorkloadContainer
- Parameters:
healthStatus
- the healthStatus value to set.- Returns:
- the ProtectionContainer object itself.
-
withProtectableObjectType
public AzureSqlagWorkloadContainerProtectionContainer withProtectableObjectType(String protectableObjectType) Set the protectableObjectType property: Type of the protectable object associated with this container.- Overrides:
withProtectableObjectType
in classAzureWorkloadContainer
- Parameters:
protectableObjectType
- the protectableObjectType value to set.- Returns:
- the ProtectionContainer object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classAzureWorkloadContainer
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-