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

com.pulumi.digitalocean.inputs.GetSpacesBucketObjectArgs Maven / Gradle / Ivy

There is a newer version: 4.35.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.digitalocean.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 GetSpacesBucketObjectArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetSpacesBucketObjectArgs Empty = new GetSpacesBucketObjectArgs();

    /**
     * The name of the bucket to read the object from.
     * 
     */
    @Import(name="bucket", required=true)
    private Output bucket;

    /**
     * @return The name of the bucket to read the object from.
     * 
     */
    public Output bucket() {
        return this.bucket;
    }

    /**
     * The full path to the object inside the bucket
     * 
     */
    @Import(name="key", required=true)
    private Output key;

    /**
     * @return The full path to the object inside the bucket
     * 
     */
    public Output key() {
        return this.key;
    }

    @Import(name="range")
    private @Nullable Output range;

    public Optional> range() {
        return Optional.ofNullable(this.range);
    }

    /**
     * The slug of the region where the bucket is stored.
     * 
     */
    @Import(name="region", required=true)
    private Output region;

    /**
     * @return The slug of the region where the bucket is stored.
     * 
     */
    public Output region() {
        return this.region;
    }

    /**
     * Specific version ID of the object returned (defaults to latest version)
     * 
     */
    @Import(name="versionId")
    private @Nullable Output versionId;

    /**
     * @return Specific version ID of the object returned (defaults to latest version)
     * 
     */
    public Optional> versionId() {
        return Optional.ofNullable(this.versionId);
    }

    private GetSpacesBucketObjectArgs() {}

    private GetSpacesBucketObjectArgs(GetSpacesBucketObjectArgs $) {
        this.bucket = $.bucket;
        this.key = $.key;
        this.range = $.range;
        this.region = $.region;
        this.versionId = $.versionId;
    }

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

    public static final class Builder {
        private GetSpacesBucketObjectArgs $;

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

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

        /**
         * @param bucket The name of the bucket to read the object from.
         * 
         * @return builder
         * 
         */
        public Builder bucket(Output bucket) {
            $.bucket = bucket;
            return this;
        }

        /**
         * @param bucket The name of the bucket to read the object from.
         * 
         * @return builder
         * 
         */
        public Builder bucket(String bucket) {
            return bucket(Output.of(bucket));
        }

        /**
         * @param key The full path to the object inside the bucket
         * 
         * @return builder
         * 
         */
        public Builder key(Output key) {
            $.key = key;
            return this;
        }

        /**
         * @param key The full path to the object inside the bucket
         * 
         * @return builder
         * 
         */
        public Builder key(String key) {
            return key(Output.of(key));
        }

        public Builder range(@Nullable Output range) {
            $.range = range;
            return this;
        }

        public Builder range(String range) {
            return range(Output.of(range));
        }

        /**
         * @param region The slug of the region where the bucket is stored.
         * 
         * @return builder
         * 
         */
        public Builder region(Output region) {
            $.region = region;
            return this;
        }

        /**
         * @param region The slug of the region where the bucket is stored.
         * 
         * @return builder
         * 
         */
        public Builder region(String region) {
            return region(Output.of(region));
        }

        /**
         * @param versionId Specific version ID of the object returned (defaults to latest version)
         * 
         * @return builder
         * 
         */
        public Builder versionId(@Nullable Output versionId) {
            $.versionId = versionId;
            return this;
        }

        /**
         * @param versionId Specific version ID of the object returned (defaults to latest version)
         * 
         * @return builder
         * 
         */
        public Builder versionId(String versionId) {
            return versionId(Output.of(versionId));
        }

        public GetSpacesBucketObjectArgs build() {
            if ($.bucket == null) {
                throw new MissingRequiredPropertyException("GetSpacesBucketObjectArgs", "bucket");
            }
            if ($.key == null) {
                throw new MissingRequiredPropertyException("GetSpacesBucketObjectArgs", "key");
            }
            if ($.region == null) {
                throw new MissingRequiredPropertyException("GetSpacesBucketObjectArgs", "region");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy