AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
AssociatedSource.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace RAM {
21namespace Model {
22
31 public:
32 AWS_RAM_API AssociatedSource() = default;
36
38
42 inline const Aws::String& GetResourceShareArn() const { return m_resourceShareArn; }
43 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
44 template <typename ResourceShareArnT = Aws::String>
45 void SetResourceShareArn(ResourceShareArnT&& value) {
46 m_resourceShareArnHasBeenSet = true;
47 m_resourceShareArn = std::forward<ResourceShareArnT>(value);
48 }
49 template <typename ResourceShareArnT = Aws::String>
50 AssociatedSource& WithResourceShareArn(ResourceShareArnT&& value) {
51 SetResourceShareArn(std::forward<ResourceShareArnT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetSourceId() const { return m_sourceId; }
62 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
63 template <typename SourceIdT = Aws::String>
64 void SetSourceId(SourceIdT&& value) {
65 m_sourceIdHasBeenSet = true;
66 m_sourceId = std::forward<SourceIdT>(value);
67 }
68 template <typename SourceIdT = Aws::String>
69 AssociatedSource& WithSourceId(SourceIdT&& value) {
70 SetSourceId(std::forward<SourceIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetSourceType() const { return m_sourceType; }
80 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
81 template <typename SourceTypeT = Aws::String>
82 void SetSourceType(SourceTypeT&& value) {
83 m_sourceTypeHasBeenSet = true;
84 m_sourceType = std::forward<SourceTypeT>(value);
85 }
86 template <typename SourceTypeT = Aws::String>
87 AssociatedSource& WithSourceType(SourceTypeT&& value) {
88 SetSourceType(std::forward<SourceTypeT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetStatus() const { return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 template <typename StatusT = Aws::String>
100 void SetStatus(StatusT&& value) {
101 m_statusHasBeenSet = true;
102 m_status = std::forward<StatusT>(value);
103 }
104 template <typename StatusT = Aws::String>
105 AssociatedSource& WithStatus(StatusT&& value) {
106 SetStatus(std::forward<StatusT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
116 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
117 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
118 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
119 m_lastUpdatedTimeHasBeenSet = true;
120 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
121 }
122 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
123 AssociatedSource& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
124 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
134 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
135 template <typename CreationTimeT = Aws::Utils::DateTime>
136 void SetCreationTime(CreationTimeT&& value) {
137 m_creationTimeHasBeenSet = true;
138 m_creationTime = std::forward<CreationTimeT>(value);
139 }
140 template <typename CreationTimeT = Aws::Utils::DateTime>
141 AssociatedSource& WithCreationTime(CreationTimeT&& value) {
142 SetCreationTime(std::forward<CreationTimeT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
152 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
153 template <typename StatusMessageT = Aws::String>
154 void SetStatusMessage(StatusMessageT&& value) {
155 m_statusMessageHasBeenSet = true;
156 m_statusMessage = std::forward<StatusMessageT>(value);
157 }
158 template <typename StatusMessageT = Aws::String>
159 AssociatedSource& WithStatusMessage(StatusMessageT&& value) {
160 SetStatusMessage(std::forward<StatusMessageT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_resourceShareArn;
166
167 Aws::String m_sourceId;
168
169 Aws::String m_sourceType;
170
171 Aws::String m_status;
172
173 Aws::Utils::DateTime m_lastUpdatedTime{};
174
175 Aws::Utils::DateTime m_creationTime{};
176
177 Aws::String m_statusMessage;
178 bool m_resourceShareArnHasBeenSet = false;
179 bool m_sourceIdHasBeenSet = false;
180 bool m_sourceTypeHasBeenSet = false;
181 bool m_statusHasBeenSet = false;
182 bool m_lastUpdatedTimeHasBeenSet = false;
183 bool m_creationTimeHasBeenSet = false;
184 bool m_statusMessageHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace RAM
189} // namespace Aws
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
const Aws::String & GetSourceType() const
void SetResourceShareArn(ResourceShareArnT &&value)
AssociatedSource & WithResourceShareArn(ResourceShareArnT &&value)
void SetCreationTime(CreationTimeT &&value)
AssociatedSource & WithLastUpdatedTime(LastUpdatedTimeT &&value)
AWS_RAM_API AssociatedSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStatusMessage() const
void SetSourceId(SourceIdT &&value)
AssociatedSource & WithStatusMessage(StatusMessageT &&value)
const Aws::String & GetStatus() const
AWS_RAM_API AssociatedSource(Aws::Utils::Json::JsonView jsonValue)
AssociatedSource & WithSourceId(SourceIdT &&value)
AssociatedSource & WithCreationTime(CreationTimeT &&value)
const Aws::String & GetResourceShareArn() const
AssociatedSource & WithSourceType(SourceTypeT &&value)
void SetStatusMessage(StatusMessageT &&value)
AWS_RAM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::Utils::DateTime & GetLastUpdatedTime() const
AssociatedSource & WithStatus(StatusT &&value)
const Aws::String & GetSourceId() const
void SetSourceType(SourceTypeT &&value)
AWS_RAM_API AssociatedSource()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue