AWS SDK for C++  1.9.108
AWS SDK for C++
ListTargetsForPolicyResult.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 
41  inline const Aws::Vector<PolicyTargetSummary>& GetTargets() const{ return m_targets; }
42 
47  inline void SetTargets(const Aws::Vector<PolicyTargetSummary>& value) { m_targets = value; }
48 
53  inline void SetTargets(Aws::Vector<PolicyTargetSummary>&& value) { m_targets = std::move(value); }
54 
59  inline ListTargetsForPolicyResult& WithTargets(const Aws::Vector<PolicyTargetSummary>& value) { SetTargets(value); return *this;}
60 
65  inline ListTargetsForPolicyResult& WithTargets(Aws::Vector<PolicyTargetSummary>&& value) { SetTargets(std::move(value)); return *this;}
66 
71  inline ListTargetsForPolicyResult& AddTargets(const PolicyTargetSummary& value) { m_targets.push_back(value); return *this; }
72 
77  inline ListTargetsForPolicyResult& AddTargets(PolicyTargetSummary&& value) { m_targets.push_back(std::move(value)); return *this; }
78 
79 
87  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
88 
96  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
97 
105  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
106 
114  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
115 
123  inline ListTargetsForPolicyResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
124 
132  inline ListTargetsForPolicyResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
133 
141  inline ListTargetsForPolicyResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
142 
143  private:
144 
146 
147  Aws::String m_nextToken;
148  };
149 
150 } // namespace Model
151 } // namespace Organizations
152 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Organizations::Model::ListTargetsForPolicyResult::AddTargets
ListTargetsForPolicyResult & AddTargets(PolicyTargetSummary &&value)
Definition: ListTargetsForPolicyResult.h:77
PolicyTargetSummary.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::PolicyTargetSummary
Definition: PolicyTargetSummary.h:34
Aws::Organizations::Model::ListTargetsForPolicyResult::SetTargets
void SetTargets(const Aws::Vector< PolicyTargetSummary > &value)
Definition: ListTargetsForPolicyResult.h:47
AWSVector.h
Aws::Organizations::Model::ListTargetsForPolicyResult::WithNextToken
ListTargetsForPolicyResult & WithNextToken(const char *value)
Definition: ListTargetsForPolicyResult.h:141
Aws::Organizations::Model::ListTargetsForPolicyResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTargetsForPolicyResult.h:87
Aws::Organizations::Model::ListTargetsForPolicyResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTargetsForPolicyResult.h:96
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListTargetsForPolicyResult::AddTargets
ListTargetsForPolicyResult & AddTargets(const PolicyTargetSummary &value)
Definition: ListTargetsForPolicyResult.h:71
AWSString.h
Aws::Organizations::Model::ListTargetsForPolicyResult::WithTargets
ListTargetsForPolicyResult & WithTargets(const Aws::Vector< PolicyTargetSummary > &value)
Definition: ListTargetsForPolicyResult.h:59
Aws::Organizations::Model::ListTargetsForPolicyResult::WithNextToken
ListTargetsForPolicyResult & WithNextToken(Aws::String &&value)
Definition: ListTargetsForPolicyResult.h:132
Aws::Organizations::Model::ListTargetsForPolicyResult::operator=
ListTargetsForPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Organizations::Model::ListTargetsForPolicyResult::WithTargets
ListTargetsForPolicyResult & WithTargets(Aws::Vector< PolicyTargetSummary > &&value)
Definition: ListTargetsForPolicyResult.h:65
Aws::Organizations::Model::ListTargetsForPolicyResult::WithNextToken
ListTargetsForPolicyResult & WithNextToken(const Aws::String &value)
Definition: ListTargetsForPolicyResult.h:123
Aws::Organizations::Model::ListTargetsForPolicyResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTargetsForPolicyResult.h:105
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListTargetsForPolicyResult::GetTargets
const Aws::Vector< PolicyTargetSummary > & GetTargets() const
Definition: ListTargetsForPolicyResult.h:41
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::ListTargetsForPolicyResult
Definition: ListTargetsForPolicyResult.h:30
Aws::Organizations::Model::ListTargetsForPolicyResult::ListTargetsForPolicyResult
ListTargetsForPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Organizations::Model::ListTargetsForPolicyResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListTargetsForPolicyResult.h:114
Aws::Organizations::Model::ListTargetsForPolicyResult::SetTargets
void SetTargets(Aws::Vector< PolicyTargetSummary > &&value)
Definition: ListTargetsForPolicyResult.h:53
Aws::Organizations::Model::ListTargetsForPolicyResult::ListTargetsForPolicyResult
ListTargetsForPolicyResult()