AWS SDK for C++  0.14.3
AWS SDK for C++
ListTablesResult.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
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace DynamoDB
33 {
34 namespace Model
35 {
40  {
41  public:
45 
53  inline const Aws::Vector<Aws::String>& GetTableNames() const{ return m_tableNames; }
54 
62  inline void SetTableNames(const Aws::Vector<Aws::String>& value) { m_tableNames = value; }
63 
71  inline void SetTableNames(Aws::Vector<Aws::String>&& value) { m_tableNames = value; }
72 
80  inline ListTablesResult& WithTableNames(const Aws::Vector<Aws::String>& value) { SetTableNames(value); return *this;}
81 
89  inline ListTablesResult& WithTableNames(Aws::Vector<Aws::String>&& value) { SetTableNames(value); return *this;}
90 
98  inline ListTablesResult& AddTableNames(const Aws::String& value) { m_tableNames.push_back(value); return *this; }
99 
107  inline ListTablesResult& AddTableNames(Aws::String&& value) { m_tableNames.push_back(value); return *this; }
108 
116  inline ListTablesResult& AddTableNames(const char* value) { m_tableNames.push_back(value); return *this; }
117 
125  inline const Aws::String& GetLastEvaluatedTableName() const{ return m_lastEvaluatedTableName; }
126 
134  inline void SetLastEvaluatedTableName(const Aws::String& value) { m_lastEvaluatedTableName = value; }
135 
143  inline void SetLastEvaluatedTableName(Aws::String&& value) { m_lastEvaluatedTableName = value; }
144 
152  inline void SetLastEvaluatedTableName(const char* value) { m_lastEvaluatedTableName.assign(value); }
153 
161  inline ListTablesResult& WithLastEvaluatedTableName(const Aws::String& value) { SetLastEvaluatedTableName(value); return *this;}
162 
170  inline ListTablesResult& WithLastEvaluatedTableName(Aws::String&& value) { SetLastEvaluatedTableName(value); return *this;}
171 
179  inline ListTablesResult& WithLastEvaluatedTableName(const char* value) { SetLastEvaluatedTableName(value); return *this;}
180 
181  private:
182  Aws::Vector<Aws::String> m_tableNames;
183  Aws::String m_lastEvaluatedTableName;
184  };
185 
186 } // namespace Model
187 } // namespace DynamoDB
188 } // namespace Aws
ListTablesResult & WithTableNames(const Aws::Vector< Aws::String > &value)
ListTablesResult & WithTableNames(Aws::Vector< Aws::String > &&value)
ListTablesResult & WithLastEvaluatedTableName(const Aws::String &value)
void SetTableNames(const Aws::Vector< Aws::String > &value)
void SetTableNames(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetLastEvaluatedTableName(const char *value)
ListTablesResult & AddTableNames(Aws::String &&value)
#define AWS_DYNAMODB_API
void SetLastEvaluatedTableName(Aws::String &&value)
ListTablesResult & WithLastEvaluatedTableName(const char *value)
ListTablesResult & AddTableNames(const Aws::String &value)
ListTablesResult & AddTableNames(const char *value)
const Aws::String & GetLastEvaluatedTableName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetLastEvaluatedTableName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetTableNames() const
JSON (JavaScript Object Notation).
ListTablesResult & WithLastEvaluatedTableName(Aws::String &&value)