All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.recoveryservices.outputs.AzureIaaSComputeVMProtectedItemResponse Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.recoveryservices.outputs;

import com.pulumi.azurenative.recoveryservices.outputs.AzureIaaSVMHealthDetailsResponse;
import com.pulumi.azurenative.recoveryservices.outputs.AzureIaaSVMProtectedItemExtendedInfoResponse;
import com.pulumi.azurenative.recoveryservices.outputs.ExtendedPropertiesResponse;
import com.pulumi.azurenative.recoveryservices.outputs.KPIResourceHealthDetailsResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AzureIaaSComputeVMProtectedItemResponse {
    /**
     * @return Type of backup management for the backed up item.
     * 
     */
    private String backupManagementType;
    /**
     * @return Name of the backup set the backup item belongs to
     * 
     */
    private @Nullable String backupSetName;
    /**
     * @return Unique name of container
     * 
     */
    private @Nullable String containerName;
    /**
     * @return Create mode to indicate recovery of existing soft deleted data source or creation of new data source.
     * 
     */
    private @Nullable String createMode;
    /**
     * @return Time for deferred deletion in UTC
     * 
     */
    private @Nullable String deferredDeleteTimeInUTC;
    /**
     * @return Time remaining before the DS marked for deferred delete is permanently deleted
     * 
     */
    private @Nullable String deferredDeleteTimeRemaining;
    /**
     * @return Additional information for this backup item.
     * 
     */
    private @Nullable AzureIaaSVMProtectedItemExtendedInfoResponse extendedInfo;
    /**
     * @return Extended Properties for Azure IaasVM Backup.
     * 
     */
    private @Nullable ExtendedPropertiesResponse extendedProperties;
    /**
     * @return Friendly name of the VM represented by this backup item.
     * 
     */
    private String friendlyName;
    /**
     * @return Health details on this backup item.
     * 
     */
    private @Nullable List healthDetails;
    /**
     * @return Health status of protected item.
     * 
     */
    private String healthStatus;
    /**
     * @return Flag to identify whether datasource is protected in archive
     * 
     */
    private @Nullable Boolean isArchiveEnabled;
    /**
     * @return Flag to identify whether the deferred deleted DS is to be purged soon
     * 
     */
    private @Nullable Boolean isDeferredDeleteScheduleUpcoming;
    /**
     * @return Flag to identify that deferred deleted DS is to be moved into Pause state
     * 
     */
    private @Nullable Boolean isRehydrate;
    /**
     * @return Flag to identify whether the DS is scheduled for deferred delete
     * 
     */
    private @Nullable Boolean isScheduledForDeferredDelete;
    /**
     * @return Health details of different KPIs
     * 
     */
    private @Nullable Map kpisHealths;
    /**
     * @return Last backup operation status.
     * 
     */
    private @Nullable String lastBackupStatus;
    /**
     * @return Timestamp of the last backup operation on this backup item.
     * 
     */
    private String lastBackupTime;
    /**
     * @return Timestamp when the last (latest) backup copy was created for this backup item.
     * 
     */
    private @Nullable String lastRecoveryPoint;
    /**
     * @return ID of the backup policy with which this item is backed up.
     * 
     */
    private @Nullable String policyId;
    /**
     * @return Name of the policy used for protection
     * 
     */
    private @Nullable String policyName;
    /**
     * @return Data ID of the protected item.
     * 
     */
    private String protectedItemDataId;
    /**
     * @return backup item type.
     * Expected value is 'Microsoft.Compute/virtualMachines'.
     * 
     */
    private String protectedItemType;
    /**
     * @return Backup state of this backup item.
     * 
     */
    private @Nullable String protectionState;
    /**
     * @return Backup status of this backup item.
     * 
     */
    private @Nullable String protectionStatus;
    /**
     * @return ResourceGuardOperationRequests on which LAC check will be performed
     * 
     */
    private @Nullable List resourceGuardOperationRequests;
    /**
     * @return Soft delete retention period in days
     * 
     */
    private @Nullable Integer softDeleteRetentionPeriodInDays;
    /**
     * @return ARM ID of the resource to be backed up.
     * 
     */
    private @Nullable String sourceResourceId;
    /**
     * @return ID of the vault which protects this item
     * 
     */
    private String vaultId;
    /**
     * @return Fully qualified ARM ID of the virtual machine represented by this item.
     * 
     */
    private String virtualMachineId;
    /**
     * @return Type of workload this item represents.
     * 
     */
    private String workloadType;

    private AzureIaaSComputeVMProtectedItemResponse() {}
    /**
     * @return Type of backup management for the backed up item.
     * 
     */
    public String backupManagementType() {
        return this.backupManagementType;
    }
    /**
     * @return Name of the backup set the backup item belongs to
     * 
     */
    public Optional backupSetName() {
        return Optional.ofNullable(this.backupSetName);
    }
    /**
     * @return Unique name of container
     * 
     */
    public Optional containerName() {
        return Optional.ofNullable(this.containerName);
    }
    /**
     * @return Create mode to indicate recovery of existing soft deleted data source or creation of new data source.
     * 
     */
    public Optional createMode() {
        return Optional.ofNullable(this.createMode);
    }
    /**
     * @return Time for deferred deletion in UTC
     * 
     */
    public Optional deferredDeleteTimeInUTC() {
        return Optional.ofNullable(this.deferredDeleteTimeInUTC);
    }
    /**
     * @return Time remaining before the DS marked for deferred delete is permanently deleted
     * 
     */
    public Optional deferredDeleteTimeRemaining() {
        return Optional.ofNullable(this.deferredDeleteTimeRemaining);
    }
    /**
     * @return Additional information for this backup item.
     * 
     */
    public Optional extendedInfo() {
        return Optional.ofNullable(this.extendedInfo);
    }
    /**
     * @return Extended Properties for Azure IaasVM Backup.
     * 
     */
    public Optional extendedProperties() {
        return Optional.ofNullable(this.extendedProperties);
    }
    /**
     * @return Friendly name of the VM represented by this backup item.
     * 
     */
    public String friendlyName() {
        return this.friendlyName;
    }
    /**
     * @return Health details on this backup item.
     * 
     */
    public List healthDetails() {
        return this.healthDetails == null ? List.of() : this.healthDetails;
    }
    /**
     * @return Health status of protected item.
     * 
     */
    public String healthStatus() {
        return this.healthStatus;
    }
    /**
     * @return Flag to identify whether datasource is protected in archive
     * 
     */
    public Optional isArchiveEnabled() {
        return Optional.ofNullable(this.isArchiveEnabled);
    }
    /**
     * @return Flag to identify whether the deferred deleted DS is to be purged soon
     * 
     */
    public Optional isDeferredDeleteScheduleUpcoming() {
        return Optional.ofNullable(this.isDeferredDeleteScheduleUpcoming);
    }
    /**
     * @return Flag to identify that deferred deleted DS is to be moved into Pause state
     * 
     */
    public Optional isRehydrate() {
        return Optional.ofNullable(this.isRehydrate);
    }
    /**
     * @return Flag to identify whether the DS is scheduled for deferred delete
     * 
     */
    public Optional isScheduledForDeferredDelete() {
        return Optional.ofNullable(this.isScheduledForDeferredDelete);
    }
    /**
     * @return Health details of different KPIs
     * 
     */
    public Map kpisHealths() {
        return this.kpisHealths == null ? Map.of() : this.kpisHealths;
    }
    /**
     * @return Last backup operation status.
     * 
     */
    public Optional lastBackupStatus() {
        return Optional.ofNullable(this.lastBackupStatus);
    }
    /**
     * @return Timestamp of the last backup operation on this backup item.
     * 
     */
    public String lastBackupTime() {
        return this.lastBackupTime;
    }
    /**
     * @return Timestamp when the last (latest) backup copy was created for this backup item.
     * 
     */
    public Optional lastRecoveryPoint() {
        return Optional.ofNullable(this.lastRecoveryPoint);
    }
    /**
     * @return ID of the backup policy with which this item is backed up.
     * 
     */
    public Optional policyId() {
        return Optional.ofNullable(this.policyId);
    }
    /**
     * @return Name of the policy used for protection
     * 
     */
    public Optional policyName() {
        return Optional.ofNullable(this.policyName);
    }
    /**
     * @return Data ID of the protected item.
     * 
     */
    public String protectedItemDataId() {
        return this.protectedItemDataId;
    }
    /**
     * @return backup item type.
     * Expected value is 'Microsoft.Compute/virtualMachines'.
     * 
     */
    public String protectedItemType() {
        return this.protectedItemType;
    }
    /**
     * @return Backup state of this backup item.
     * 
     */
    public Optional protectionState() {
        return Optional.ofNullable(this.protectionState);
    }
    /**
     * @return Backup status of this backup item.
     * 
     */
    public Optional protectionStatus() {
        return Optional.ofNullable(this.protectionStatus);
    }
    /**
     * @return ResourceGuardOperationRequests on which LAC check will be performed
     * 
     */
    public List resourceGuardOperationRequests() {
        return this.resourceGuardOperationRequests == null ? List.of() : this.resourceGuardOperationRequests;
    }
    /**
     * @return Soft delete retention period in days
     * 
     */
    public Optional softDeleteRetentionPeriodInDays() {
        return Optional.ofNullable(this.softDeleteRetentionPeriodInDays);
    }
    /**
     * @return ARM ID of the resource to be backed up.
     * 
     */
    public Optional sourceResourceId() {
        return Optional.ofNullable(this.sourceResourceId);
    }
    /**
     * @return ID of the vault which protects this item
     * 
     */
    public String vaultId() {
        return this.vaultId;
    }
    /**
     * @return Fully qualified ARM ID of the virtual machine represented by this item.
     * 
     */
    public String virtualMachineId() {
        return this.virtualMachineId;
    }
    /**
     * @return Type of workload this item represents.
     * 
     */
    public String workloadType() {
        return this.workloadType;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(AzureIaaSComputeVMProtectedItemResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String backupManagementType;
        private @Nullable String backupSetName;
        private @Nullable String containerName;
        private @Nullable String createMode;
        private @Nullable String deferredDeleteTimeInUTC;
        private @Nullable String deferredDeleteTimeRemaining;
        private @Nullable AzureIaaSVMProtectedItemExtendedInfoResponse extendedInfo;
        private @Nullable ExtendedPropertiesResponse extendedProperties;
        private String friendlyName;
        private @Nullable List healthDetails;
        private String healthStatus;
        private @Nullable Boolean isArchiveEnabled;
        private @Nullable Boolean isDeferredDeleteScheduleUpcoming;
        private @Nullable Boolean isRehydrate;
        private @Nullable Boolean isScheduledForDeferredDelete;
        private @Nullable Map kpisHealths;
        private @Nullable String lastBackupStatus;
        private String lastBackupTime;
        private @Nullable String lastRecoveryPoint;
        private @Nullable String policyId;
        private @Nullable String policyName;
        private String protectedItemDataId;
        private String protectedItemType;
        private @Nullable String protectionState;
        private @Nullable String protectionStatus;
        private @Nullable List resourceGuardOperationRequests;
        private @Nullable Integer softDeleteRetentionPeriodInDays;
        private @Nullable String sourceResourceId;
        private String vaultId;
        private String virtualMachineId;
        private String workloadType;
        public Builder() {}
        public Builder(AzureIaaSComputeVMProtectedItemResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.backupManagementType = defaults.backupManagementType;
    	      this.backupSetName = defaults.backupSetName;
    	      this.containerName = defaults.containerName;
    	      this.createMode = defaults.createMode;
    	      this.deferredDeleteTimeInUTC = defaults.deferredDeleteTimeInUTC;
    	      this.deferredDeleteTimeRemaining = defaults.deferredDeleteTimeRemaining;
    	      this.extendedInfo = defaults.extendedInfo;
    	      this.extendedProperties = defaults.extendedProperties;
    	      this.friendlyName = defaults.friendlyName;
    	      this.healthDetails = defaults.healthDetails;
    	      this.healthStatus = defaults.healthStatus;
    	      this.isArchiveEnabled = defaults.isArchiveEnabled;
    	      this.isDeferredDeleteScheduleUpcoming = defaults.isDeferredDeleteScheduleUpcoming;
    	      this.isRehydrate = defaults.isRehydrate;
    	      this.isScheduledForDeferredDelete = defaults.isScheduledForDeferredDelete;
    	      this.kpisHealths = defaults.kpisHealths;
    	      this.lastBackupStatus = defaults.lastBackupStatus;
    	      this.lastBackupTime = defaults.lastBackupTime;
    	      this.lastRecoveryPoint = defaults.lastRecoveryPoint;
    	      this.policyId = defaults.policyId;
    	      this.policyName = defaults.policyName;
    	      this.protectedItemDataId = defaults.protectedItemDataId;
    	      this.protectedItemType = defaults.protectedItemType;
    	      this.protectionState = defaults.protectionState;
    	      this.protectionStatus = defaults.protectionStatus;
    	      this.resourceGuardOperationRequests = defaults.resourceGuardOperationRequests;
    	      this.softDeleteRetentionPeriodInDays = defaults.softDeleteRetentionPeriodInDays;
    	      this.sourceResourceId = defaults.sourceResourceId;
    	      this.vaultId = defaults.vaultId;
    	      this.virtualMachineId = defaults.virtualMachineId;
    	      this.workloadType = defaults.workloadType;
        }

        @CustomType.Setter
        public Builder backupManagementType(String backupManagementType) {
            if (backupManagementType == null) {
              throw new MissingRequiredPropertyException("AzureIaaSComputeVMProtectedItemResponse", "backupManagementType");
            }
            this.backupManagementType = backupManagementType;
            return this;
        }
        @CustomType.Setter
        public Builder backupSetName(@Nullable String backupSetName) {

            this.backupSetName = backupSetName;
            return this;
        }
        @CustomType.Setter
        public Builder containerName(@Nullable String containerName) {

            this.containerName = containerName;
            return this;
        }
        @CustomType.Setter
        public Builder createMode(@Nullable String createMode) {

            this.createMode = createMode;
            return this;
        }
        @CustomType.Setter
        public Builder deferredDeleteTimeInUTC(@Nullable String deferredDeleteTimeInUTC) {

            this.deferredDeleteTimeInUTC = deferredDeleteTimeInUTC;
            return this;
        }
        @CustomType.Setter
        public Builder deferredDeleteTimeRemaining(@Nullable String deferredDeleteTimeRemaining) {

            this.deferredDeleteTimeRemaining = deferredDeleteTimeRemaining;
            return this;
        }
        @CustomType.Setter
        public Builder extendedInfo(@Nullable AzureIaaSVMProtectedItemExtendedInfoResponse extendedInfo) {

            this.extendedInfo = extendedInfo;
            return this;
        }
        @CustomType.Setter
        public Builder extendedProperties(@Nullable ExtendedPropertiesResponse extendedProperties) {

            this.extendedProperties = extendedProperties;
            return this;
        }
        @CustomType.Setter
        public Builder friendlyName(String friendlyName) {
            if (friendlyName == null) {
              throw new MissingRequiredPropertyException("AzureIaaSComputeVMProtectedItemResponse", "friendlyName");
            }
            this.friendlyName = friendlyName;
            return this;
        }
        @CustomType.Setter
        public Builder healthDetails(@Nullable List healthDetails) {

            this.healthDetails = healthDetails;
            return this;
        }
        public Builder healthDetails(AzureIaaSVMHealthDetailsResponse... healthDetails) {
            return healthDetails(List.of(healthDetails));
        }
        @CustomType.Setter
        public Builder healthStatus(String healthStatus) {
            if (healthStatus == null) {
              throw new MissingRequiredPropertyException("AzureIaaSComputeVMProtectedItemResponse", "healthStatus");
            }
            this.healthStatus = healthStatus;
            return this;
        }
        @CustomType.Setter
        public Builder isArchiveEnabled(@Nullable Boolean isArchiveEnabled) {

            this.isArchiveEnabled = isArchiveEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder isDeferredDeleteScheduleUpcoming(@Nullable Boolean isDeferredDeleteScheduleUpcoming) {

            this.isDeferredDeleteScheduleUpcoming = isDeferredDeleteScheduleUpcoming;
            return this;
        }
        @CustomType.Setter
        public Builder isRehydrate(@Nullable Boolean isRehydrate) {

            this.isRehydrate = isRehydrate;
            return this;
        }
        @CustomType.Setter
        public Builder isScheduledForDeferredDelete(@Nullable Boolean isScheduledForDeferredDelete) {

            this.isScheduledForDeferredDelete = isScheduledForDeferredDelete;
            return this;
        }
        @CustomType.Setter
        public Builder kpisHealths(@Nullable Map kpisHealths) {

            this.kpisHealths = kpisHealths;
            return this;
        }
        @CustomType.Setter
        public Builder lastBackupStatus(@Nullable String lastBackupStatus) {

            this.lastBackupStatus = lastBackupStatus;
            return this;
        }
        @CustomType.Setter
        public Builder lastBackupTime(String lastBackupTime) {
            if (lastBackupTime == null) {
              throw new MissingRequiredPropertyException("AzureIaaSComputeVMProtectedItemResponse", "lastBackupTime");
            }
            this.lastBackupTime = lastBackupTime;
            return this;
        }
        @CustomType.Setter
        public Builder lastRecoveryPoint(@Nullable String lastRecoveryPoint) {

            this.lastRecoveryPoint = lastRecoveryPoint;
            return this;
        }
        @CustomType.Setter
        public Builder policyId(@Nullable String policyId) {

            this.policyId = policyId;
            return this;
        }
        @CustomType.Setter
        public Builder policyName(@Nullable String policyName) {

            this.policyName = policyName;
            return this;
        }
        @CustomType.Setter
        public Builder protectedItemDataId(String protectedItemDataId) {
            if (protectedItemDataId == null) {
              throw new MissingRequiredPropertyException("AzureIaaSComputeVMProtectedItemResponse", "protectedItemDataId");
            }
            this.protectedItemDataId = protectedItemDataId;
            return this;
        }
        @CustomType.Setter
        public Builder protectedItemType(String protectedItemType) {
            if (protectedItemType == null) {
              throw new MissingRequiredPropertyException("AzureIaaSComputeVMProtectedItemResponse", "protectedItemType");
            }
            this.protectedItemType = protectedItemType;
            return this;
        }
        @CustomType.Setter
        public Builder protectionState(@Nullable String protectionState) {

            this.protectionState = protectionState;
            return this;
        }
        @CustomType.Setter
        public Builder protectionStatus(@Nullable String protectionStatus) {

            this.protectionStatus = protectionStatus;
            return this;
        }
        @CustomType.Setter
        public Builder resourceGuardOperationRequests(@Nullable List resourceGuardOperationRequests) {

            this.resourceGuardOperationRequests = resourceGuardOperationRequests;
            return this;
        }
        public Builder resourceGuardOperationRequests(String... resourceGuardOperationRequests) {
            return resourceGuardOperationRequests(List.of(resourceGuardOperationRequests));
        }
        @CustomType.Setter
        public Builder softDeleteRetentionPeriodInDays(@Nullable Integer softDeleteRetentionPeriodInDays) {

            this.softDeleteRetentionPeriodInDays = softDeleteRetentionPeriodInDays;
            return this;
        }
        @CustomType.Setter
        public Builder sourceResourceId(@Nullable String sourceResourceId) {

            this.sourceResourceId = sourceResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder vaultId(String vaultId) {
            if (vaultId == null) {
              throw new MissingRequiredPropertyException("AzureIaaSComputeVMProtectedItemResponse", "vaultId");
            }
            this.vaultId = vaultId;
            return this;
        }
        @CustomType.Setter
        public Builder virtualMachineId(String virtualMachineId) {
            if (virtualMachineId == null) {
              throw new MissingRequiredPropertyException("AzureIaaSComputeVMProtectedItemResponse", "virtualMachineId");
            }
            this.virtualMachineId = virtualMachineId;
            return this;
        }
        @CustomType.Setter
        public Builder workloadType(String workloadType) {
            if (workloadType == null) {
              throw new MissingRequiredPropertyException("AzureIaaSComputeVMProtectedItemResponse", "workloadType");
            }
            this.workloadType = workloadType;
            return this;
        }
        public AzureIaaSComputeVMProtectedItemResponse build() {
            final var _resultValue = new AzureIaaSComputeVMProtectedItemResponse();
            _resultValue.backupManagementType = backupManagementType;
            _resultValue.backupSetName = backupSetName;
            _resultValue.containerName = containerName;
            _resultValue.createMode = createMode;
            _resultValue.deferredDeleteTimeInUTC = deferredDeleteTimeInUTC;
            _resultValue.deferredDeleteTimeRemaining = deferredDeleteTimeRemaining;
            _resultValue.extendedInfo = extendedInfo;
            _resultValue.extendedProperties = extendedProperties;
            _resultValue.friendlyName = friendlyName;
            _resultValue.healthDetails = healthDetails;
            _resultValue.healthStatus = healthStatus;
            _resultValue.isArchiveEnabled = isArchiveEnabled;
            _resultValue.isDeferredDeleteScheduleUpcoming = isDeferredDeleteScheduleUpcoming;
            _resultValue.isRehydrate = isRehydrate;
            _resultValue.isScheduledForDeferredDelete = isScheduledForDeferredDelete;
            _resultValue.kpisHealths = kpisHealths;
            _resultValue.lastBackupStatus = lastBackupStatus;
            _resultValue.lastBackupTime = lastBackupTime;
            _resultValue.lastRecoveryPoint = lastRecoveryPoint;
            _resultValue.policyId = policyId;
            _resultValue.policyName = policyName;
            _resultValue.protectedItemDataId = protectedItemDataId;
            _resultValue.protectedItemType = protectedItemType;
            _resultValue.protectionState = protectionState;
            _resultValue.protectionStatus = protectionStatus;
            _resultValue.resourceGuardOperationRequests = resourceGuardOperationRequests;
            _resultValue.softDeleteRetentionPeriodInDays = softDeleteRetentionPeriodInDays;
            _resultValue.sourceResourceId = sourceResourceId;
            _resultValue.vaultId = vaultId;
            _resultValue.virtualMachineId = virtualMachineId;
            _resultValue.workloadType = workloadType;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy