AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
GetResourceShareInvitationsRequest.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 GetResourceShareInvitationsRequest() = 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 "GetResourceShareInvitations"; }
29
30 AWS_RAM_API Aws::String SerializePayload() const override;
31
33
39 inline const Aws::Vector<Aws::String>& GetResourceShareInvitationArns() const { return m_resourceShareInvitationArns; }
40 inline bool ResourceShareInvitationArnsHasBeenSet() const { return m_resourceShareInvitationArnsHasBeenSet; }
41 template <typename ResourceShareInvitationArnsT = Aws::Vector<Aws::String>>
42 void SetResourceShareInvitationArns(ResourceShareInvitationArnsT&& value) {
43 m_resourceShareInvitationArnsHasBeenSet = true;
44 m_resourceShareInvitationArns = std::forward<ResourceShareInvitationArnsT>(value);
45 }
46 template <typename ResourceShareInvitationArnsT = Aws::Vector<Aws::String>>
48 SetResourceShareInvitationArns(std::forward<ResourceShareInvitationArnsT>(value));
49 return *this;
50 }
51 template <typename ResourceShareInvitationArnsT = Aws::String>
53 m_resourceShareInvitationArnsHasBeenSet = true;
54 m_resourceShareInvitationArns.emplace_back(std::forward<ResourceShareInvitationArnsT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::Vector<Aws::String>& GetResourceShareArns() const { return m_resourceShareArns; }
67 inline bool ResourceShareArnsHasBeenSet() const { return m_resourceShareArnsHasBeenSet; }
68 template <typename ResourceShareArnsT = Aws::Vector<Aws::String>>
69 void SetResourceShareArns(ResourceShareArnsT&& value) {
70 m_resourceShareArnsHasBeenSet = true;
71 m_resourceShareArns = std::forward<ResourceShareArnsT>(value);
72 }
73 template <typename ResourceShareArnsT = Aws::Vector<Aws::String>>
75 SetResourceShareArns(std::forward<ResourceShareArnsT>(value));
76 return *this;
77 }
78 template <typename ResourceShareArnsT = Aws::String>
80 m_resourceShareArnsHasBeenSet = true;
81 m_resourceShareArns.emplace_back(std::forward<ResourceShareArnsT>(value));
82 return *this;
83 }
85
87
94 inline const Aws::String& GetNextToken() const { return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 template <typename NextTokenT = Aws::String>
97 void SetNextToken(NextTokenT&& value) {
98 m_nextTokenHasBeenSet = true;
99 m_nextToken = std::forward<NextTokenT>(value);
100 }
101 template <typename NextTokenT = Aws::String>
103 SetNextToken(std::forward<NextTokenT>(value));
104 return *this;
105 }
107
109
120 inline int GetMaxResults() const { return m_maxResults; }
121 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
122 inline void SetMaxResults(int value) {
123 m_maxResultsHasBeenSet = true;
124 m_maxResults = value;
125 }
127 SetMaxResults(value);
128 return *this;
129 }
131 private:
132 Aws::Vector<Aws::String> m_resourceShareInvitationArns;
133
134 Aws::Vector<Aws::String> m_resourceShareArns;
135
136 Aws::String m_nextToken;
137
138 int m_maxResults{0};
139 bool m_resourceShareInvitationArnsHasBeenSet = false;
140 bool m_resourceShareArnsHasBeenSet = false;
141 bool m_nextTokenHasBeenSet = false;
142 bool m_maxResultsHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace RAM
147} // namespace Aws
AWS_RAM_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetResourceShareInvitationArns() const
GetResourceShareInvitationsRequest & WithResourceShareInvitationArns(ResourceShareInvitationArnsT &&value)
GetResourceShareInvitationsRequest & AddResourceShareInvitationArns(ResourceShareInvitationArnsT &&value)
void SetResourceShareInvitationArns(ResourceShareInvitationArnsT &&value)
GetResourceShareInvitationsRequest & WithMaxResults(int value)
GetResourceShareInvitationsRequest & AddResourceShareArns(ResourceShareArnsT &&value)
GetResourceShareInvitationsRequest & WithResourceShareArns(ResourceShareArnsT &&value)
GetResourceShareInvitationsRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector