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

com.pulumi.aws.kendra.inputs.FaqS3PathArgs Maven / Gradle / Ivy

// *** 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.aws.kendra.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;


public final class FaqS3PathArgs extends com.pulumi.resources.ResourceArgs {

    public static final FaqS3PathArgs Empty = new FaqS3PathArgs();

    /**
     * The name of the S3 bucket that contains the file.
     * 
     */
    @Import(name="bucket", required=true)
    private Output bucket;

    /**
     * @return The name of the S3 bucket that contains the file.
     * 
     */
    public Output bucket() {
        return this.bucket;
    }

    /**
     * The name of the file.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="key", required=true)
    private Output key;

    /**
     * @return The name of the file.
     * 
     * The following arguments are optional:
     * 
     */
    public Output key() {
        return this.key;
    }

    private FaqS3PathArgs() {}

    private FaqS3PathArgs(FaqS3PathArgs $) {
        this.bucket = $.bucket;
        this.key = $.key;
    }

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

    public static final class Builder {
        private FaqS3PathArgs $;

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

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

        /**
         * @param bucket The name of the S3 bucket that contains the file.
         * 
         * @return builder
         * 
         */
        public Builder bucket(Output bucket) {
            $.bucket = bucket;
            return this;
        }

        /**
         * @param bucket The name of the S3 bucket that contains the file.
         * 
         * @return builder
         * 
         */
        public Builder bucket(String bucket) {
            return bucket(Output.of(bucket));
        }

        /**
         * @param key The name of the file.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder key(Output key) {
            $.key = key;
            return this;
        }

        /**
         * @param key The name of the file.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder key(String key) {
            return key(Output.of(key));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy