AWS SDK for C++  1.9.108
AWS SDK for C++
ListPoliciesForTargetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Organizations
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ListPoliciesForTarget"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
50  inline const Aws::String& GetTargetId() const{ return m_targetId; }
51 
64  inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
65 
78  inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
79 
92  inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
93 
106  inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
107 
120  inline ListPoliciesForTargetRequest& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
121 
134  inline ListPoliciesForTargetRequest& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
135 
148  inline ListPoliciesForTargetRequest& WithTargetId(const char* value) { SetTargetId(value); return *this;}
149 
150 
163  inline const PolicyType& GetFilter() const{ return m_filter; }
164 
177  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
178 
191  inline void SetFilter(const PolicyType& value) { m_filterHasBeenSet = true; m_filter = value; }
192 
205  inline void SetFilter(PolicyType&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
206 
219  inline ListPoliciesForTargetRequest& WithFilter(const PolicyType& value) { SetFilter(value); return *this;}
220 
233  inline ListPoliciesForTargetRequest& WithFilter(PolicyType&& value) { SetFilter(std::move(value)); return *this;}
234 
235 
243  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
244 
252  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
253 
261  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
262 
270  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
271 
279  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
280 
288  inline ListPoliciesForTargetRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
289 
297  inline ListPoliciesForTargetRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
298 
306  inline ListPoliciesForTargetRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
307 
308 
320  inline int GetMaxResults() const{ return m_maxResults; }
321 
333  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
334 
346  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
347 
359  inline ListPoliciesForTargetRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
360 
361  private:
362 
363  Aws::String m_targetId;
364  bool m_targetIdHasBeenSet;
365 
366  PolicyType m_filter;
367  bool m_filterHasBeenSet;
368 
369  Aws::String m_nextToken;
370  bool m_nextTokenHasBeenSet;
371 
372  int m_maxResults;
373  bool m_maxResultsHasBeenSet;
374  };
375 
376 } // namespace Model
377 } // namespace Organizations
378 } // namespace Aws
Aws::Organizations::Model::ListPoliciesForTargetRequest::SetFilter
void SetFilter(const PolicyType &value)
Definition: ListPoliciesForTargetRequest.h:191
Aws::Organizations::Model::ListPoliciesForTargetRequest::WithTargetId
ListPoliciesForTargetRequest & WithTargetId(const char *value)
Definition: ListPoliciesForTargetRequest.h:148
Aws::Organizations::Model::ListPoliciesForTargetRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListPoliciesForTargetRequest.h:279
Aws::Organizations::Model::ListPoliciesForTargetRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: ListPoliciesForTargetRequest.h:177
Aws::Organizations::Model::ListPoliciesForTargetRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListPoliciesForTargetRequest.h:346
Aws::Organizations::Model::ListPoliciesForTargetRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPoliciesForTargetRequest.h:243
Aws::Organizations::Model::ListPoliciesForTargetRequest::WithFilter
ListPoliciesForTargetRequest & WithFilter(const PolicyType &value)
Definition: ListPoliciesForTargetRequest.h:219
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::ListPoliciesForTargetRequest::WithMaxResults
ListPoliciesForTargetRequest & WithMaxResults(int value)
Definition: ListPoliciesForTargetRequest.h:359
Aws::Organizations::Model::ListPoliciesForTargetRequest::ListPoliciesForTargetRequest
ListPoliciesForTargetRequest()
Aws::Organizations::Model::ListPoliciesForTargetRequest::WithNextToken
ListPoliciesForTargetRequest & WithNextToken(const Aws::String &value)
Definition: ListPoliciesForTargetRequest.h:288
Aws::Organizations::Model::ListPoliciesForTargetRequest
Definition: ListPoliciesForTargetRequest.h:23
Aws::Organizations::Model::ListPoliciesForTargetRequest::SetTargetId
void SetTargetId(const Aws::String &value)
Definition: ListPoliciesForTargetRequest.h:78
Aws::Organizations::Model::ListPoliciesForTargetRequest::GetFilter
const PolicyType & GetFilter() const
Definition: ListPoliciesForTargetRequest.h:163
Aws::Organizations::Model::ListPoliciesForTargetRequest::SetTargetId
void SetTargetId(Aws::String &&value)
Definition: ListPoliciesForTargetRequest.h:92
PolicyType.h
Aws::Organizations::Model::ListPoliciesForTargetRequest::GetMaxResults
int GetMaxResults() const
Definition: ListPoliciesForTargetRequest.h:320
Aws::Organizations::Model::ListPoliciesForTargetRequest::WithFilter
ListPoliciesForTargetRequest & WithFilter(PolicyType &&value)
Definition: ListPoliciesForTargetRequest.h:233
Aws::Organizations::Model::ListPoliciesForTargetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPoliciesForTargetRequest.h:31
Aws::Organizations::Model::ListPoliciesForTargetRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListPoliciesForTargetRequest.h:333
Aws::Organizations::Model::ListPoliciesForTargetRequest::TargetIdHasBeenSet
bool TargetIdHasBeenSet() const
Definition: ListPoliciesForTargetRequest.h:64
Aws::Organizations::Model::ListPoliciesForTargetRequest::SetFilter
void SetFilter(PolicyType &&value)
Definition: ListPoliciesForTargetRequest.h:205
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::PolicyType
PolicyType
Definition: PolicyType.h:17
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::ListPoliciesForTargetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::Organizations::Model::ListPoliciesForTargetRequest::GetTargetId
const Aws::String & GetTargetId() const
Definition: ListPoliciesForTargetRequest.h:50
Aws::Organizations::Model::ListPoliciesForTargetRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPoliciesForTargetRequest.h:261
Aws::Organizations::Model::ListPoliciesForTargetRequest::WithTargetId
ListPoliciesForTargetRequest & WithTargetId(Aws::String &&value)
Definition: ListPoliciesForTargetRequest.h:134
Aws::Organizations::Model::ListPoliciesForTargetRequest::WithTargetId
ListPoliciesForTargetRequest & WithTargetId(const Aws::String &value)
Definition: ListPoliciesForTargetRequest.h:120
Aws::Organizations::Model::ListPoliciesForTargetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::ListPoliciesForTargetRequest::WithNextToken
ListPoliciesForTargetRequest & WithNextToken(Aws::String &&value)
Definition: ListPoliciesForTargetRequest.h:297
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListPoliciesForTargetRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPoliciesForTargetRequest.h:270
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::ListPoliciesForTargetRequest::SetTargetId
void SetTargetId(const char *value)
Definition: ListPoliciesForTargetRequest.h:106
Aws::Organizations::Model::ListPoliciesForTargetRequest::WithNextToken
ListPoliciesForTargetRequest & WithNextToken(const char *value)
Definition: ListPoliciesForTargetRequest.h:306
Aws::Organizations::Model::ListPoliciesForTargetRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListPoliciesForTargetRequest.h:252
OrganizationsRequest.h