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