AWS SDK for C++  1.9.108
AWS SDK for C++
ListPoliciesResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Organizations
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
42  inline const Aws::Vector<PolicySummary>& GetPolicies() const{ return m_policies; }
43 
49  inline void SetPolicies(const Aws::Vector<PolicySummary>& value) { m_policies = value; }
50 
56  inline void SetPolicies(Aws::Vector<PolicySummary>&& value) { m_policies = std::move(value); }
57 
63  inline ListPoliciesResult& WithPolicies(const Aws::Vector<PolicySummary>& value) { SetPolicies(value); return *this;}
64 
70  inline ListPoliciesResult& WithPolicies(Aws::Vector<PolicySummary>&& value) { SetPolicies(std::move(value)); return *this;}
71 
77  inline ListPoliciesResult& AddPolicies(const PolicySummary& value) { m_policies.push_back(value); return *this; }
78 
84  inline ListPoliciesResult& AddPolicies(PolicySummary&& value) { m_policies.push_back(std::move(value)); return *this; }
85 
86 
94  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
95 
103  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
104 
112  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
113 
121  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
122 
130  inline ListPoliciesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
131 
139  inline ListPoliciesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
140 
148  inline ListPoliciesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
149 
150  private:
151 
152  Aws::Vector<PolicySummary> m_policies;
153 
154  Aws::String m_nextToken;
155  };
156 
157 } // namespace Model
158 } // namespace Organizations
159 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Organizations::Model::ListPoliciesResult::SetPolicies
void SetPolicies(const Aws::Vector< PolicySummary > &value)
Definition: ListPoliciesResult.h:49
Aws::Organizations::Model::ListPoliciesResult::WithPolicies
ListPoliciesResult & WithPolicies(const Aws::Vector< PolicySummary > &value)
Definition: ListPoliciesResult.h:63
Aws::Organizations::Model::ListPoliciesResult::WithPolicies
ListPoliciesResult & WithPolicies(Aws::Vector< PolicySummary > &&value)
Definition: ListPoliciesResult.h:70
Aws::Organizations::Model::ListPoliciesResult::AddPolicies
ListPoliciesResult & AddPolicies(const PolicySummary &value)
Definition: ListPoliciesResult.h:77
Aws::Organizations::Model::ListPoliciesResult::SetPolicies
void SetPolicies(Aws::Vector< PolicySummary > &&value)
Definition: ListPoliciesResult.h:56
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::ListPoliciesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPoliciesResult.h:94
AWSVector.h
Aws::Organizations::Model::ListPoliciesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPoliciesResult.h:112
Aws::Organizations::Model::ListPoliciesResult::ListPoliciesResult
ListPoliciesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Organizations::Model::ListPoliciesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListPoliciesResult.h:121
Aws::Organizations::Model::ListPoliciesResult::WithNextToken
ListPoliciesResult & WithNextToken(const char *value)
Definition: ListPoliciesResult.h:148
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListPoliciesResult::WithNextToken
ListPoliciesResult & WithNextToken(const Aws::String &value)
Definition: ListPoliciesResult.h:130
Aws::Organizations::Model::ListPoliciesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPoliciesResult.h:103
Aws::Organizations::Model::ListPoliciesResult::ListPoliciesResult
ListPoliciesResult()
PolicySummary.h
AWSString.h
Aws::Organizations::Model::ListPoliciesResult
Definition: ListPoliciesResult.h:30
Aws::Organizations::Model::PolicySummary
Definition: PolicySummary.h:35
Aws::Organizations::Model::ListPoliciesResult::operator=
ListPoliciesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListPoliciesResult::WithNextToken
ListPoliciesResult & WithNextToken(Aws::String &&value)
Definition: ListPoliciesResult.h:139
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::ListPoliciesResult::AddPolicies
ListPoliciesResult & AddPolicies(PolicySummary &&value)
Definition: ListPoliciesResult.h:84
Organizations_EXPORTS.h
Aws::Organizations::Model::ListPoliciesResult::GetPolicies
const Aws::Vector< PolicySummary > & GetPolicies() const
Definition: ListPoliciesResult.h:42