AWS SDK for C++  0.14.3
AWS SDK for C++
ListKeysResult.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
16 #include <aws/kms/KMS_EXPORTS.h>
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 KMS
34 {
35 namespace Model
36 {
38  {
39  public:
43 
47  inline const Aws::Vector<KeyListEntry>& GetKeys() const{ return m_keys; }
48 
52  inline void SetKeys(const Aws::Vector<KeyListEntry>& value) { m_keys = value; }
53 
57  inline void SetKeys(Aws::Vector<KeyListEntry>&& value) { m_keys = value; }
58 
62  inline ListKeysResult& WithKeys(const Aws::Vector<KeyListEntry>& value) { SetKeys(value); return *this;}
63 
67  inline ListKeysResult& WithKeys(Aws::Vector<KeyListEntry>&& value) { SetKeys(value); return *this;}
68 
72  inline ListKeysResult& AddKeys(const KeyListEntry& value) { m_keys.push_back(value); return *this; }
73 
77  inline ListKeysResult& AddKeys(KeyListEntry&& value) { m_keys.push_back(value); return *this; }
78 
84  inline const Aws::String& GetNextMarker() const{ return m_nextMarker; }
85 
91  inline void SetNextMarker(const Aws::String& value) { m_nextMarker = value; }
92 
98  inline void SetNextMarker(Aws::String&& value) { m_nextMarker = value; }
99 
105  inline void SetNextMarker(const char* value) { m_nextMarker.assign(value); }
106 
112  inline ListKeysResult& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;}
113 
119  inline ListKeysResult& WithNextMarker(Aws::String&& value) { SetNextMarker(value); return *this;}
120 
126  inline ListKeysResult& WithNextMarker(const char* value) { SetNextMarker(value); return *this;}
127 
133  inline bool GetTruncated() const{ return m_truncated; }
134 
140  inline void SetTruncated(bool value) { m_truncated = value; }
141 
147  inline ListKeysResult& WithTruncated(bool value) { SetTruncated(value); return *this;}
148 
149  private:
151  Aws::String m_nextMarker;
152  bool m_truncated;
153  };
154 
155 } // namespace Model
156 } // namespace KMS
157 } // namespace Aws
const Aws::String & GetNextMarker() const
ListKeysResult & WithKeys(const Aws::Vector< KeyListEntry > &value)
void SetNextMarker(const char *value)
Definition: KeyListEntry.h:36
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< KeyListEntry > & GetKeys() const
void SetNextMarker(const Aws::String &value)
ListKeysResult & WithNextMarker(const char *value)
void SetKeys(Aws::Vector< KeyListEntry > &&value)
ListKeysResult & AddKeys(const KeyListEntry &value)
void SetKeys(const Aws::Vector< KeyListEntry > &value)
ListKeysResult & WithKeys(Aws::Vector< KeyListEntry > &&value)
void SetNextMarker(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListKeysResult & WithNextMarker(const Aws::String &value)
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:37
ListKeysResult & AddKeys(KeyListEntry &&value)
ListKeysResult & WithTruncated(bool value)
JSON (JavaScript Object Notation).
ListKeysResult & WithNextMarker(Aws::String &&value)