// *** 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.kinesisanalyticsv2.inputs;

import com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaArgs;
import com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceS3ReferenceDataSourceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceArgs Empty = new ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceArgs();

    @Import(name="referenceId")
    private @Nullable Output<String> referenceId;

    public Optional<Output<String>> referenceId() {
        return Optional.ofNullable(this.referenceId);
    }

    /**
     * Describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream.
     * 
     */
    @Import(name="referenceSchema", required=true)
    private Output<ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaArgs> referenceSchema;

    /**
     * @return Describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream.
     * 
     */
    public Output<ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaArgs> referenceSchema() {
        return this.referenceSchema;
    }

    /**
     * Identifies the S3 bucket and object that contains the reference data.
     * 
     */
    @Import(name="s3ReferenceDataSource", required=true)
    private Output<ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceS3ReferenceDataSourceArgs> s3ReferenceDataSource;

    /**
     * @return Identifies the S3 bucket and object that contains the reference data.
     * 
     */
    public Output<ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceS3ReferenceDataSourceArgs> s3ReferenceDataSource() {
        return this.s3ReferenceDataSource;
    }

    /**
     * The name of the in-application table to create.
     * 
     */
    @Import(name="tableName", required=true)
    private Output<String> tableName;

    /**
     * @return The name of the in-application table to create.
     * 
     */
    public Output<String> tableName() {
        return this.tableName;
    }

    private ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceArgs() {}

    private ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceArgs(ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceArgs $) {
        this.referenceId = $.referenceId;
        this.referenceSchema = $.referenceSchema;
        this.s3ReferenceDataSource = $.s3ReferenceDataSource;
        this.tableName = $.tableName;
    }

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

    public static final class Builder {
        private ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceArgs $;

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

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

        public Builder referenceId(@Nullable Output<String> referenceId) {
            $.referenceId = referenceId;
            return this;
        }

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

        /**
         * @param referenceSchema Describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream.
         * 
         * @return builder
         * 
         */
        public Builder referenceSchema(Output<ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaArgs> referenceSchema) {
            $.referenceSchema = referenceSchema;
            return this;
        }

        /**
         * @param referenceSchema Describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream.
         * 
         * @return builder
         * 
         */
        public Builder referenceSchema(ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaArgs referenceSchema) {
            return referenceSchema(Output.of(referenceSchema));
        }

        /**
         * @param s3ReferenceDataSource Identifies the S3 bucket and object that contains the reference data.
         * 
         * @return builder
         * 
         */
        public Builder s3ReferenceDataSource(Output<ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceS3ReferenceDataSourceArgs> s3ReferenceDataSource) {
            $.s3ReferenceDataSource = s3ReferenceDataSource;
            return this;
        }

        /**
         * @param s3ReferenceDataSource Identifies the S3 bucket and object that contains the reference data.
         * 
         * @return builder
         * 
         */
        public Builder s3ReferenceDataSource(ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceS3ReferenceDataSourceArgs s3ReferenceDataSource) {
            return s3ReferenceDataSource(Output.of(s3ReferenceDataSource));
        }

        /**
         * @param tableName The name of the in-application table to create.
         * 
         * @return builder
         * 
         */
        public Builder tableName(Output<String> tableName) {
            $.tableName = tableName;
            return this;
        }

        /**
         * @param tableName The name of the in-application table to create.
         * 
         * @return builder
         * 
         */
        public Builder tableName(String tableName) {
            return tableName(Output.of(tableName));
        }

        public ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceArgs build() {
            $.referenceSchema = Objects.requireNonNull($.referenceSchema, "expected parameter 'referenceSchema' to be non-null");
            $.s3ReferenceDataSource = Objects.requireNonNull($.s3ReferenceDataSource, "expected parameter 's3ReferenceDataSource' to be non-null");
            $.tableName = Objects.requireNonNull($.tableName, "expected parameter 'tableName' to be non-null");
            return $;
        }
    }

}
