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