AWS SDK for C++

AWS SDK for C++ Version 1.11.713

Loading...
Searching...
No Matches
GetResourcePoliciesResult.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/RAM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace RAM {
23namespace Model {
25 public:
26 AWS_RAM_API GetResourcePoliciesResult() = default;
29
31
34 inline const Aws::Vector<Aws::String>& GetPolicies() const { return m_policies; }
35 template <typename PoliciesT = Aws::Vector<Aws::String>>
36 void SetPolicies(PoliciesT&& value) {
37 m_policiesHasBeenSet = true;
38 m_policies = std::forward<PoliciesT>(value);
39 }
40 template <typename PoliciesT = Aws::Vector<Aws::String>>
42 SetPolicies(std::forward<PoliciesT>(value));
43 return *this;
44 }
45 template <typename PoliciesT = Aws::String>
47 m_policiesHasBeenSet = true;
48 m_policies.emplace_back(std::forward<PoliciesT>(value));
49 return *this;
50 }
52
54
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 template <typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) {
65 m_nextTokenHasBeenSet = true;
66 m_nextToken = std::forward<NextTokenT>(value);
67 }
68 template <typename NextTokenT = Aws::String>
70 SetNextToken(std::forward<NextTokenT>(value));
71 return *this;
72 }
74
76
77 inline const Aws::String& GetRequestId() const { return m_requestId; }
78 template <typename RequestIdT = Aws::String>
79 void SetRequestId(RequestIdT&& value) {
80 m_requestIdHasBeenSet = true;
81 m_requestId = std::forward<RequestIdT>(value);
82 }
83 template <typename RequestIdT = Aws::String>
85 SetRequestId(std::forward<RequestIdT>(value));
86 return *this;
87 }
89 private:
90 Aws::Vector<Aws::String> m_policies;
91
92 Aws::String m_nextToken;
93
94 Aws::String m_requestId;
95 bool m_policiesHasBeenSet = false;
96 bool m_nextTokenHasBeenSet = false;
97 bool m_requestIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace RAM
102} // namespace Aws
GetResourcePoliciesResult & WithRequestId(RequestIdT &&value)
AWS_RAM_API GetResourcePoliciesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Aws::String > & GetPolicies() const
GetResourcePoliciesResult & WithNextToken(NextTokenT &&value)
GetResourcePoliciesResult & WithPolicies(PoliciesT &&value)
AWS_RAM_API GetResourcePoliciesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_RAM_API GetResourcePoliciesResult()=default
GetResourcePoliciesResult & AddPolicies(PoliciesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue