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

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

There is a newer version: 2.78.0
Show newest version
// *** 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.AzureVmWorkloadProtectedItemExtendedInfoResponse;
import com.pulumi.azurenative.recoveryservices.outputs.DistributedNodesInfoResponse;
import com.pulumi.azurenative.recoveryservices.outputs.ErrorDetailResponse;
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 AzureVmWorkloadSAPAseDatabaseProtectedItemResponse {
    /**
     * @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 AzureVmWorkloadProtectedItemExtendedInfoResponse extendedInfo;
    /**
     * @return Friendly name of the DB represented by this backup item.
     * 
     */
    private String friendlyName;
    /**
     * @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 Error details in last backup
     * 
     */
    private @Nullable ErrorDetailResponse lastBackupErrorDetail;
    /**
     * @return Last backup operation status. Possible values: Healthy, Unhealthy.
     * 
     */
    private @Nullable String lastBackupStatus;
    /**
     * @return Timestamp of the last backup operation on this backup item.
     * 
     */
    private @Nullable String lastBackupTime;
    /**
     * @return Timestamp when the last (latest) backup copy was created for this backup item.
     * 
     */
    private @Nullable String lastRecoveryPoint;
    /**
     * @return List of the nodes in case of distributed container.
     * 
     */
    private @Nullable List nodesList;
    /**
     * @return Parent name of the DB such as Instance or Availability Group.
     * 
     */
    private @Nullable String parentName;
    /**
     * @return Parent type of protected item, example: for a DB, standalone server or distributed
     * 
     */
    private @Nullable String parentType;
    /**
     * @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 @Nullable String protectedItemDataSourceId;
    /**
     * @return Health status of the backup item, evaluated based on last heartbeat received
     * 
     */
    private @Nullable String protectedItemHealthStatus;
    /**
     * @return backup item type.
     * Expected value is 'AzureVmWorkloadSAPAseDatabase'.
     * 
     */
    private String protectedItemType;
    /**
     * @return Backup state of this backup item.
     * 
     */
    private @Nullable String protectionState;
    /**
     * @return Backup status of this backup item.
     * 
     */
    private String protectionStatus;
    /**
     * @return ResourceGuardOperationRequests on which LAC check will be performed
     * 
     */
    private @Nullable List resourceGuardOperationRequests;
    /**
     * @return Host/Cluster Name for instance or AG
     * 
     */
    private @Nullable String serverName;
    /**
     * @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 Type of workload this item represents.
     * 
     */
    private String workloadType;

    private AzureVmWorkloadSAPAseDatabaseProtectedItemResponse() {}
    /**
     * @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 Friendly name of the DB represented by this backup item.
     * 
     */
    public String friendlyName() {
        return this.friendlyName;
    }
    /**
     * @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 Error details in last backup
     * 
     */
    public Optional lastBackupErrorDetail() {
        return Optional.ofNullable(this.lastBackupErrorDetail);
    }
    /**
     * @return Last backup operation status. Possible values: Healthy, Unhealthy.
     * 
     */
    public Optional lastBackupStatus() {
        return Optional.ofNullable(this.lastBackupStatus);
    }
    /**
     * @return Timestamp of the last backup operation on this backup item.
     * 
     */
    public Optional lastBackupTime() {
        return Optional.ofNullable(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 List of the nodes in case of distributed container.
     * 
     */
    public List nodesList() {
        return this.nodesList == null ? List.of() : this.nodesList;
    }
    /**
     * @return Parent name of the DB such as Instance or Availability Group.
     * 
     */
    public Optional parentName() {
        return Optional.ofNullable(this.parentName);
    }
    /**
     * @return Parent type of protected item, example: for a DB, standalone server or distributed
     * 
     */
    public Optional parentType() {
        return Optional.ofNullable(this.parentType);
    }
    /**
     * @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 Optional protectedItemDataSourceId() {
        return Optional.ofNullable(this.protectedItemDataSourceId);
    }
    /**
     * @return Health status of the backup item, evaluated based on last heartbeat received
     * 
     */
    public Optional protectedItemHealthStatus() {
        return Optional.ofNullable(this.protectedItemHealthStatus);
    }
    /**
     * @return backup item type.
     * Expected value is 'AzureVmWorkloadSAPAseDatabase'.
     * 
     */
    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 String protectionStatus() {
        return this.protectionStatus;
    }
    /**
     * @return ResourceGuardOperationRequests on which LAC check will be performed
     * 
     */
    public List resourceGuardOperationRequests() {
        return this.resourceGuardOperationRequests == null ? List.of() : this.resourceGuardOperationRequests;
    }
    /**
     * @return Host/Cluster Name for instance or AG
     * 
     */
    public Optional serverName() {
        return Optional.ofNullable(this.serverName);
    }
    /**
     * @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 Type of workload this item represents.
     * 
     */
    public String workloadType() {
        return this.workloadType;
    }

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

    public static Builder builder(AzureVmWorkloadSAPAseDatabaseProtectedItemResponse 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 AzureVmWorkloadProtectedItemExtendedInfoResponse extendedInfo;
        private String friendlyName;
        private @Nullable Boolean isArchiveEnabled;
        private @Nullable Boolean isDeferredDeleteScheduleUpcoming;
        private @Nullable Boolean isRehydrate;
        private @Nullable Boolean isScheduledForDeferredDelete;
        private @Nullable Map kpisHealths;
        private @Nullable ErrorDetailResponse lastBackupErrorDetail;
        private @Nullable String lastBackupStatus;
        private @Nullable String lastBackupTime;
        private @Nullable String lastRecoveryPoint;
        private @Nullable List nodesList;
        private @Nullable String parentName;
        private @Nullable String parentType;
        private @Nullable String policyId;
        private @Nullable String policyName;
        private @Nullable String protectedItemDataSourceId;
        private @Nullable String protectedItemHealthStatus;
        private String protectedItemType;
        private @Nullable String protectionState;
        private String protectionStatus;
        private @Nullable List resourceGuardOperationRequests;
        private @Nullable String serverName;
        private @Nullable Integer softDeleteRetentionPeriodInDays;
        private @Nullable String sourceResourceId;
        private String vaultId;
        private String workloadType;
        public Builder() {}
        public Builder(AzureVmWorkloadSAPAseDatabaseProtectedItemResponse 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.friendlyName = defaults.friendlyName;
    	      this.isArchiveEnabled = defaults.isArchiveEnabled;
    	      this.isDeferredDeleteScheduleUpcoming = defaults.isDeferredDeleteScheduleUpcoming;
    	      this.isRehydrate = defaults.isRehydrate;
    	      this.isScheduledForDeferredDelete = defaults.isScheduledForDeferredDelete;
    	      this.kpisHealths = defaults.kpisHealths;
    	      this.lastBackupErrorDetail = defaults.lastBackupErrorDetail;
    	      this.lastBackupStatus = defaults.lastBackupStatus;
    	      this.lastBackupTime = defaults.lastBackupTime;
    	      this.lastRecoveryPoint = defaults.lastRecoveryPoint;
    	      this.nodesList = defaults.nodesList;
    	      this.parentName = defaults.parentName;
    	      this.parentType = defaults.parentType;
    	      this.policyId = defaults.policyId;
    	      this.policyName = defaults.policyName;
    	      this.protectedItemDataSourceId = defaults.protectedItemDataSourceId;
    	      this.protectedItemHealthStatus = defaults.protectedItemHealthStatus;
    	      this.protectedItemType = defaults.protectedItemType;
    	      this.protectionState = defaults.protectionState;
    	      this.protectionStatus = defaults.protectionStatus;
    	      this.resourceGuardOperationRequests = defaults.resourceGuardOperationRequests;
    	      this.serverName = defaults.serverName;
    	      this.softDeleteRetentionPeriodInDays = defaults.softDeleteRetentionPeriodInDays;
    	      this.sourceResourceId = defaults.sourceResourceId;
    	      this.vaultId = defaults.vaultId;
    	      this.workloadType = defaults.workloadType;
        }

        @CustomType.Setter
        public Builder backupManagementType(String backupManagementType) {
            if (backupManagementType == null) {
              throw new MissingRequiredPropertyException("AzureVmWorkloadSAPAseDatabaseProtectedItemResponse", "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 AzureVmWorkloadProtectedItemExtendedInfoResponse extendedInfo) {

            this.extendedInfo = extendedInfo;
            return this;
        }
        @CustomType.Setter
        public Builder friendlyName(String friendlyName) {
            if (friendlyName == null) {
              throw new MissingRequiredPropertyException("AzureVmWorkloadSAPAseDatabaseProtectedItemResponse", "friendlyName");
            }
            this.friendlyName = friendlyName;
            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 lastBackupErrorDetail(@Nullable ErrorDetailResponse lastBackupErrorDetail) {

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

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

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

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

            this.nodesList = nodesList;
            return this;
        }
        public Builder nodesList(DistributedNodesInfoResponse... nodesList) {
            return nodesList(List.of(nodesList));
        }
        @CustomType.Setter
        public Builder parentName(@Nullable String parentName) {

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

            this.parentType = parentType;
            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 protectedItemDataSourceId(@Nullable String protectedItemDataSourceId) {

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

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

            this.protectionState = protectionState;
            return this;
        }
        @CustomType.Setter
        public Builder protectionStatus(String protectionStatus) {
            if (protectionStatus == null) {
              throw new MissingRequiredPropertyException("AzureVmWorkloadSAPAseDatabaseProtectedItemResponse", "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 serverName(@Nullable String serverName) {

            this.serverName = serverName;
            return this;
        }
        @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("AzureVmWorkloadSAPAseDatabaseProtectedItemResponse", "vaultId");
            }
            this.vaultId = vaultId;
            return this;
        }
        @CustomType.Setter
        public Builder workloadType(String workloadType) {
            if (workloadType == null) {
              throw new MissingRequiredPropertyException("AzureVmWorkloadSAPAseDatabaseProtectedItemResponse", "workloadType");
            }
            this.workloadType = workloadType;
            return this;
        }
        public AzureVmWorkloadSAPAseDatabaseProtectedItemResponse build() {
            final var _resultValue = new AzureVmWorkloadSAPAseDatabaseProtectedItemResponse();
            _resultValue.backupManagementType = backupManagementType;
            _resultValue.backupSetName = backupSetName;
            _resultValue.containerName = containerName;
            _resultValue.createMode = createMode;
            _resultValue.deferredDeleteTimeInUTC = deferredDeleteTimeInUTC;
            _resultValue.deferredDeleteTimeRemaining = deferredDeleteTimeRemaining;
            _resultValue.extendedInfo = extendedInfo;
            _resultValue.friendlyName = friendlyName;
            _resultValue.isArchiveEnabled = isArchiveEnabled;
            _resultValue.isDeferredDeleteScheduleUpcoming = isDeferredDeleteScheduleUpcoming;
            _resultValue.isRehydrate = isRehydrate;
            _resultValue.isScheduledForDeferredDelete = isScheduledForDeferredDelete;
            _resultValue.kpisHealths = kpisHealths;
            _resultValue.lastBackupErrorDetail = lastBackupErrorDetail;
            _resultValue.lastBackupStatus = lastBackupStatus;
            _resultValue.lastBackupTime = lastBackupTime;
            _resultValue.lastRecoveryPoint = lastRecoveryPoint;
            _resultValue.nodesList = nodesList;
            _resultValue.parentName = parentName;
            _resultValue.parentType = parentType;
            _resultValue.policyId = policyId;
            _resultValue.policyName = policyName;
            _resultValue.protectedItemDataSourceId = protectedItemDataSourceId;
            _resultValue.protectedItemHealthStatus = protectedItemHealthStatus;
            _resultValue.protectedItemType = protectedItemType;
            _resultValue.protectionState = protectionState;
            _resultValue.protectionStatus = protectionStatus;
            _resultValue.resourceGuardOperationRequests = resourceGuardOperationRequests;
            _resultValue.serverName = serverName;
            _resultValue.softDeleteRetentionPeriodInDays = softDeleteRetentionPeriodInDays;
            _resultValue.sourceResourceId = sourceResourceId;
            _resultValue.vaultId = vaultId;
            _resultValue.workloadType = workloadType;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy