AWS SDK for C++  0.14.3
AWS SDK for C++
ListRetirableGrantsResult.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<GrantListEntry>& GetGrants() const{ return m_grants; }
48 
52  inline void SetGrants(const Aws::Vector<GrantListEntry>& value) { m_grants = value; }
53 
57  inline void SetGrants(Aws::Vector<GrantListEntry>&& value) { m_grants = value; }
58 
62  inline ListRetirableGrantsResult& WithGrants(const Aws::Vector<GrantListEntry>& value) { SetGrants(value); return *this;}
63 
67  inline ListRetirableGrantsResult& WithGrants(Aws::Vector<GrantListEntry>&& value) { SetGrants(value); return *this;}
68 
72  inline ListRetirableGrantsResult& AddGrants(const GrantListEntry& value) { m_grants.push_back(value); return *this; }
73 
77  inline ListRetirableGrantsResult& AddGrants(GrantListEntry&& value) { m_grants.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 ListRetirableGrantsResult& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;}
113 
119  inline ListRetirableGrantsResult& WithNextMarker(Aws::String&& value) { SetNextMarker(value); return *this;}
120 
126  inline ListRetirableGrantsResult& 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 ListRetirableGrantsResult& 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
ListRetirableGrantsResult & AddGrants(const GrantListEntry &value)
void SetGrants(const Aws::Vector< GrantListEntry > &value)
ListRetirableGrantsResult & WithNextMarker(const char *value)
void SetGrants(Aws::Vector< GrantListEntry > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ListRetirableGrantsResult & WithNextMarker(Aws::String &&value)
ListRetirableGrantsResult & WithGrants(Aws::Vector< GrantListEntry > &&value)
const Aws::Vector< GrantListEntry > & GetGrants() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListRetirableGrantsResult & AddGrants(GrantListEntry &&value)
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:37
ListRetirableGrantsResult & WithGrants(const Aws::Vector< GrantListEntry > &value)
JSON (JavaScript Object Notation).
ListRetirableGrantsResult & WithNextMarker(const Aws::String &value)
ListRetirableGrantsResult & WithTruncated(bool value)