/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.keyspaces.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes the schema of the table. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SchemaDefinition implements Serializable, Cloneable, StructuredPojo { /** ** The regular columns of the table. *
*/ private java.util.List* The columns that are part of the partition key of the table . *
*/ private java.util.List* The columns that are part of the clustering key of the table. *
*/ private java.util.List
* The columns that have been defined as STATIC
. Static columns store values that are shared by all
* rows in the same partition.
*
* The regular columns of the table. *
* * @return The regular columns of the table. */ public java.util.List* The regular columns of the table. *
* * @param allColumns * The regular columns of the table. */ public void setAllColumns(java.util.Collection* The regular columns of the table. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAllColumns(java.util.Collection)} or {@link #withAllColumns(java.util.Collection)} if you want to * override the existing values. *
* * @param allColumns * The regular columns of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public SchemaDefinition withAllColumns(ColumnDefinition... allColumns) { if (this.allColumns == null) { setAllColumns(new java.util.ArrayList* The regular columns of the table. *
* * @param allColumns * The regular columns of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public SchemaDefinition withAllColumns(java.util.Collection* The columns that are part of the partition key of the table . *
* * @return The columns that are part of the partition key of the table . */ public java.util.List* The columns that are part of the partition key of the table . *
* * @param partitionKeys * The columns that are part of the partition key of the table . */ public void setPartitionKeys(java.util.Collection* The columns that are part of the partition key of the table . *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPartitionKeys(java.util.Collection)} or {@link #withPartitionKeys(java.util.Collection)} if you want * to override the existing values. *
* * @param partitionKeys * The columns that are part of the partition key of the table . * @return Returns a reference to this object so that method calls can be chained together. */ public SchemaDefinition withPartitionKeys(PartitionKey... partitionKeys) { if (this.partitionKeys == null) { setPartitionKeys(new java.util.ArrayList* The columns that are part of the partition key of the table . *
* * @param partitionKeys * The columns that are part of the partition key of the table . * @return Returns a reference to this object so that method calls can be chained together. */ public SchemaDefinition withPartitionKeys(java.util.Collection* The columns that are part of the clustering key of the table. *
* * @return The columns that are part of the clustering key of the table. */ public java.util.List* The columns that are part of the clustering key of the table. *
* * @param clusteringKeys * The columns that are part of the clustering key of the table. */ public void setClusteringKeys(java.util.Collection* The columns that are part of the clustering key of the table. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setClusteringKeys(java.util.Collection)} or {@link #withClusteringKeys(java.util.Collection)} if you want * to override the existing values. *
* * @param clusteringKeys * The columns that are part of the clustering key of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public SchemaDefinition withClusteringKeys(ClusteringKey... clusteringKeys) { if (this.clusteringKeys == null) { setClusteringKeys(new java.util.ArrayList* The columns that are part of the clustering key of the table. *
* * @param clusteringKeys * The columns that are part of the clustering key of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public SchemaDefinition withClusteringKeys(java.util.Collection
* The columns that have been defined as STATIC
. Static columns store values that are shared by all
* rows in the same partition.
*
STATIC
. Static columns store values that are shared by
* all rows in the same partition.
*/
public java.util.List
* The columns that have been defined as STATIC
. Static columns store values that are shared by all
* rows in the same partition.
*
STATIC
. Static columns store values that are shared by
* all rows in the same partition.
*/
public void setStaticColumns(java.util.Collection
* The columns that have been defined as STATIC
. Static columns store values that are shared by all
* rows in the same partition.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setStaticColumns(java.util.Collection)} or {@link #withStaticColumns(java.util.Collection)} if you want * to override the existing values. *
* * @param staticColumns * The columns that have been defined asSTATIC
. Static columns store values that are shared by
* all rows in the same partition.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SchemaDefinition withStaticColumns(StaticColumn... staticColumns) {
if (this.staticColumns == null) {
setStaticColumns(new java.util.ArrayList
* The columns that have been defined as STATIC
. Static columns store values that are shared by all
* rows in the same partition.
*
STATIC
. Static columns store values that are shared by
* all rows in the same partition.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SchemaDefinition withStaticColumns(java.util.Collection