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

com.pulumi.aws.dynamodb.ContributorInsightsArgs 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.dynamodb;

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 ContributorInsightsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ContributorInsightsArgs Empty = new ContributorInsightsArgs();

    /**
     * The global secondary index name
     * 
     */
    @Import(name="indexName")
    private @Nullable Output indexName;

    /**
     * @return The global secondary index name
     * 
     */
    public Optional> indexName() {
        return Optional.ofNullable(this.indexName);
    }

    /**
     * The name of the table to enable contributor insights
     * 
     */
    @Import(name="tableName", required=true)
    private Output tableName;

    /**
     * @return The name of the table to enable contributor insights
     * 
     */
    public Output tableName() {
        return this.tableName;
    }

    private ContributorInsightsArgs() {}

    private ContributorInsightsArgs(ContributorInsightsArgs $) {
        this.indexName = $.indexName;
        this.tableName = $.tableName;
    }

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

    public static final class Builder {
        private ContributorInsightsArgs $;

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

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

        /**
         * @param indexName The global secondary index name
         * 
         * @return builder
         * 
         */
        public Builder indexName(@Nullable Output indexName) {
            $.indexName = indexName;
            return this;
        }

        /**
         * @param indexName The global secondary index name
         * 
         * @return builder
         * 
         */
        public Builder indexName(String indexName) {
            return indexName(Output.of(indexName));
        }

        /**
         * @param tableName The name of the table to enable contributor insights
         * 
         * @return builder
         * 
         */
        public Builder tableName(Output tableName) {
            $.tableName = tableName;
            return this;
        }

        /**
         * @param tableName The name of the table to enable contributor insights
         * 
         * @return builder
         * 
         */
        public Builder tableName(String tableName) {
            return tableName(Output.of(tableName));
        }

        public ContributorInsightsArgs build() {
            if ($.tableName == null) {
                throw new MissingRequiredPropertyException("ContributorInsightsArgs", "tableName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy