AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
ListPrincipalsResult.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#include <aws/ram/model/Principal.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace RAM {
24namespace Model {
26 public:
27 AWS_RAM_API ListPrincipalsResult() = default;
30
32
35 inline const Aws::Vector<Principal>& GetPrincipals() const { return m_principals; }
36 template <typename PrincipalsT = Aws::Vector<Principal>>
37 void SetPrincipals(PrincipalsT&& value) {
38 m_principalsHasBeenSet = true;
39 m_principals = std::forward<PrincipalsT>(value);
40 }
41 template <typename PrincipalsT = Aws::Vector<Principal>>
42 ListPrincipalsResult& WithPrincipals(PrincipalsT&& value) {
43 SetPrincipals(std::forward<PrincipalsT>(value));
44 return *this;
45 }
46 template <typename PrincipalsT = Principal>
47 ListPrincipalsResult& AddPrincipals(PrincipalsT&& value) {
48 m_principalsHasBeenSet = true;
49 m_principals.emplace_back(std::forward<PrincipalsT>(value));
50 return *this;
51 }
53
55
63 inline const Aws::String& GetNextToken() const { return m_nextToken; }
64 template <typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) {
66 m_nextTokenHasBeenSet = true;
67 m_nextToken = std::forward<NextTokenT>(value);
68 }
69 template <typename NextTokenT = Aws::String>
70 ListPrincipalsResult& WithNextToken(NextTokenT&& value) {
71 SetNextToken(std::forward<NextTokenT>(value));
72 return *this;
73 }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template <typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) {
81 m_requestIdHasBeenSet = true;
82 m_requestId = std::forward<RequestIdT>(value);
83 }
84 template <typename RequestIdT = Aws::String>
85 ListPrincipalsResult& WithRequestId(RequestIdT&& value) {
86 SetRequestId(std::forward<RequestIdT>(value));
87 return *this;
88 }
90 private:
91 Aws::Vector<Principal> m_principals;
92
93 Aws::String m_nextToken;
94
95 Aws::String m_requestId;
96 bool m_principalsHasBeenSet = false;
97 bool m_nextTokenHasBeenSet = false;
98 bool m_requestIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace RAM
103} // namespace Aws
const Aws::String & GetRequestId() const
ListPrincipalsResult & WithNextToken(NextTokenT &&value)
ListPrincipalsResult & WithRequestId(RequestIdT &&value)
AWS_RAM_API ListPrincipalsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_RAM_API ListPrincipalsResult()=default
ListPrincipalsResult & WithPrincipals(PrincipalsT &&value)
const Aws::String & GetNextToken() const
ListPrincipalsResult & AddPrincipals(PrincipalsT &&value)
const Aws::Vector< Principal > & GetPrincipals() const
AWS_RAM_API ListPrincipalsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue