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

com.pulumi.alicloud.cassandra.inputs.GetBackupPlansArgs 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.cassandra.inputs;

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


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

    public static final GetBackupPlansArgs Empty = new GetBackupPlansArgs();

    /**
     * The ID of the cluster for the backup.
     * 
     */
    @Import(name="clusterId", required=true)
    private Output clusterId;

    /**
     * @return The ID of the cluster for the backup.
     * 
     */
    public Output clusterId() {
        return this.clusterId;
    }

    /**
     * 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);
    }

    private GetBackupPlansArgs() {}

    private GetBackupPlansArgs(GetBackupPlansArgs $) {
        this.clusterId = $.clusterId;
        this.outputFile = $.outputFile;
    }

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

    public static final class Builder {
        private GetBackupPlansArgs $;

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

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

        /**
         * @param clusterId The ID of the cluster for the backup.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(Output clusterId) {
            $.clusterId = clusterId;
            return this;
        }

        /**
         * @param clusterId The ID of the cluster for the backup.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(String clusterId) {
            return clusterId(Output.of(clusterId));
        }

        /**
         * @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));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy