AWS SDK for C++  1.9.161
AWS SDK for C++
ListTargetsForPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Organizations
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ListTargetsForPolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
43  inline const Aws::String& GetPolicyId() const{ return m_policyId; }
44 
51  inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
52 
59  inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
60 
67  inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
68 
75  inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
76 
83  inline ListTargetsForPolicyRequest& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
84 
91  inline ListTargetsForPolicyRequest& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
92 
99  inline ListTargetsForPolicyRequest& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
100 
101 
109  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
110 
118  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
119 
127  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
128 
136  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
137 
145  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
146 
154  inline ListTargetsForPolicyRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
155 
163  inline ListTargetsForPolicyRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
164 
172  inline ListTargetsForPolicyRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
173 
174 
186  inline int GetMaxResults() const{ return m_maxResults; }
187 
199  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
200 
212  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
213 
225  inline ListTargetsForPolicyRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
226 
227  private:
228 
229  Aws::String m_policyId;
230  bool m_policyIdHasBeenSet;
231 
232  Aws::String m_nextToken;
233  bool m_nextTokenHasBeenSet;
234 
235  int m_maxResults;
236  bool m_maxResultsHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace Organizations
241 } // namespace Aws
Aws::Organizations::Model::ListTargetsForPolicyRequest::GetPolicyId
const Aws::String & GetPolicyId() const
Definition: ListTargetsForPolicyRequest.h:43
Aws::Organizations::Model::ListTargetsForPolicyRequest::ListTargetsForPolicyRequest
ListTargetsForPolicyRequest()
Aws::Organizations::Model::ListTargetsForPolicyRequest::SetPolicyId
void SetPolicyId(Aws::String &&value)
Definition: ListTargetsForPolicyRequest.h:67
Aws::Organizations::Model::ListTargetsForPolicyRequest::WithNextToken
ListTargetsForPolicyRequest & WithNextToken(Aws::String &&value)
Definition: ListTargetsForPolicyRequest.h:163
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::ListTargetsForPolicyRequest::WithPolicyId
ListTargetsForPolicyRequest & WithPolicyId(const char *value)
Definition: ListTargetsForPolicyRequest.h:99
Aws::Organizations::Model::ListTargetsForPolicyRequest::WithPolicyId
ListTargetsForPolicyRequest & WithPolicyId(Aws::String &&value)
Definition: ListTargetsForPolicyRequest.h:91
Aws::Organizations::Model::ListTargetsForPolicyRequest::PolicyIdHasBeenSet
bool PolicyIdHasBeenSet() const
Definition: ListTargetsForPolicyRequest.h:51
Aws::Organizations::Model::ListTargetsForPolicyRequest::WithNextToken
ListTargetsForPolicyRequest & WithNextToken(const Aws::String &value)
Definition: ListTargetsForPolicyRequest.h:154
Aws::Organizations::Model::ListTargetsForPolicyRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListTargetsForPolicyRequest.h:212
Aws::Organizations::Model::ListTargetsForPolicyRequest::WithPolicyId
ListTargetsForPolicyRequest & WithPolicyId(const Aws::String &value)
Definition: ListTargetsForPolicyRequest.h:83
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListTargetsForPolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::ListTargetsForPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::ListTargetsForPolicyRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTargetsForPolicyRequest.h:127
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::ListTargetsForPolicyRequest
Definition: ListTargetsForPolicyRequest.h:22
AWSString.h
Aws::Organizations::Model::ListTargetsForPolicyRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTargetsForPolicyRequest.h:109
Aws::Organizations::Model::ListTargetsForPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTargetsForPolicyRequest.h:30
Aws::Organizations::Model::ListTargetsForPolicyRequest::GetMaxResults
int GetMaxResults() const
Definition: ListTargetsForPolicyRequest.h:186
Aws::Organizations::Model::ListTargetsForPolicyRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTargetsForPolicyRequest.h:136
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListTargetsForPolicyRequest::SetPolicyId
void SetPolicyId(const Aws::String &value)
Definition: ListTargetsForPolicyRequest.h:59
Aws::Organizations::Model::ListTargetsForPolicyRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListTargetsForPolicyRequest.h:199
Aws::Organizations::Model::ListTargetsForPolicyRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTargetsForPolicyRequest.h:118
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::ListTargetsForPolicyRequest::WithNextToken
ListTargetsForPolicyRequest & WithNextToken(const char *value)
Definition: ListTargetsForPolicyRequest.h:172
Aws::Organizations::Model::ListTargetsForPolicyRequest::SetPolicyId
void SetPolicyId(const char *value)
Definition: ListTargetsForPolicyRequest.h:75
Aws::Organizations::Model::ListTargetsForPolicyRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTargetsForPolicyRequest.h:145
Aws::Organizations::Model::ListTargetsForPolicyRequest::WithMaxResults
ListTargetsForPolicyRequest & WithMaxResults(int value)
Definition: ListTargetsForPolicyRequest.h:225
OrganizationsRequest.h