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

com.pulumi.alicloud.hbr.inputs.GetRestoreJobsArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.hbr.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetRestoreJobsArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetRestoreJobsArgs Empty = new GetRestoreJobsArgs();

    /**
     * File name where to save data source results (after running `pulumi preview`).
     * 
     */
    @Import(name="outputFile")
    private @Nullable Output outputFile;

    /**
     * @return File name where to save data source results (after running `pulumi preview`).
     * 
     */
    public Optional> outputFile() {
        return Optional.ofNullable(this.outputFile);
    }

    /**
     * The list of restore job IDs.
     * 
     */
    @Import(name="restoreIds")
    private @Nullable Output> restoreIds;

    /**
     * @return The list of restore job IDs.
     * 
     */
    public Optional>> restoreIds() {
        return Optional.ofNullable(this.restoreIds);
    }

    /**
     * The Recovery Destination Types. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`, `UDM_ECS_ROLLBACK`.
     * 
     */
    @Import(name="restoreType", required=true)
    private Output restoreType;

    /**
     * @return The Recovery Destination Types. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`, `UDM_ECS_ROLLBACK`.
     * 
     */
    public Output restoreType() {
        return this.restoreType;
    }

    /**
     * The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.
     * 
     */
    @Import(name="sourceTypes")
    private @Nullable Output> sourceTypes;

    /**
     * @return The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.
     * 
     */
    public Optional>> sourceTypes() {
        return Optional.ofNullable(this.sourceTypes);
    }

    /**
     * The status of restore job. Valid values: `CANCELED`, `CANCELING`, `COMPLETE`, `CREATED`, `EXPIRED`, `FAILED`, `PARTIAL_COMPLETE`, `QUEUED`, `RUNNING`.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return The status of restore job. Valid values: `CANCELED`, `CANCELING`, `COMPLETE`, `CREATED`, `EXPIRED`, `FAILED`, `PARTIAL_COMPLETE`, `QUEUED`, `RUNNING`.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * The name of target OSS bucket.
     * 
     */
    @Import(name="targetBuckets")
    private @Nullable Output> targetBuckets;

    /**
     * @return The name of target OSS bucket.
     * 
     */
    public Optional>> targetBuckets() {
        return Optional.ofNullable(this.targetBuckets);
    }

    /**
     * Valid while source_type equals `NAS`. The list of destination File System IDs.
     * 
     */
    @Import(name="targetFileSystemIds")
    private @Nullable Output> targetFileSystemIds;

    /**
     * @return Valid while source_type equals `NAS`. The list of destination File System IDs.
     * 
     */
    public Optional>> targetFileSystemIds() {
        return Optional.ofNullable(this.targetFileSystemIds);
    }

    /**
     * The ID of target ECS instance.
     * 
     */
    @Import(name="targetInstanceIds")
    private @Nullable Output> targetInstanceIds;

    /**
     * @return The ID of target ECS instance.
     * 
     */
    public Optional>> targetInstanceIds() {
        return Optional.ofNullable(this.targetInstanceIds);
    }

    /**
     * The list of backup vault IDs.
     * 
     */
    @Import(name="vaultIds")
    private @Nullable Output> vaultIds;

    /**
     * @return The list of backup vault IDs.
     * 
     */
    public Optional>> vaultIds() {
        return Optional.ofNullable(this.vaultIds);
    }

    private GetRestoreJobsArgs() {}

    private GetRestoreJobsArgs(GetRestoreJobsArgs $) {
        this.outputFile = $.outputFile;
        this.restoreIds = $.restoreIds;
        this.restoreType = $.restoreType;
        this.sourceTypes = $.sourceTypes;
        this.status = $.status;
        this.targetBuckets = $.targetBuckets;
        this.targetFileSystemIds = $.targetFileSystemIds;
        this.targetInstanceIds = $.targetInstanceIds;
        this.vaultIds = $.vaultIds;
    }

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

    public static final class Builder {
        private GetRestoreJobsArgs $;

        public Builder() {
            $ = new GetRestoreJobsArgs();
        }

        public Builder(GetRestoreJobsArgs defaults) {
            $ = new GetRestoreJobsArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param outputFile File name where to save data source results (after running `pulumi preview`).
         * 
         * @return builder
         * 
         */
        public Builder outputFile(@Nullable Output outputFile) {
            $.outputFile = outputFile;
            return this;
        }

        /**
         * @param outputFile File name where to save data source results (after running `pulumi preview`).
         * 
         * @return builder
         * 
         */
        public Builder outputFile(String outputFile) {
            return outputFile(Output.of(outputFile));
        }

        /**
         * @param restoreIds The list of restore job IDs.
         * 
         * @return builder
         * 
         */
        public Builder restoreIds(@Nullable Output> restoreIds) {
            $.restoreIds = restoreIds;
            return this;
        }

        /**
         * @param restoreIds The list of restore job IDs.
         * 
         * @return builder
         * 
         */
        public Builder restoreIds(List restoreIds) {
            return restoreIds(Output.of(restoreIds));
        }

        /**
         * @param restoreIds The list of restore job IDs.
         * 
         * @return builder
         * 
         */
        public Builder restoreIds(String... restoreIds) {
            return restoreIds(List.of(restoreIds));
        }

        /**
         * @param restoreType The Recovery Destination Types. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`, `UDM_ECS_ROLLBACK`.
         * 
         * @return builder
         * 
         */
        public Builder restoreType(Output restoreType) {
            $.restoreType = restoreType;
            return this;
        }

        /**
         * @param restoreType The Recovery Destination Types. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`, `UDM_ECS_ROLLBACK`.
         * 
         * @return builder
         * 
         */
        public Builder restoreType(String restoreType) {
            return restoreType(Output.of(restoreType));
        }

        /**
         * @param sourceTypes The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.
         * 
         * @return builder
         * 
         */
        public Builder sourceTypes(@Nullable Output> sourceTypes) {
            $.sourceTypes = sourceTypes;
            return this;
        }

        /**
         * @param sourceTypes The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.
         * 
         * @return builder
         * 
         */
        public Builder sourceTypes(List sourceTypes) {
            return sourceTypes(Output.of(sourceTypes));
        }

        /**
         * @param sourceTypes The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.
         * 
         * @return builder
         * 
         */
        public Builder sourceTypes(String... sourceTypes) {
            return sourceTypes(List.of(sourceTypes));
        }

        /**
         * @param status The status of restore job. Valid values: `CANCELED`, `CANCELING`, `COMPLETE`, `CREATED`, `EXPIRED`, `FAILED`, `PARTIAL_COMPLETE`, `QUEUED`, `RUNNING`.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The status of restore job. Valid values: `CANCELED`, `CANCELING`, `COMPLETE`, `CREATED`, `EXPIRED`, `FAILED`, `PARTIAL_COMPLETE`, `QUEUED`, `RUNNING`.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param targetBuckets The name of target OSS bucket.
         * 
         * @return builder
         * 
         */
        public Builder targetBuckets(@Nullable Output> targetBuckets) {
            $.targetBuckets = targetBuckets;
            return this;
        }

        /**
         * @param targetBuckets The name of target OSS bucket.
         * 
         * @return builder
         * 
         */
        public Builder targetBuckets(List targetBuckets) {
            return targetBuckets(Output.of(targetBuckets));
        }

        /**
         * @param targetBuckets The name of target OSS bucket.
         * 
         * @return builder
         * 
         */
        public Builder targetBuckets(String... targetBuckets) {
            return targetBuckets(List.of(targetBuckets));
        }

        /**
         * @param targetFileSystemIds Valid while source_type equals `NAS`. The list of destination File System IDs.
         * 
         * @return builder
         * 
         */
        public Builder targetFileSystemIds(@Nullable Output> targetFileSystemIds) {
            $.targetFileSystemIds = targetFileSystemIds;
            return this;
        }

        /**
         * @param targetFileSystemIds Valid while source_type equals `NAS`. The list of destination File System IDs.
         * 
         * @return builder
         * 
         */
        public Builder targetFileSystemIds(List targetFileSystemIds) {
            return targetFileSystemIds(Output.of(targetFileSystemIds));
        }

        /**
         * @param targetFileSystemIds Valid while source_type equals `NAS`. The list of destination File System IDs.
         * 
         * @return builder
         * 
         */
        public Builder targetFileSystemIds(String... targetFileSystemIds) {
            return targetFileSystemIds(List.of(targetFileSystemIds));
        }

        /**
         * @param targetInstanceIds The ID of target ECS instance.
         * 
         * @return builder
         * 
         */
        public Builder targetInstanceIds(@Nullable Output> targetInstanceIds) {
            $.targetInstanceIds = targetInstanceIds;
            return this;
        }

        /**
         * @param targetInstanceIds The ID of target ECS instance.
         * 
         * @return builder
         * 
         */
        public Builder targetInstanceIds(List targetInstanceIds) {
            return targetInstanceIds(Output.of(targetInstanceIds));
        }

        /**
         * @param targetInstanceIds The ID of target ECS instance.
         * 
         * @return builder
         * 
         */
        public Builder targetInstanceIds(String... targetInstanceIds) {
            return targetInstanceIds(List.of(targetInstanceIds));
        }

        /**
         * @param vaultIds The list of backup vault IDs.
         * 
         * @return builder
         * 
         */
        public Builder vaultIds(@Nullable Output> vaultIds) {
            $.vaultIds = vaultIds;
            return this;
        }

        /**
         * @param vaultIds The list of backup vault IDs.
         * 
         * @return builder
         * 
         */
        public Builder vaultIds(List vaultIds) {
            return vaultIds(Output.of(vaultIds));
        }

        /**
         * @param vaultIds The list of backup vault IDs.
         * 
         * @return builder
         * 
         */
        public Builder vaultIds(String... vaultIds) {
            return vaultIds(List.of(vaultIds));
        }

        public GetRestoreJobsArgs build() {
            if ($.restoreType == null) {
                throw new MissingRequiredPropertyException("GetRestoreJobsArgs", "restoreType");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy