/* * 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; /** *
* Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary * key attributes and index key attributes, which are automatically projected. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Projection implements Serializable, Cloneable, StructuredPojo { /** ** The set of attributes that are projected into the index: *
*
* KEYS_ONLY
- Only the index and primary keys are projected into the index.
*
* INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary index
* will include other non-key attributes that you specify.
*
* ALL
- All of the table attributes are projected into the index.
*
* Represents the non-key attribute names which will be projected into the index. *
*
* For local secondary indexes, the total count of NonKeyAttributes
summed across all of the local
* secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts
* as two distinct attributes when determining the total.
*
* The set of attributes that are projected into the index: *
*
* KEYS_ONLY
- Only the index and primary keys are projected into the index.
*
* INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary index
* will include other non-key attributes that you specify.
*
* ALL
- All of the table attributes are projected into the index.
*
* KEYS_ONLY
- Only the index and primary keys are projected into the index.
*
* INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary
* index will include other non-key attributes that you specify.
*
* ALL
- All of the table attributes are projected into the index.
*
* The set of attributes that are projected into the index: *
*
* KEYS_ONLY
- Only the index and primary keys are projected into the index.
*
* INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary index
* will include other non-key attributes that you specify.
*
* ALL
- All of the table attributes are projected into the index.
*
* KEYS_ONLY
- Only the index and primary keys are projected into the index.
*
* INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary
* index will include other non-key attributes that you specify.
*
* ALL
- All of the table attributes are projected into the index.
*
* The set of attributes that are projected into the index: *
*
* KEYS_ONLY
- Only the index and primary keys are projected into the index.
*
* INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary index
* will include other non-key attributes that you specify.
*
* ALL
- All of the table attributes are projected into the index.
*
* KEYS_ONLY
- Only the index and primary keys are projected into the index.
*
* INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary
* index will include other non-key attributes that you specify.
*
* ALL
- All of the table attributes are projected into the index.
*
* The set of attributes that are projected into the index: *
*
* KEYS_ONLY
- Only the index and primary keys are projected into the index.
*
* INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary index
* will include other non-key attributes that you specify.
*
* ALL
- All of the table attributes are projected into the index.
*
* KEYS_ONLY
- Only the index and primary keys are projected into the index.
*
* INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary
* index will include other non-key attributes that you specify.
*
* ALL
- All of the table attributes are projected into the index.
*
* The set of attributes that are projected into the index: *
*
* KEYS_ONLY
- Only the index and primary keys are projected into the index.
*
* INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary index
* will include other non-key attributes that you specify.
*
* ALL
- All of the table attributes are projected into the index.
*
* KEYS_ONLY
- Only the index and primary keys are projected into the index.
*
* INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary
* index will include other non-key attributes that you specify.
*
* ALL
- All of the table attributes are projected into the index.
*
* Represents the non-key attribute names which will be projected into the index. *
*
* For local secondary indexes, the total count of NonKeyAttributes
summed across all of the local
* secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts
* as two distinct attributes when determining the total.
*
* For local secondary indexes, the total count of
* Represents the non-key attribute names which will be projected into the index.
*
* For local secondary indexes, the total count of NonKeyAttributes
summed across all of the
* local secondary indexes, must not exceed 100. If you project the same attribute into two different
* indexes, this counts as two distinct attributes when determining the total.
*/
public java.util.ListNonKeyAttributes
summed across all of the local
* secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts
* as two distinct attributes when determining the total.
*
* For local secondary indexes, the total count of
* Represents the non-key attribute names which will be projected into the index.
*
* For local secondary indexes, the total count of
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setNonKeyAttributes(java.util.Collection)} or {@link #withNonKeyAttributes(java.util.Collection)} if you
* want to override the existing values.
* NonKeyAttributes
summed across all of the
* local secondary indexes, must not exceed 100. If you project the same attribute into two different
* indexes, this counts as two distinct attributes when determining the total.
*/
public void setNonKeyAttributes(java.util.CollectionNonKeyAttributes
summed across all of the local
* secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts
* as two distinct attributes when determining the total.
*
* For local secondary indexes, the total count of
* Represents the non-key attribute names which will be projected into the index.
*
* For local secondary indexes, the total count of NonKeyAttributes
summed across all of the
* local secondary indexes, must not exceed 100. If you project the same attribute into two different
* indexes, this counts as two distinct attributes when determining the total.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Projection withNonKeyAttributes(String... nonKeyAttributes) {
if (this.nonKeyAttributes == null) {
setNonKeyAttributes(new java.util.ArrayListNonKeyAttributes
summed across all of the local
* secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts
* as two distinct attributes when determining the total.
*
* For local secondary indexes, the total count of NonKeyAttributes
summed across all of the
* local secondary indexes, must not exceed 100. If you project the same attribute into two different
* indexes, this counts as two distinct attributes when determining the total.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Projection withNonKeyAttributes(java.util.Collection