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 Details

    • AzureWorkloadContainer

      public AzureWorkloadContainer()
      Creates an instance of AzureWorkloadContainer class.
  • Method Details

    • 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 class ProtectionContainer
      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 class ProtectionContainer
      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 class ProtectionContainer
      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 class ProtectionContainer
      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 class ProtectionContainer
      Parameters:
      protectableObjectType - the protectableObjectType value to set.
      Returns:
      the ProtectionContainer object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ProtectionContainer
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.