AWS SDK for C++  0.12.9
AWS SDK for C++
LocalSecondaryIndex.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace DynamoDB
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  LocalSecondaryIndex& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
51  inline const Aws::String& GetIndexName() const{ return m_indexName; }
52 
57  inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
58 
63  inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
64 
69  inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
70 
75  inline LocalSecondaryIndex& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
76 
81  inline LocalSecondaryIndex& WithIndexName(Aws::String&& value) { SetIndexName(value); return *this;}
82 
87  inline LocalSecondaryIndex& WithIndexName(const char* value) { SetIndexName(value); return *this;}
88 
101  inline const Aws::Vector<KeySchemaElement>& GetKeySchema() const{ return m_keySchema; }
102 
115  inline void SetKeySchema(const Aws::Vector<KeySchemaElement>& value) { m_keySchemaHasBeenSet = true; m_keySchema = value; }
116 
129  inline void SetKeySchema(Aws::Vector<KeySchemaElement>&& value) { m_keySchemaHasBeenSet = true; m_keySchema = value; }
130 
143  inline LocalSecondaryIndex& WithKeySchema(const Aws::Vector<KeySchemaElement>& value) { SetKeySchema(value); return *this;}
144 
157  inline LocalSecondaryIndex& WithKeySchema(Aws::Vector<KeySchemaElement>&& value) { SetKeySchema(value); return *this;}
158 
171  inline LocalSecondaryIndex& AddKeySchema(const KeySchemaElement& value) { m_keySchemaHasBeenSet = true; m_keySchema.push_back(value); return *this; }
172 
185  inline LocalSecondaryIndex& AddKeySchema(KeySchemaElement&& value) { m_keySchemaHasBeenSet = true; m_keySchema.push_back(value); return *this; }
186 
187 
188  inline const Projection& GetProjection() const{ return m_projection; }
189 
190 
191  inline void SetProjection(const Projection& value) { m_projectionHasBeenSet = true; m_projection = value; }
192 
193 
194  inline void SetProjection(Projection&& value) { m_projectionHasBeenSet = true; m_projection = value; }
195 
196 
197  inline LocalSecondaryIndex& WithProjection(const Projection& value) { SetProjection(value); return *this;}
198 
199 
200  inline LocalSecondaryIndex& WithProjection(Projection&& value) { SetProjection(value); return *this;}
201 
202  private:
203  Aws::String m_indexName;
204  bool m_indexNameHasBeenSet;
205  Aws::Vector<KeySchemaElement> m_keySchema;
206  bool m_keySchemaHasBeenSet;
207  Projection m_projection;
208  bool m_projectionHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace DynamoDB
213 } // namespace Aws
void SetKeySchema(const Aws::Vector< KeySchemaElement > &value)
LocalSecondaryIndex & WithProjection(Projection &&value)
void SetKeySchema(Aws::Vector< KeySchemaElement > &&value)
const Aws::String & GetIndexName() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< KeySchemaElement > & GetKeySchema() const
LocalSecondaryIndex & WithKeySchema(Aws::Vector< KeySchemaElement > &&value)
LocalSecondaryIndex & AddKeySchema(KeySchemaElement &&value)
LocalSecondaryIndex & AddKeySchema(const KeySchemaElement &value)
void SetIndexName(const Aws::String &value)
#define AWS_DYNAMODB_API
void SetProjection(const Projection &value)
LocalSecondaryIndex & WithProjection(const Projection &value)
LocalSecondaryIndex & WithKeySchema(const Aws::Vector< KeySchemaElement > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
LocalSecondaryIndex & WithIndexName(const Aws::String &value)
LocalSecondaryIndex & WithIndexName(Aws::String &&value)
JSON (JavaScript Object Notation).
LocalSecondaryIndex & WithIndexName(const char *value)