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

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

    public static final TableItemState Empty = new TableItemState();

    /**
     * Hash key to use for lookups and identification of the item
     * 
     */
    @Import(name="hashKey")
    private @Nullable Output<String> hashKey;

    /**
     * @return Hash key to use for lookups and identification of the item
     * 
     */
    public Optional<Output<String>> hashKey() {
        return Optional.ofNullable(this.hashKey);
    }

    /**
     * JSON representation of a map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item.
     * 
     */
    @Import(name="item")
    private @Nullable Output<String> item;

    /**
     * @return JSON representation of a map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item.
     * 
     */
    public Optional<Output<String>> item() {
        return Optional.ofNullable(this.item);
    }

    /**
     * Range key to use for lookups and identification of the item. Required if there is range key defined in the table.
     * 
     */
    @Import(name="rangeKey")
    private @Nullable Output<String> rangeKey;

    /**
     * @return Range key to use for lookups and identification of the item. Required if there is range key defined in the table.
     * 
     */
    public Optional<Output<String>> rangeKey() {
        return Optional.ofNullable(this.rangeKey);
    }

    /**
     * Name of the table to contain the item.
     * 
     */
    @Import(name="tableName")
    private @Nullable Output<String> tableName;

    /**
     * @return Name of the table to contain the item.
     * 
     */
    public Optional<Output<String>> tableName() {
        return Optional.ofNullable(this.tableName);
    }

    private TableItemState() {}

    private TableItemState(TableItemState $) {
        this.hashKey = $.hashKey;
        this.item = $.item;
        this.rangeKey = $.rangeKey;
        this.tableName = $.tableName;
    }

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

    public static final class Builder {
        private TableItemState $;

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

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

        /**
         * @param hashKey Hash key to use for lookups and identification of the item
         * 
         * @return builder
         * 
         */
        public Builder hashKey(@Nullable Output<String> hashKey) {
            $.hashKey = hashKey;
            return this;
        }

        /**
         * @param hashKey Hash key to use for lookups and identification of the item
         * 
         * @return builder
         * 
         */
        public Builder hashKey(String hashKey) {
            return hashKey(Output.of(hashKey));
        }

        /**
         * @param item JSON representation of a map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item.
         * 
         * @return builder
         * 
         */
        public Builder item(@Nullable Output<String> item) {
            $.item = item;
            return this;
        }

        /**
         * @param item JSON representation of a map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item.
         * 
         * @return builder
         * 
         */
        public Builder item(String item) {
            return item(Output.of(item));
        }

        /**
         * @param rangeKey Range key to use for lookups and identification of the item. Required if there is range key defined in the table.
         * 
         * @return builder
         * 
         */
        public Builder rangeKey(@Nullable Output<String> rangeKey) {
            $.rangeKey = rangeKey;
            return this;
        }

        /**
         * @param rangeKey Range key to use for lookups and identification of the item. Required if there is range key defined in the table.
         * 
         * @return builder
         * 
         */
        public Builder rangeKey(String rangeKey) {
            return rangeKey(Output.of(rangeKey));
        }

        /**
         * @param tableName Name of the table to contain the item.
         * 
         * @return builder
         * 
         */
        public Builder tableName(@Nullable Output<String> tableName) {
            $.tableName = tableName;
            return this;
        }

        /**
         * @param tableName Name of the table to contain the item.
         * 
         * @return builder
         * 
         */
        public Builder tableName(String tableName) {
            return tableName(Output.of(tableName));
        }

        public TableItemState build() {
            return $;
        }
    }

}
