AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
ResourceShareInvitation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ram/RAM_EXPORTS.h>
10#include <aws/ram/model/ResourceShareInvitationStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace RAM {
22namespace Model {
23
31 public:
32 AWS_RAM_API ResourceShareInvitation() = default;
36
38
43 inline const Aws::String& GetResourceShareInvitationArn() const { return m_resourceShareInvitationArn; }
44 inline bool ResourceShareInvitationArnHasBeenSet() const { return m_resourceShareInvitationArnHasBeenSet; }
45 template <typename ResourceShareInvitationArnT = Aws::String>
46 void SetResourceShareInvitationArn(ResourceShareInvitationArnT&& value) {
47 m_resourceShareInvitationArnHasBeenSet = true;
48 m_resourceShareInvitationArn = std::forward<ResourceShareInvitationArnT>(value);
49 }
50 template <typename ResourceShareInvitationArnT = Aws::String>
51 ResourceShareInvitation& WithResourceShareInvitationArn(ResourceShareInvitationArnT&& value) {
52 SetResourceShareInvitationArn(std::forward<ResourceShareInvitationArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetResourceShareName() const { return m_resourceShareName; }
62 inline bool ResourceShareNameHasBeenSet() const { return m_resourceShareNameHasBeenSet; }
63 template <typename ResourceShareNameT = Aws::String>
64 void SetResourceShareName(ResourceShareNameT&& value) {
65 m_resourceShareNameHasBeenSet = true;
66 m_resourceShareName = std::forward<ResourceShareNameT>(value);
67 }
68 template <typename ResourceShareNameT = Aws::String>
69 ResourceShareInvitation& WithResourceShareName(ResourceShareNameT&& value) {
70 SetResourceShareName(std::forward<ResourceShareNameT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetResourceShareArn() const { return m_resourceShareArn; }
82 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
83 template <typename ResourceShareArnT = Aws::String>
84 void SetResourceShareArn(ResourceShareArnT&& value) {
85 m_resourceShareArnHasBeenSet = true;
86 m_resourceShareArn = std::forward<ResourceShareArnT>(value);
87 }
88 template <typename ResourceShareArnT = Aws::String>
89 ResourceShareInvitation& WithResourceShareArn(ResourceShareArnT&& value) {
90 SetResourceShareArn(std::forward<ResourceShareArnT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetSenderAccountId() const { return m_senderAccountId; }
100 inline bool SenderAccountIdHasBeenSet() const { return m_senderAccountIdHasBeenSet; }
101 template <typename SenderAccountIdT = Aws::String>
102 void SetSenderAccountId(SenderAccountIdT&& value) {
103 m_senderAccountIdHasBeenSet = true;
104 m_senderAccountId = std::forward<SenderAccountIdT>(value);
105 }
106 template <typename SenderAccountIdT = Aws::String>
107 ResourceShareInvitation& WithSenderAccountId(SenderAccountIdT&& value) {
108 SetSenderAccountId(std::forward<SenderAccountIdT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetReceiverAccountId() const { return m_receiverAccountId; }
118 inline bool ReceiverAccountIdHasBeenSet() const { return m_receiverAccountIdHasBeenSet; }
119 template <typename ReceiverAccountIdT = Aws::String>
120 void SetReceiverAccountId(ReceiverAccountIdT&& value) {
121 m_receiverAccountIdHasBeenSet = true;
122 m_receiverAccountId = std::forward<ReceiverAccountIdT>(value);
123 }
124 template <typename ReceiverAccountIdT = Aws::String>
125 ResourceShareInvitation& WithReceiverAccountId(ReceiverAccountIdT&& value) {
126 SetReceiverAccountId(std::forward<ReceiverAccountIdT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetInvitationTimestamp() const { return m_invitationTimestamp; }
136 inline bool InvitationTimestampHasBeenSet() const { return m_invitationTimestampHasBeenSet; }
137 template <typename InvitationTimestampT = Aws::Utils::DateTime>
138 void SetInvitationTimestamp(InvitationTimestampT&& value) {
139 m_invitationTimestampHasBeenSet = true;
140 m_invitationTimestamp = std::forward<InvitationTimestampT>(value);
141 }
142 template <typename InvitationTimestampT = Aws::Utils::DateTime>
143 ResourceShareInvitation& WithInvitationTimestamp(InvitationTimestampT&& value) {
144 SetInvitationTimestamp(std::forward<InvitationTimestampT>(value));
145 return *this;
146 }
148
150
153 inline ResourceShareInvitationStatus GetStatus() const { return m_status; }
154 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
156 m_statusHasBeenSet = true;
157 m_status = value;
158 }
160 SetStatus(value);
161 return *this;
162 }
164
166
172 inline const Aws::String& GetReceiverArn() const { return m_receiverArn; }
173 inline bool ReceiverArnHasBeenSet() const { return m_receiverArnHasBeenSet; }
174 template <typename ReceiverArnT = Aws::String>
175 void SetReceiverArn(ReceiverArnT&& value) {
176 m_receiverArnHasBeenSet = true;
177 m_receiverArn = std::forward<ReceiverArnT>(value);
178 }
179 template <typename ReceiverArnT = Aws::String>
181 SetReceiverArn(std::forward<ReceiverArnT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_resourceShareInvitationArn;
187
188 Aws::String m_resourceShareName;
189
190 Aws::String m_resourceShareArn;
191
192 Aws::String m_senderAccountId;
193
194 Aws::String m_receiverAccountId;
195
196 Aws::Utils::DateTime m_invitationTimestamp{};
197
199
200 Aws::String m_receiverArn;
201 bool m_resourceShareInvitationArnHasBeenSet = false;
202 bool m_resourceShareNameHasBeenSet = false;
203 bool m_resourceShareArnHasBeenSet = false;
204 bool m_senderAccountIdHasBeenSet = false;
205 bool m_receiverAccountIdHasBeenSet = false;
206 bool m_invitationTimestampHasBeenSet = false;
207 bool m_statusHasBeenSet = false;
208 bool m_receiverArnHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace RAM
213} // namespace Aws
ResourceShareInvitation & WithResourceShareArn(ResourceShareArnT &&value)
ResourceShareInvitation & WithReceiverAccountId(ReceiverAccountIdT &&value)
ResourceShareInvitation & WithSenderAccountId(SenderAccountIdT &&value)
AWS_RAM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceShareInvitation & WithResourceShareInvitationArn(ResourceShareInvitationArnT &&value)
const Aws::String & GetResourceShareInvitationArn() const
ResourceShareInvitation & WithInvitationTimestamp(InvitationTimestampT &&value)
void SetStatus(ResourceShareInvitationStatus value)
const Aws::Utils::DateTime & GetInvitationTimestamp() const
ResourceShareInvitation & WithReceiverArn(ReceiverArnT &&value)
AWS_RAM_API ResourceShareInvitation()=default
void SetSenderAccountId(SenderAccountIdT &&value)
ResourceShareInvitation & WithStatus(ResourceShareInvitationStatus value)
void SetInvitationTimestamp(InvitationTimestampT &&value)
void SetReceiverAccountId(ReceiverAccountIdT &&value)
void SetResourceShareName(ResourceShareNameT &&value)
void SetResourceShareInvitationArn(ResourceShareInvitationArnT &&value)
ResourceShareInvitation & WithResourceShareName(ResourceShareNameT &&value)
ResourceShareInvitationStatus GetStatus() const
void SetResourceShareArn(ResourceShareArnT &&value)
AWS_RAM_API ResourceShareInvitation(Aws::Utils::Json::JsonView jsonValue)
AWS_RAM_API ResourceShareInvitation & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue