AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
GetResourcePoliciesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ram/RAMRequest.h>
10#include <aws/ram/RAM_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace RAM {
16namespace Model {
17
21 public:
22 AWS_RAM_API GetResourcePoliciesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetResourcePolicies"; }
29
30 AWS_RAM_API Aws::String SerializePayload() const override;
31
33
39 inline const Aws::Vector<Aws::String>& GetResourceArns() const { return m_resourceArns; }
40 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
41 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
42 void SetResourceArns(ResourceArnsT&& value) {
43 m_resourceArnsHasBeenSet = true;
44 m_resourceArns = std::forward<ResourceArnsT>(value);
45 }
46 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
48 SetResourceArns(std::forward<ResourceArnsT>(value));
49 return *this;
50 }
51 template <typename ResourceArnsT = Aws::String>
53 m_resourceArnsHasBeenSet = true;
54 m_resourceArns.emplace_back(std::forward<ResourceArnsT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetPrincipal() const { return m_principal; }
64 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
65 template <typename PrincipalT = Aws::String>
66 void SetPrincipal(PrincipalT&& value) {
67 m_principalHasBeenSet = true;
68 m_principal = std::forward<PrincipalT>(value);
69 }
70 template <typename PrincipalT = Aws::String>
72 SetPrincipal(std::forward<PrincipalT>(value));
73 return *this;
74 }
76
78
85 inline const Aws::String& GetNextToken() const { return m_nextToken; }
86 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
87 template <typename NextTokenT = Aws::String>
88 void SetNextToken(NextTokenT&& value) {
89 m_nextTokenHasBeenSet = true;
90 m_nextToken = std::forward<NextTokenT>(value);
91 }
92 template <typename NextTokenT = Aws::String>
94 SetNextToken(std::forward<NextTokenT>(value));
95 return *this;
96 }
98
100
111 inline int GetMaxResults() const { return m_maxResults; }
112 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
113 inline void SetMaxResults(int value) {
114 m_maxResultsHasBeenSet = true;
115 m_maxResults = value;
116 }
118 SetMaxResults(value);
119 return *this;
120 }
122 private:
123 Aws::Vector<Aws::String> m_resourceArns;
124
125 Aws::String m_principal;
126
127 Aws::String m_nextToken;
128
129 int m_maxResults{0};
130 bool m_resourceArnsHasBeenSet = false;
131 bool m_principalHasBeenSet = false;
132 bool m_nextTokenHasBeenSet = false;
133 bool m_maxResultsHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace RAM
138} // namespace Aws
AWS_RAM_API GetResourcePoliciesRequest()=default
virtual const char * GetServiceRequestName() const override
GetResourcePoliciesRequest & WithResourceArns(ResourceArnsT &&value)
GetResourcePoliciesRequest & WithMaxResults(int value)
GetResourcePoliciesRequest & AddResourceArns(ResourceArnsT &&value)
GetResourcePoliciesRequest & WithNextToken(NextTokenT &&value)
AWS_RAM_API Aws::String SerializePayload() const override
GetResourcePoliciesRequest & WithPrincipal(PrincipalT &&value)
const Aws::Vector< Aws::String > & GetResourceArns() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector