AWS SDK for C++  1.9.109
AWS SDK for C++
ListPoliciesForTargetResult.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 
40  inline const Aws::Vector<PolicySummary>& GetPolicies() const{ return m_policies; }
41 
45  inline void SetPolicies(const Aws::Vector<PolicySummary>& value) { m_policies = value; }
46 
50  inline void SetPolicies(Aws::Vector<PolicySummary>&& value) { m_policies = std::move(value); }
51 
55  inline ListPoliciesForTargetResult& WithPolicies(const Aws::Vector<PolicySummary>& value) { SetPolicies(value); return *this;}
56 
60  inline ListPoliciesForTargetResult& WithPolicies(Aws::Vector<PolicySummary>&& value) { SetPolicies(std::move(value)); return *this;}
61 
65  inline ListPoliciesForTargetResult& AddPolicies(const PolicySummary& value) { m_policies.push_back(value); return *this; }
66 
70  inline ListPoliciesForTargetResult& AddPolicies(PolicySummary&& value) { m_policies.push_back(std::move(value)); return *this; }
71 
72 
80  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
81 
89  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
90 
98  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
99 
107  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
108 
116  inline ListPoliciesForTargetResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
117 
125  inline ListPoliciesForTargetResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
126 
134  inline ListPoliciesForTargetResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
135 
136  private:
137 
138  Aws::Vector<PolicySummary> m_policies;
139 
140  Aws::String m_nextToken;
141  };
142 
143 } // namespace Model
144 } // namespace Organizations
145 } // namespace Aws
Aws::Organizations::Model::ListPoliciesForTargetResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPoliciesForTargetResult.h:80
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Organizations::Model::ListPoliciesForTargetResult::WithPolicies
ListPoliciesForTargetResult & WithPolicies(const Aws::Vector< PolicySummary > &value)
Definition: ListPoliciesForTargetResult.h:55
Aws::Organizations::Model::ListPoliciesForTargetResult::SetPolicies
void SetPolicies(Aws::Vector< PolicySummary > &&value)
Definition: ListPoliciesForTargetResult.h:50
Aws::Organizations::Model::ListPoliciesForTargetResult::WithNextToken
ListPoliciesForTargetResult & WithNextToken(Aws::String &&value)
Definition: ListPoliciesForTargetResult.h:125
Aws::Organizations::Model::ListPoliciesForTargetResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPoliciesForTargetResult.h:98
Aws::Organizations::Model::ListPoliciesForTargetResult::AddPolicies
ListPoliciesForTargetResult & AddPolicies(const PolicySummary &value)
Definition: ListPoliciesForTargetResult.h:65
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::ListPoliciesForTargetResult::ListPoliciesForTargetResult
ListPoliciesForTargetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
Aws::Organizations::Model::ListPoliciesForTargetResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListPoliciesForTargetResult.h:107
Aws::Organizations::Model::ListPoliciesForTargetResult::WithNextToken
ListPoliciesForTargetResult & WithNextToken(const Aws::String &value)
Definition: ListPoliciesForTargetResult.h:116
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListPoliciesForTargetResult::operator=
ListPoliciesForTargetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Organizations::Model::ListPoliciesForTargetResult::AddPolicies
ListPoliciesForTargetResult & AddPolicies(PolicySummary &&value)
Definition: ListPoliciesForTargetResult.h:70
PolicySummary.h
AWSString.h
Aws::Organizations::Model::PolicySummary
Definition: PolicySummary.h:35
Aws::Organizations::Model::ListPoliciesForTargetResult
Definition: ListPoliciesForTargetResult.h:30
Aws::Organizations::Model::ListPoliciesForTargetResult::WithNextToken
ListPoliciesForTargetResult & WithNextToken(const char *value)
Definition: ListPoliciesForTargetResult.h:134
Aws::Organizations::Model::ListPoliciesForTargetResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPoliciesForTargetResult.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListPoliciesForTargetResult::SetPolicies
void SetPolicies(const Aws::Vector< PolicySummary > &value)
Definition: ListPoliciesForTargetResult.h:45
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::ListPoliciesForTargetResult::ListPoliciesForTargetResult
ListPoliciesForTargetResult()
Organizations_EXPORTS.h
Aws::Organizations::Model::ListPoliciesForTargetResult::GetPolicies
const Aws::Vector< PolicySummary > & GetPolicies() const
Definition: ListPoliciesForTargetResult.h:40
Aws::Organizations::Model::ListPoliciesForTargetResult::WithPolicies
ListPoliciesForTargetResult & WithPolicies(Aws::Vector< PolicySummary > &&value)
Definition: ListPoliciesForTargetResult.h:60