AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListPoliciesRequest.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/organizations/OrganizationsRequest.h>
9#include <aws/organizations/model/PolicyType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Organizations
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ORGANIZATIONS_API ListPoliciesRequest();
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_ORGANIZATIONS_API Aws::String SerializePayload() const override;
34
35 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
53 inline const PolicyType& GetFilter() const{ return m_filter; }
54 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
55 inline void SetFilter(const PolicyType& value) { m_filterHasBeenSet = true; m_filter = value; }
56 inline void SetFilter(PolicyType&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
57 inline ListPoliciesRequest& WithFilter(const PolicyType& value) { SetFilter(value); return *this;}
58 inline ListPoliciesRequest& WithFilter(PolicyType&& value) { SetFilter(std::move(value)); return *this;}
60
62
69 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
70 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
71 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
72 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
73 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
74 inline ListPoliciesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
75 inline ListPoliciesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
76 inline ListPoliciesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
78
80
91 inline int GetMaxResults() const{ return m_maxResults; }
92 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
93 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
94 inline ListPoliciesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
96 private:
97
98 PolicyType m_filter;
99 bool m_filterHasBeenSet = false;
100
101 Aws::String m_nextToken;
102 bool m_nextTokenHasBeenSet = false;
103
104 int m_maxResults;
105 bool m_maxResultsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Organizations
110} // namespace Aws
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
ListPoliciesRequest & WithFilter(PolicyType &&value)
virtual const char * GetServiceRequestName() const override
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListPoliciesRequest & WithNextToken(const Aws::String &value)
ListPoliciesRequest & WithFilter(const PolicyType &value)
ListPoliciesRequest & WithNextToken(const char *value)
ListPoliciesRequest & WithNextToken(Aws::String &&value)
ListPoliciesRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String