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

import com.pulumi.aws.glue.inputs.PartitionIndexPartitionIndexArgs;
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 PartitionIndexArgs extends com.pulumi.resources.ResourceArgs {

    public static final PartitionIndexArgs Empty = new PartitionIndexArgs();

    /**
     * The catalog ID where the table resides.
     * 
     */
    @Import(name="catalogId")
    private @Nullable Output<String> catalogId;

    /**
     * @return The catalog ID where the table resides.
     * 
     */
    public Optional<Output<String>> catalogId() {
        return Optional.ofNullable(this.catalogId);
    }

    /**
     * Name of the metadata database where the table metadata resides. For Hive compatibility, this must be all lowercase.
     * 
     */
    @Import(name="databaseName", required=true)
    private Output<String> databaseName;

    /**
     * @return Name of the metadata database where the table metadata resides. For Hive compatibility, this must be all lowercase.
     * 
     */
    public Output<String> databaseName() {
        return this.databaseName;
    }

    /**
     * Configuration block for a partition index. See `partition_index` below.
     * 
     */
    @Import(name="partitionIndex", required=true)
    private Output<PartitionIndexPartitionIndexArgs> partitionIndex;

    /**
     * @return Configuration block for a partition index. See `partition_index` below.
     * 
     */
    public Output<PartitionIndexPartitionIndexArgs> partitionIndex() {
        return this.partitionIndex;
    }

    /**
     * Name of the table. For Hive compatibility, this must be entirely lowercase.
     * 
     */
    @Import(name="tableName", required=true)
    private Output<String> tableName;

    /**
     * @return Name of the table. For Hive compatibility, this must be entirely lowercase.
     * 
     */
    public Output<String> tableName() {
        return this.tableName;
    }

    private PartitionIndexArgs() {}

    private PartitionIndexArgs(PartitionIndexArgs $) {
        this.catalogId = $.catalogId;
        this.databaseName = $.databaseName;
        this.partitionIndex = $.partitionIndex;
        this.tableName = $.tableName;
    }

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

    public static final class Builder {
        private PartitionIndexArgs $;

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

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

        /**
         * @param catalogId The catalog ID where the table resides.
         * 
         * @return builder
         * 
         */
        public Builder catalogId(@Nullable Output<String> catalogId) {
            $.catalogId = catalogId;
            return this;
        }

        /**
         * @param catalogId The catalog ID where the table resides.
         * 
         * @return builder
         * 
         */
        public Builder catalogId(String catalogId) {
            return catalogId(Output.of(catalogId));
        }

        /**
         * @param databaseName Name of the metadata database where the table metadata resides. For Hive compatibility, this must be all lowercase.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(Output<String> databaseName) {
            $.databaseName = databaseName;
            return this;
        }

        /**
         * @param databaseName Name of the metadata database where the table metadata resides. For Hive compatibility, this must be all lowercase.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(String databaseName) {
            return databaseName(Output.of(databaseName));
        }

        /**
         * @param partitionIndex Configuration block for a partition index. See `partition_index` below.
         * 
         * @return builder
         * 
         */
        public Builder partitionIndex(Output<PartitionIndexPartitionIndexArgs> partitionIndex) {
            $.partitionIndex = partitionIndex;
            return this;
        }

        /**
         * @param partitionIndex Configuration block for a partition index. See `partition_index` below.
         * 
         * @return builder
         * 
         */
        public Builder partitionIndex(PartitionIndexPartitionIndexArgs partitionIndex) {
            return partitionIndex(Output.of(partitionIndex));
        }

        /**
         * @param tableName Name of the table. For Hive compatibility, this must be entirely lowercase.
         * 
         * @return builder
         * 
         */
        public Builder tableName(Output<String> tableName) {
            $.tableName = tableName;
            return this;
        }

        /**
         * @param tableName Name of the table. For Hive compatibility, this must be entirely lowercase.
         * 
         * @return builder
         * 
         */
        public Builder tableName(String tableName) {
            return tableName(Output.of(tableName));
        }

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

}
