Class ProtectionContainer
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainer
- Direct Known Subclasses:
AzureSqlContainer
,AzureStorageContainer
,AzureWorkloadContainer
,DpmContainer
,GenericContainer
,IaaSvmContainer
,MabContainer
Base class for container with backup items. Containers with specific workloads are derived from this class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the backupManagementType property: Type of backup management for the container.Get the friendlyName property: Friendly name of the container.Get the healthStatus property: Status of health of the container.Get the protectableObjectType property: Type of the protectable object associated with this container.Get the registrationStatus property: Status of registration of the container with the Recovery Services Vault.void
validate()
Validates the instance.withBackupManagementType
(BackupManagementType backupManagementType) Set the backupManagementType property: Type of backup management for the 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.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.
-
Constructor Details
-
ProtectionContainer
public ProtectionContainer()Creates an instance of ProtectionContainer class.
-
-
Method Details
-
friendlyName
Get the friendlyName property: Friendly name of the container.- Returns:
- the friendlyName value.
-
withFriendlyName
Set the friendlyName property: Friendly name of the container.- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the ProtectionContainer object itself.
-
backupManagementType
Get the backupManagementType property: Type of backup management for the container.- Returns:
- the backupManagementType value.
-
withBackupManagementType
Set the backupManagementType property: Type of backup management for the container.- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the ProtectionContainer object itself.
-
registrationStatus
Get the registrationStatus property: Status of registration of the container with the Recovery Services Vault.- Returns:
- the registrationStatus value.
-
withRegistrationStatus
Set the registrationStatus property: Status of registration of the container with the Recovery Services Vault.- Parameters:
registrationStatus
- the registrationStatus value to set.- Returns:
- the ProtectionContainer object itself.
-
healthStatus
Get the healthStatus property: Status of health of the container.- Returns:
- the healthStatus value.
-
withHealthStatus
Set the healthStatus property: Status of health of the container.- Parameters:
healthStatus
- the healthStatus value to set.- Returns:
- the ProtectionContainer object itself.
-
protectableObjectType
Get the protectableObjectType property: Type of the protectable object associated with this container.- Returns:
- the protectableObjectType value.
-
withProtectableObjectType
Set the protectableObjectType property: Type of the protectable object associated with this container.- Parameters:
protectableObjectType
- the protectableObjectType value to set.- Returns:
- the ProtectionContainer object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-