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

com.pulumi.aws.keyspaces.inputs.TableSchemaDefinitionArgs Maven / Gradle / Ivy

Go to download

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

The 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.keyspaces.inputs;

import com.pulumi.aws.keyspaces.inputs.TableSchemaDefinitionClusteringKeyArgs;
import com.pulumi.aws.keyspaces.inputs.TableSchemaDefinitionColumnArgs;
import com.pulumi.aws.keyspaces.inputs.TableSchemaDefinitionPartitionKeyArgs;
import com.pulumi.aws.keyspaces.inputs.TableSchemaDefinitionStaticColumnArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class TableSchemaDefinitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final TableSchemaDefinitionArgs Empty = new TableSchemaDefinitionArgs();

    /**
     * The columns that are part of the clustering key of the table.
     * 
     */
    @Import(name="clusteringKeys")
    private @Nullable Output> clusteringKeys;

    /**
     * @return The columns that are part of the clustering key of the table.
     * 
     */
    public Optional>> clusteringKeys() {
        return Optional.ofNullable(this.clusteringKeys);
    }

    /**
     * The regular columns of the table.
     * 
     */
    @Import(name="columns", required=true)
    private Output> columns;

    /**
     * @return The regular columns of the table.
     * 
     */
    public Output> columns() {
        return this.columns;
    }

    /**
     * The columns that are part of the partition key of the table .
     * 
     */
    @Import(name="partitionKeys", required=true)
    private Output> partitionKeys;

    /**
     * @return The columns that are part of the partition key of the table .
     * 
     */
    public Output> partitionKeys() {
        return this.partitionKeys;
    }

    /**
     * The columns that have been defined as `STATIC`. Static columns store values that are shared by all rows in the same partition.
     * 
     */
    @Import(name="staticColumns")
    private @Nullable Output> staticColumns;

    /**
     * @return The columns that have been defined as `STATIC`. Static columns store values that are shared by all rows in the same partition.
     * 
     */
    public Optional>> staticColumns() {
        return Optional.ofNullable(this.staticColumns);
    }

    private TableSchemaDefinitionArgs() {}

    private TableSchemaDefinitionArgs(TableSchemaDefinitionArgs $) {
        this.clusteringKeys = $.clusteringKeys;
        this.columns = $.columns;
        this.partitionKeys = $.partitionKeys;
        this.staticColumns = $.staticColumns;
    }

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

    public static final class Builder {
        private TableSchemaDefinitionArgs $;

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

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

        /**
         * @param clusteringKeys The columns that are part of the clustering key of the table.
         * 
         * @return builder
         * 
         */
        public Builder clusteringKeys(@Nullable Output> clusteringKeys) {
            $.clusteringKeys = clusteringKeys;
            return this;
        }

        /**
         * @param clusteringKeys The columns that are part of the clustering key of the table.
         * 
         * @return builder
         * 
         */
        public Builder clusteringKeys(List clusteringKeys) {
            return clusteringKeys(Output.of(clusteringKeys));
        }

        /**
         * @param clusteringKeys The columns that are part of the clustering key of the table.
         * 
         * @return builder
         * 
         */
        public Builder clusteringKeys(TableSchemaDefinitionClusteringKeyArgs... clusteringKeys) {
            return clusteringKeys(List.of(clusteringKeys));
        }

        /**
         * @param columns The regular columns of the table.
         * 
         * @return builder
         * 
         */
        public Builder columns(Output> columns) {
            $.columns = columns;
            return this;
        }

        /**
         * @param columns The regular columns of the table.
         * 
         * @return builder
         * 
         */
        public Builder columns(List columns) {
            return columns(Output.of(columns));
        }

        /**
         * @param columns The regular columns of the table.
         * 
         * @return builder
         * 
         */
        public Builder columns(TableSchemaDefinitionColumnArgs... columns) {
            return columns(List.of(columns));
        }

        /**
         * @param partitionKeys The columns that are part of the partition key of the table .
         * 
         * @return builder
         * 
         */
        public Builder partitionKeys(Output> partitionKeys) {
            $.partitionKeys = partitionKeys;
            return this;
        }

        /**
         * @param partitionKeys The columns that are part of the partition key of the table .
         * 
         * @return builder
         * 
         */
        public Builder partitionKeys(List partitionKeys) {
            return partitionKeys(Output.of(partitionKeys));
        }

        /**
         * @param partitionKeys The columns that are part of the partition key of the table .
         * 
         * @return builder
         * 
         */
        public Builder partitionKeys(TableSchemaDefinitionPartitionKeyArgs... partitionKeys) {
            return partitionKeys(List.of(partitionKeys));
        }

        /**
         * @param staticColumns The columns that have been defined as `STATIC`. Static columns store values that are shared by all rows in the same partition.
         * 
         * @return builder
         * 
         */
        public Builder staticColumns(@Nullable Output> staticColumns) {
            $.staticColumns = staticColumns;
            return this;
        }

        /**
         * @param staticColumns The columns that have been defined as `STATIC`. Static columns store values that are shared by all rows in the same partition.
         * 
         * @return builder
         * 
         */
        public Builder staticColumns(List staticColumns) {
            return staticColumns(Output.of(staticColumns));
        }

        /**
         * @param staticColumns The columns that have been defined as `STATIC`. Static columns store values that are shared by all rows in the same partition.
         * 
         * @return builder
         * 
         */
        public Builder staticColumns(TableSchemaDefinitionStaticColumnArgs... staticColumns) {
            return staticColumns(List.of(staticColumns));
        }

        public TableSchemaDefinitionArgs build() {
            if ($.columns == null) {
                throw new MissingRequiredPropertyException("TableSchemaDefinitionArgs", "columns");
            }
            if ($.partitionKeys == null) {
                throw new MissingRequiredPropertyException("TableSchemaDefinitionArgs", "partitionKeys");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy