AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
ResourceShareAssociation.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/ResourceShareAssociationStatus.h>
11#include <aws/ram/model/ResourceShareAssociationType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace RAM {
23namespace Model {
24
32 public:
33 AWS_RAM_API ResourceShareAssociation() = default;
37
39
44 inline const Aws::String& GetResourceShareArn() const { return m_resourceShareArn; }
45 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
46 template <typename ResourceShareArnT = Aws::String>
47 void SetResourceShareArn(ResourceShareArnT&& value) {
48 m_resourceShareArnHasBeenSet = true;
49 m_resourceShareArn = std::forward<ResourceShareArnT>(value);
50 }
51 template <typename ResourceShareArnT = Aws::String>
52 ResourceShareAssociation& WithResourceShareArn(ResourceShareArnT&& value) {
53 SetResourceShareArn(std::forward<ResourceShareArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetResourceShareName() const { return m_resourceShareName; }
63 inline bool ResourceShareNameHasBeenSet() const { return m_resourceShareNameHasBeenSet; }
64 template <typename ResourceShareNameT = Aws::String>
65 void SetResourceShareName(ResourceShareNameT&& value) {
66 m_resourceShareNameHasBeenSet = true;
67 m_resourceShareName = std::forward<ResourceShareNameT>(value);
68 }
69 template <typename ResourceShareNameT = Aws::String>
70 ResourceShareAssociation& WithResourceShareName(ResourceShareNameT&& value) {
71 SetResourceShareName(std::forward<ResourceShareNameT>(value));
72 return *this;
73 }
75
77
90 inline const Aws::String& GetAssociatedEntity() const { return m_associatedEntity; }
91 inline bool AssociatedEntityHasBeenSet() const { return m_associatedEntityHasBeenSet; }
92 template <typename AssociatedEntityT = Aws::String>
93 void SetAssociatedEntity(AssociatedEntityT&& value) {
94 m_associatedEntityHasBeenSet = true;
95 m_associatedEntity = std::forward<AssociatedEntityT>(value);
96 }
97 template <typename AssociatedEntityT = Aws::String>
98 ResourceShareAssociation& WithAssociatedEntity(AssociatedEntityT&& value) {
99 SetAssociatedEntity(std::forward<AssociatedEntityT>(value));
100 return *this;
101 }
103
105
108 inline ResourceShareAssociationType GetAssociationType() const { return m_associationType; }
109 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
111 m_associationTypeHasBeenSet = true;
112 m_associationType = value;
113 }
115 SetAssociationType(value);
116 return *this;
117 }
119
121
124 inline ResourceShareAssociationStatus GetStatus() const { return m_status; }
125 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
127 m_statusHasBeenSet = true;
128 m_status = value;
129 }
131 SetStatus(value);
132 return *this;
133 }
135
137
140 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
141 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
142 template <typename StatusMessageT = Aws::String>
143 void SetStatusMessage(StatusMessageT&& value) {
144 m_statusMessageHasBeenSet = true;
145 m_statusMessage = std::forward<StatusMessageT>(value);
146 }
147 template <typename StatusMessageT = Aws::String>
149 SetStatusMessage(std::forward<StatusMessageT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
159 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
160 template <typename CreationTimeT = Aws::Utils::DateTime>
161 void SetCreationTime(CreationTimeT&& value) {
162 m_creationTimeHasBeenSet = true;
163 m_creationTime = std::forward<CreationTimeT>(value);
164 }
165 template <typename CreationTimeT = Aws::Utils::DateTime>
167 SetCreationTime(std::forward<CreationTimeT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
177 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
178 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
179 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
180 m_lastUpdatedTimeHasBeenSet = true;
181 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
182 }
183 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
185 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
186 return *this;
187 }
189
191
196 inline bool GetExternal() const { return m_external; }
197 inline bool ExternalHasBeenSet() const { return m_externalHasBeenSet; }
198 inline void SetExternal(bool value) {
199 m_externalHasBeenSet = true;
200 m_external = value;
201 }
203 SetExternal(value);
204 return *this;
205 }
207 private:
208 Aws::String m_resourceShareArn;
209
210 Aws::String m_resourceShareName;
211
212 Aws::String m_associatedEntity;
213
215
217
218 Aws::String m_statusMessage;
219
220 Aws::Utils::DateTime m_creationTime{};
221
222 Aws::Utils::DateTime m_lastUpdatedTime{};
223
224 bool m_external{false};
225 bool m_resourceShareArnHasBeenSet = false;
226 bool m_resourceShareNameHasBeenSet = false;
227 bool m_associatedEntityHasBeenSet = false;
228 bool m_associationTypeHasBeenSet = false;
229 bool m_statusHasBeenSet = false;
230 bool m_statusMessageHasBeenSet = false;
231 bool m_creationTimeHasBeenSet = false;
232 bool m_lastUpdatedTimeHasBeenSet = false;
233 bool m_externalHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace RAM
238} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedTime() const
AWS_RAM_API ResourceShareAssociation()=default
ResourceShareAssociation & WithAssociationType(ResourceShareAssociationType value)
void SetResourceShareName(ResourceShareNameT &&value)
ResourceShareAssociation & WithStatusMessage(StatusMessageT &&value)
AWS_RAM_API ResourceShareAssociation(Aws::Utils::Json::JsonView jsonValue)
AWS_RAM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceShareAssociationType GetAssociationType() const
ResourceShareAssociation & WithExternal(bool value)
ResourceShareAssociation & WithCreationTime(CreationTimeT &&value)
void SetStatus(ResourceShareAssociationStatus value)
ResourceShareAssociation & WithResourceShareName(ResourceShareNameT &&value)
void SetResourceShareArn(ResourceShareArnT &&value)
ResourceShareAssociationStatus GetStatus() const
AWS_RAM_API ResourceShareAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAssociationType(ResourceShareAssociationType value)
const Aws::Utils::DateTime & GetCreationTime() const
ResourceShareAssociation & WithResourceShareArn(ResourceShareArnT &&value)
ResourceShareAssociation & WithLastUpdatedTime(LastUpdatedTimeT &&value)
void SetAssociatedEntity(AssociatedEntityT &&value)
ResourceShareAssociation & WithStatus(ResourceShareAssociationStatus value)
ResourceShareAssociation & WithAssociatedEntity(AssociatedEntityT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue