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

com.pulumi.alicloud.oss.inputs.GetBucketObjectsArgs 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.oss.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 GetBucketObjectsArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetBucketObjectsArgs Empty = new GetBucketObjectsArgs();

    /**
     * Name of the bucket that contains the objects to find.
     * 
     */
    @Import(name="bucketName", required=true)
    private Output bucketName;

    /**
     * @return Name of the bucket that contains the objects to find.
     * 
     */
    public Output bucketName() {
        return this.bucketName;
    }

    /**
     * Filter results by the given key prefix (such as "path/to/folder/logs-").
     * 
     */
    @Import(name="keyPrefix")
    private @Nullable Output keyPrefix;

    /**
     * @return Filter results by the given key prefix (such as "path/to/folder/logs-").
     * 
     */
    public Optional> keyPrefix() {
        return Optional.ofNullable(this.keyPrefix);
    }

    /**
     * A regex string to filter results by key.
     * 
     */
    @Import(name="keyRegex")
    private @Nullable Output keyRegex;

    /**
     * @return A regex string to filter results by key.
     * 
     */
    public Optional> keyRegex() {
        return Optional.ofNullable(this.keyRegex);
    }

    /**
     * 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 GetBucketObjectsArgs() {}

    private GetBucketObjectsArgs(GetBucketObjectsArgs $) {
        this.bucketName = $.bucketName;
        this.keyPrefix = $.keyPrefix;
        this.keyRegex = $.keyRegex;
        this.outputFile = $.outputFile;
    }

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

    public static final class Builder {
        private GetBucketObjectsArgs $;

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

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

        /**
         * @param bucketName Name of the bucket that contains the objects to find.
         * 
         * @return builder
         * 
         */
        public Builder bucketName(Output bucketName) {
            $.bucketName = bucketName;
            return this;
        }

        /**
         * @param bucketName Name of the bucket that contains the objects to find.
         * 
         * @return builder
         * 
         */
        public Builder bucketName(String bucketName) {
            return bucketName(Output.of(bucketName));
        }

        /**
         * @param keyPrefix Filter results by the given key prefix (such as "path/to/folder/logs-").
         * 
         * @return builder
         * 
         */
        public Builder keyPrefix(@Nullable Output keyPrefix) {
            $.keyPrefix = keyPrefix;
            return this;
        }

        /**
         * @param keyPrefix Filter results by the given key prefix (such as "path/to/folder/logs-").
         * 
         * @return builder
         * 
         */
        public Builder keyPrefix(String keyPrefix) {
            return keyPrefix(Output.of(keyPrefix));
        }

        /**
         * @param keyRegex A regex string to filter results by key.
         * 
         * @return builder
         * 
         */
        public Builder keyRegex(@Nullable Output keyRegex) {
            $.keyRegex = keyRegex;
            return this;
        }

        /**
         * @param keyRegex A regex string to filter results by key.
         * 
         * @return builder
         * 
         */
        public Builder keyRegex(String keyRegex) {
            return keyRegex(Output.of(keyRegex));
        }

        /**
         * @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 GetBucketObjectsArgs build() {
            if ($.bucketName == null) {
                throw new MissingRequiredPropertyException("GetBucketObjectsArgs", "bucketName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy