AWS SDK for C++  1.9.105
AWS SDK for C++
ListPoliciesRequest.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 "ListPolicies"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
50  inline const PolicyType& GetFilter() const{ return m_filter; }
51 
64  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
65 
78  inline void SetFilter(const PolicyType& value) { m_filterHasBeenSet = true; m_filter = value; }
79 
92  inline void SetFilter(PolicyType&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
93 
106  inline ListPoliciesRequest& WithFilter(const PolicyType& value) { SetFilter(value); return *this;}
107 
120  inline ListPoliciesRequest& WithFilter(PolicyType&& value) { SetFilter(std::move(value)); return *this;}
121 
122 
130  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
131 
139  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
140 
148  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
149 
157  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
158 
166  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
167 
175  inline ListPoliciesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
176 
184  inline ListPoliciesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
185 
193  inline ListPoliciesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
194 
195 
207  inline int GetMaxResults() const{ return m_maxResults; }
208 
220  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
221 
233  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
234 
246  inline ListPoliciesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
247 
248  private:
249 
250  PolicyType m_filter;
251  bool m_filterHasBeenSet;
252 
253  Aws::String m_nextToken;
254  bool m_nextTokenHasBeenSet;
255 
256  int m_maxResults;
257  bool m_maxResultsHasBeenSet;
258  };
259 
260 } // namespace Model
261 } // namespace Organizations
262 } // namespace Aws
Aws::Organizations::Model::ListPoliciesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPoliciesRequest.h:31
Aws::Organizations::Model::ListPoliciesRequest
Definition: ListPoliciesRequest.h:23
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::ListPoliciesRequest::WithFilter
ListPoliciesRequest & WithFilter(PolicyType &&value)
Definition: ListPoliciesRequest.h:120
Aws::Organizations::Model::ListPoliciesRequest::WithNextToken
ListPoliciesRequest & WithNextToken(Aws::String &&value)
Definition: ListPoliciesRequest.h:184
Aws::Organizations::Model::ListPoliciesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::ListPoliciesRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: ListPoliciesRequest.h:64
Aws::Organizations::Model::ListPoliciesRequest::WithNextToken
ListPoliciesRequest & WithNextToken(const char *value)
Definition: ListPoliciesRequest.h:193
Aws::Organizations::Model::ListPoliciesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListPoliciesRequest.h:139
Aws::Organizations::Model::ListPoliciesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPoliciesRequest.h:130
Aws::Organizations::Model::ListPoliciesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListPoliciesRequest.h:207
PolicyType.h
Aws::Organizations::Model::ListPoliciesRequest::WithFilter
ListPoliciesRequest & WithFilter(const PolicyType &value)
Definition: ListPoliciesRequest.h:106
Aws::Organizations::Model::ListPoliciesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPoliciesRequest.h:148
Aws::Organizations::Model::ListPoliciesRequest::SetFilter
void SetFilter(const PolicyType &value)
Definition: ListPoliciesRequest.h:78
Aws::Organizations::Model::ListPoliciesRequest::SetFilter
void SetFilter(PolicyType &&value)
Definition: ListPoliciesRequest.h:92
Aws::Organizations::Model::ListPoliciesRequest::WithNextToken
ListPoliciesRequest & WithNextToken(const Aws::String &value)
Definition: ListPoliciesRequest.h:175
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListPoliciesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListPoliciesRequest.h:220
Aws::Organizations::Model::ListPoliciesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::PolicyType
PolicyType
Definition: PolicyType.h:17
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::ListPoliciesRequest::ListPoliciesRequest
ListPoliciesRequest()
AWSString.h
Aws::Organizations::Model::ListPoliciesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPoliciesRequest.h:157
Aws::Organizations::Model::ListPoliciesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListPoliciesRequest.h:166
Aws::Organizations::Model::ListPoliciesRequest::GetFilter
const PolicyType & GetFilter() const
Definition: ListPoliciesRequest.h:50
Aws::Organizations::Model::ListPoliciesRequest::WithMaxResults
ListPoliciesRequest & WithMaxResults(int value)
Definition: ListPoliciesRequest.h:246
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListPoliciesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListPoliciesRequest.h:233
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
OrganizationsRequest.h