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

com.pulumi.aws.dynamodb.inputs.TableItemState 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.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 hashKey;

    /**
     * @return Hash key to use for lookups and identification of the item
     * 
     */
    public Optional> 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 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> 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 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> rangeKey() {
        return Optional.ofNullable(this.rangeKey);
    }

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

    /**
     * @return Name of the table to contain the item.
     * 
     */
    public Optional> 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 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 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 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 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 $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy