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

com.pulumi.aws.glue.PartitionIndexArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.glue;

import com.pulumi.aws.glue.inputs.PartitionIndexPartitionIndexArgs;
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 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 catalogId;

    /**
     * @return The catalog ID where the table resides.
     * 
     */
    public Optional> 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 databaseName;

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

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

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

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

    /**
     * @return Name of the table. For Hive compatibility, this must be entirely lowercase.
     * 
     */
    public Output 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 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 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 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 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() {
            if ($.databaseName == null) {
                throw new MissingRequiredPropertyException("PartitionIndexArgs", "databaseName");
            }
            if ($.partitionIndex == null) {
                throw new MissingRequiredPropertyException("PartitionIndexArgs", "partitionIndex");
            }
            if ($.tableName == null) {
                throw new MissingRequiredPropertyException("PartitionIndexArgs", "tableName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy