Class ProtectionIntent

    • Constructor Detail

      • ProtectionIntent

        public ProtectionIntent()
    • Method Detail

      • backupManagementType

        public BackupManagementType backupManagementType()
        Get the backupManagementType property: Type of backup management for the backed up item.
        Returns:
        the backupManagementType value.
      • withBackupManagementType

        public ProtectionIntent withBackupManagementType​(BackupManagementType backupManagementType)
        Set the backupManagementType property: Type of backup management for the backed up item.
        Parameters:
        backupManagementType - the backupManagementType value to set.
        Returns:
        the ProtectionIntent object itself.
      • sourceResourceId

        public String sourceResourceId()
        Get the sourceResourceId property: ARM ID of the resource to be backed up.
        Returns:
        the sourceResourceId value.
      • withSourceResourceId

        public ProtectionIntent withSourceResourceId​(String sourceResourceId)
        Set the sourceResourceId property: ARM ID of the resource to be backed up.
        Parameters:
        sourceResourceId - the sourceResourceId value to set.
        Returns:
        the ProtectionIntent object itself.
      • itemId

        public String itemId()
        Get the itemId property: ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId.
        Returns:
        the itemId value.
      • withItemId

        public ProtectionIntent withItemId​(String itemId)
        Set the itemId property: ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId.
        Parameters:
        itemId - the itemId value to set.
        Returns:
        the ProtectionIntent object itself.
      • policyId

        public String policyId()
        Get the policyId property: ID of the backup policy with which this item is backed up.
        Returns:
        the policyId value.
      • withPolicyId

        public ProtectionIntent withPolicyId​(String policyId)
        Set the policyId property: ID of the backup policy with which this item is backed up.
        Parameters:
        policyId - the policyId value to set.
        Returns:
        the ProtectionIntent object itself.
      • protectionState

        public ProtectionStatus protectionState()
        Get the protectionState property: Backup state of this backup item.
        Returns:
        the protectionState value.
      • withProtectionState

        public ProtectionIntent withProtectionState​(ProtectionStatus protectionState)
        Set the protectionState property: Backup state of this backup item.
        Parameters:
        protectionState - the protectionState value to set.
        Returns:
        the ProtectionIntent object itself.
      • validate

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