AWS SDK for C++  0.12.9
AWS SDK for C++
ListPublicKeysResult.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
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace CloudTrail
34 {
35 namespace Model
36 {
42  {
43  public:
47 
52  inline const Aws::Vector<PublicKey>& GetPublicKeyList() const{ return m_publicKeyList; }
53 
58  inline void SetPublicKeyList(const Aws::Vector<PublicKey>& value) { m_publicKeyList = value; }
59 
64  inline void SetPublicKeyList(Aws::Vector<PublicKey>&& value) { m_publicKeyList = value; }
65 
70  inline ListPublicKeysResult& WithPublicKeyList(const Aws::Vector<PublicKey>& value) { SetPublicKeyList(value); return *this;}
71 
76  inline ListPublicKeysResult& WithPublicKeyList(Aws::Vector<PublicKey>&& value) { SetPublicKeyList(value); return *this;}
77 
82  inline ListPublicKeysResult& AddPublicKeyList(const PublicKey& value) { m_publicKeyList.push_back(value); return *this; }
83 
88  inline ListPublicKeysResult& AddPublicKeyList(PublicKey&& value) { m_publicKeyList.push_back(value); return *this; }
89 
93  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
94 
98  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
99 
103  inline void SetNextToken(Aws::String&& value) { m_nextToken = value; }
104 
108  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
109 
113  inline ListPublicKeysResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
114 
118  inline ListPublicKeysResult& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
119 
123  inline ListPublicKeysResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
124 
125  private:
126  Aws::Vector<PublicKey> m_publicKeyList;
127  Aws::String m_nextToken;
128  };
129 
130 } // namespace Model
131 } // namespace CloudTrail
132 } // namespace Aws
ListPublicKeysResult & AddPublicKeyList(const PublicKey &value)
void SetPublicKeyList(const Aws::Vector< PublicKey > &value)
ListPublicKeysResult & WithNextToken(const char *value)
ListPublicKeysResult & WithPublicKeyList(const Aws::Vector< PublicKey > &value)
ListPublicKeysResult & WithPublicKeyList(Aws::Vector< PublicKey > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ListPublicKeysResult & WithNextToken(const Aws::String &value)
ListPublicKeysResult & WithNextToken(Aws::String &&value)
void SetPublicKeyList(Aws::Vector< PublicKey > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< PublicKey > & GetPublicKeyList() const
#define AWS_CLOUDTRAIL_API
JSON (JavaScript Object Notation).
ListPublicKeysResult & AddPublicKeyList(PublicKey &&value)