/* * 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.dynamodbv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The parameters for the table created as part of the import operation. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TableCreationParameters implements Serializable, Cloneable, StructuredPojo { /** ** The name of the table created as part of the import operation. *
*/ private String tableName; /** ** The attributes of the table created as part of the import operation. *
*/ private java.util.List* The primary key and option sort key of the table created as part of the import operation. *
*/ private java.util.List* The billing mode for provisioning the table created as part of the import operation. *
*/ private String billingMode; private ProvisionedThroughput provisionedThroughput; private SSESpecification sSESpecification; /** ** The Global Secondary Indexes (GSI) of the table to be created as part of the import operation. *
*/ private java.util.List* The name of the table created as part of the import operation. *
* * @param tableName * The name of the table created as part of the import operation. */ public void setTableName(String tableName) { this.tableName = tableName; } /** ** The name of the table created as part of the import operation. *
* * @return The name of the table created as part of the import operation. */ public String getTableName() { return this.tableName; } /** ** The name of the table created as part of the import operation. *
* * @param tableName * The name of the table created as part of the import operation. * @return Returns a reference to this object so that method calls can be chained together. */ public TableCreationParameters withTableName(String tableName) { setTableName(tableName); return this; } /** ** The attributes of the table created as part of the import operation. *
* * @return The attributes of the table created as part of the import operation. */ public java.util.List* The attributes of the table created as part of the import operation. *
* * @param attributeDefinitions * The attributes of the table created as part of the import operation. */ public void setAttributeDefinitions(java.util.Collection* The attributes of the table created as part of the import operation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAttributeDefinitions(java.util.Collection)} or {@link #withAttributeDefinitions(java.util.Collection)} * if you want to override the existing values. *
* * @param attributeDefinitions * The attributes of the table created as part of the import operation. * @return Returns a reference to this object so that method calls can be chained together. */ public TableCreationParameters withAttributeDefinitions(AttributeDefinition... attributeDefinitions) { if (this.attributeDefinitions == null) { setAttributeDefinitions(new java.util.ArrayList* The attributes of the table created as part of the import operation. *
* * @param attributeDefinitions * The attributes of the table created as part of the import operation. * @return Returns a reference to this object so that method calls can be chained together. */ public TableCreationParameters withAttributeDefinitions(java.util.Collection* The primary key and option sort key of the table created as part of the import operation. *
* * @return The primary key and option sort key of the table created as part of the import operation. */ public java.util.List* The primary key and option sort key of the table created as part of the import operation. *
* * @param keySchema * The primary key and option sort key of the table created as part of the import operation. */ public void setKeySchema(java.util.Collection* The primary key and option sort key of the table created as part of the import operation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setKeySchema(java.util.Collection)} or {@link #withKeySchema(java.util.Collection)} if you want to * override the existing values. *
* * @param keySchema * The primary key and option sort key of the table created as part of the import operation. * @return Returns a reference to this object so that method calls can be chained together. */ public TableCreationParameters withKeySchema(KeySchemaElement... keySchema) { if (this.keySchema == null) { setKeySchema(new java.util.ArrayList* The primary key and option sort key of the table created as part of the import operation. *
* * @param keySchema * The primary key and option sort key of the table created as part of the import operation. * @return Returns a reference to this object so that method calls can be chained together. */ public TableCreationParameters withKeySchema(java.util.Collection* The billing mode for provisioning the table created as part of the import operation. *
* * @param billingMode * The billing mode for provisioning the table created as part of the import operation. * @see BillingMode */ public void setBillingMode(String billingMode) { this.billingMode = billingMode; } /** ** The billing mode for provisioning the table created as part of the import operation. *
* * @return The billing mode for provisioning the table created as part of the import operation. * @see BillingMode */ public String getBillingMode() { return this.billingMode; } /** ** The billing mode for provisioning the table created as part of the import operation. *
* * @param billingMode * The billing mode for provisioning the table created as part of the import operation. * @return Returns a reference to this object so that method calls can be chained together. * @see BillingMode */ public TableCreationParameters withBillingMode(String billingMode) { setBillingMode(billingMode); return this; } /** ** The billing mode for provisioning the table created as part of the import operation. *
* * @param billingMode * The billing mode for provisioning the table created as part of the import operation. * @return Returns a reference to this object so that method calls can be chained together. * @see BillingMode */ public TableCreationParameters withBillingMode(BillingMode billingMode) { this.billingMode = billingMode.toString(); return this; } /** * @param provisionedThroughput */ public void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput) { this.provisionedThroughput = provisionedThroughput; } /** * @return */ public ProvisionedThroughput getProvisionedThroughput() { return this.provisionedThroughput; } /** * @param provisionedThroughput * @return Returns a reference to this object so that method calls can be chained together. */ public TableCreationParameters withProvisionedThroughput(ProvisionedThroughput provisionedThroughput) { setProvisionedThroughput(provisionedThroughput); return this; } /** * @param sSESpecification */ public void setSSESpecification(SSESpecification sSESpecification) { this.sSESpecification = sSESpecification; } /** * @return */ public SSESpecification getSSESpecification() { return this.sSESpecification; } /** * @param sSESpecification * @return Returns a reference to this object so that method calls can be chained together. */ public TableCreationParameters withSSESpecification(SSESpecification sSESpecification) { setSSESpecification(sSESpecification); return this; } /** ** The Global Secondary Indexes (GSI) of the table to be created as part of the import operation. *
* * @return The Global Secondary Indexes (GSI) of the table to be created as part of the import operation. */ public java.util.List* The Global Secondary Indexes (GSI) of the table to be created as part of the import operation. *
* * @param globalSecondaryIndexes * The Global Secondary Indexes (GSI) of the table to be created as part of the import operation. */ public void setGlobalSecondaryIndexes(java.util.Collection* The Global Secondary Indexes (GSI) of the table to be created as part of the import operation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setGlobalSecondaryIndexes(java.util.Collection)} or * {@link #withGlobalSecondaryIndexes(java.util.Collection)} if you want to override the existing values. *
* * @param globalSecondaryIndexes * The Global Secondary Indexes (GSI) of the table to be created as part of the import operation. * @return Returns a reference to this object so that method calls can be chained together. */ public TableCreationParameters withGlobalSecondaryIndexes(GlobalSecondaryIndex... globalSecondaryIndexes) { if (this.globalSecondaryIndexes == null) { setGlobalSecondaryIndexes(new java.util.ArrayList* The Global Secondary Indexes (GSI) of the table to be created as part of the import operation. *
* * @param globalSecondaryIndexes * The Global Secondary Indexes (GSI) of the table to be created as part of the import operation. * @return Returns a reference to this object so that method calls can be chained together. */ public TableCreationParameters withGlobalSecondaryIndexes(java.util.Collection