AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ResourceDataSyncItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/LastResourceDataSyncStatus.h>
11#include <aws/ssm/model/ResourceDataSyncS3Destination.h>
12#include <aws/ssm/model/ResourceDataSyncSourceWithState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM {
24namespace Model {
25
33 public:
34 AWS_SSM_API ResourceDataSyncItem() = default;
38
40
43 inline const Aws::String& GetSyncName() const { return m_syncName; }
44 inline bool SyncNameHasBeenSet() const { return m_syncNameHasBeenSet; }
45 template <typename SyncNameT = Aws::String>
46 void SetSyncName(SyncNameT&& value) {
47 m_syncNameHasBeenSet = true;
48 m_syncName = std::forward<SyncNameT>(value);
49 }
50 template <typename SyncNameT = Aws::String>
51 ResourceDataSyncItem& WithSyncName(SyncNameT&& value) {
52 SetSyncName(std::forward<SyncNameT>(value));
53 return *this;
54 }
56
58
65 inline const Aws::String& GetSyncType() const { return m_syncType; }
66 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
67 template <typename SyncTypeT = Aws::String>
68 void SetSyncType(SyncTypeT&& value) {
69 m_syncTypeHasBeenSet = true;
70 m_syncType = std::forward<SyncTypeT>(value);
71 }
72 template <typename SyncTypeT = Aws::String>
73 ResourceDataSyncItem& WithSyncType(SyncTypeT&& value) {
74 SetSyncType(std::forward<SyncTypeT>(value));
75 return *this;
76 }
78
80
83 inline const ResourceDataSyncSourceWithState& GetSyncSource() const { return m_syncSource; }
84 inline bool SyncSourceHasBeenSet() const { return m_syncSourceHasBeenSet; }
85 template <typename SyncSourceT = ResourceDataSyncSourceWithState>
86 void SetSyncSource(SyncSourceT&& value) {
87 m_syncSourceHasBeenSet = true;
88 m_syncSource = std::forward<SyncSourceT>(value);
89 }
90 template <typename SyncSourceT = ResourceDataSyncSourceWithState>
91 ResourceDataSyncItem& WithSyncSource(SyncSourceT&& value) {
92 SetSyncSource(std::forward<SyncSourceT>(value));
93 return *this;
94 }
96
98
101 inline const ResourceDataSyncS3Destination& GetS3Destination() const { return m_s3Destination; }
102 inline bool S3DestinationHasBeenSet() const { return m_s3DestinationHasBeenSet; }
103 template <typename S3DestinationT = ResourceDataSyncS3Destination>
104 void SetS3Destination(S3DestinationT&& value) {
105 m_s3DestinationHasBeenSet = true;
106 m_s3Destination = std::forward<S3DestinationT>(value);
107 }
108 template <typename S3DestinationT = ResourceDataSyncS3Destination>
109 ResourceDataSyncItem& WithS3Destination(S3DestinationT&& value) {
110 SetS3Destination(std::forward<S3DestinationT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Utils::DateTime& GetLastSyncTime() const { return m_lastSyncTime; }
120 inline bool LastSyncTimeHasBeenSet() const { return m_lastSyncTimeHasBeenSet; }
121 template <typename LastSyncTimeT = Aws::Utils::DateTime>
122 void SetLastSyncTime(LastSyncTimeT&& value) {
123 m_lastSyncTimeHasBeenSet = true;
124 m_lastSyncTime = std::forward<LastSyncTimeT>(value);
125 }
126 template <typename LastSyncTimeT = Aws::Utils::DateTime>
127 ResourceDataSyncItem& WithLastSyncTime(LastSyncTimeT&& value) {
128 SetLastSyncTime(std::forward<LastSyncTimeT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::Utils::DateTime& GetLastSuccessfulSyncTime() const { return m_lastSuccessfulSyncTime; }
139 inline bool LastSuccessfulSyncTimeHasBeenSet() const { return m_lastSuccessfulSyncTimeHasBeenSet; }
140 template <typename LastSuccessfulSyncTimeT = Aws::Utils::DateTime>
141 void SetLastSuccessfulSyncTime(LastSuccessfulSyncTimeT&& value) {
142 m_lastSuccessfulSyncTimeHasBeenSet = true;
143 m_lastSuccessfulSyncTime = std::forward<LastSuccessfulSyncTimeT>(value);
144 }
145 template <typename LastSuccessfulSyncTimeT = Aws::Utils::DateTime>
146 ResourceDataSyncItem& WithLastSuccessfulSyncTime(LastSuccessfulSyncTimeT&& value) {
147 SetLastSuccessfulSyncTime(std::forward<LastSuccessfulSyncTimeT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Utils::DateTime& GetSyncLastModifiedTime() const { return m_syncLastModifiedTime; }
157 inline bool SyncLastModifiedTimeHasBeenSet() const { return m_syncLastModifiedTimeHasBeenSet; }
158 template <typename SyncLastModifiedTimeT = Aws::Utils::DateTime>
159 void SetSyncLastModifiedTime(SyncLastModifiedTimeT&& value) {
160 m_syncLastModifiedTimeHasBeenSet = true;
161 m_syncLastModifiedTime = std::forward<SyncLastModifiedTimeT>(value);
162 }
163 template <typename SyncLastModifiedTimeT = Aws::Utils::DateTime>
164 ResourceDataSyncItem& WithSyncLastModifiedTime(SyncLastModifiedTimeT&& value) {
165 SetSyncLastModifiedTime(std::forward<SyncLastModifiedTimeT>(value));
166 return *this;
167 }
169
171
174 inline LastResourceDataSyncStatus GetLastStatus() const { return m_lastStatus; }
175 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
177 m_lastStatusHasBeenSet = true;
178 m_lastStatus = value;
179 }
181 SetLastStatus(value);
182 return *this;
183 }
185
187
190 inline const Aws::Utils::DateTime& GetSyncCreatedTime() const { return m_syncCreatedTime; }
191 inline bool SyncCreatedTimeHasBeenSet() const { return m_syncCreatedTimeHasBeenSet; }
192 template <typename SyncCreatedTimeT = Aws::Utils::DateTime>
193 void SetSyncCreatedTime(SyncCreatedTimeT&& value) {
194 m_syncCreatedTimeHasBeenSet = true;
195 m_syncCreatedTime = std::forward<SyncCreatedTimeT>(value);
196 }
197 template <typename SyncCreatedTimeT = Aws::Utils::DateTime>
198 ResourceDataSyncItem& WithSyncCreatedTime(SyncCreatedTimeT&& value) {
199 SetSyncCreatedTime(std::forward<SyncCreatedTimeT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::String& GetLastSyncStatusMessage() const { return m_lastSyncStatusMessage; }
209 inline bool LastSyncStatusMessageHasBeenSet() const { return m_lastSyncStatusMessageHasBeenSet; }
210 template <typename LastSyncStatusMessageT = Aws::String>
211 void SetLastSyncStatusMessage(LastSyncStatusMessageT&& value) {
212 m_lastSyncStatusMessageHasBeenSet = true;
213 m_lastSyncStatusMessage = std::forward<LastSyncStatusMessageT>(value);
214 }
215 template <typename LastSyncStatusMessageT = Aws::String>
216 ResourceDataSyncItem& WithLastSyncStatusMessage(LastSyncStatusMessageT&& value) {
217 SetLastSyncStatusMessage(std::forward<LastSyncStatusMessageT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_syncName;
223
224 Aws::String m_syncType;
225
227
228 ResourceDataSyncS3Destination m_s3Destination;
229
230 Aws::Utils::DateTime m_lastSyncTime{};
231
232 Aws::Utils::DateTime m_lastSuccessfulSyncTime{};
233
234 Aws::Utils::DateTime m_syncLastModifiedTime{};
235
237
238 Aws::Utils::DateTime m_syncCreatedTime{};
239
240 Aws::String m_lastSyncStatusMessage;
241 bool m_syncNameHasBeenSet = false;
242 bool m_syncTypeHasBeenSet = false;
243 bool m_syncSourceHasBeenSet = false;
244 bool m_s3DestinationHasBeenSet = false;
245 bool m_lastSyncTimeHasBeenSet = false;
246 bool m_lastSuccessfulSyncTimeHasBeenSet = false;
247 bool m_syncLastModifiedTimeHasBeenSet = false;
248 bool m_lastStatusHasBeenSet = false;
249 bool m_syncCreatedTimeHasBeenSet = false;
250 bool m_lastSyncStatusMessageHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace SSM
255} // namespace Aws
ResourceDataSyncItem & WithLastSyncTime(LastSyncTimeT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceDataSyncItem & WithSyncSource(SyncSourceT &&value)
const Aws::Utils::DateTime & GetLastSyncTime() const
ResourceDataSyncItem & WithLastSuccessfulSyncTime(LastSuccessfulSyncTimeT &&value)
ResourceDataSyncItem & WithSyncCreatedTime(SyncCreatedTimeT &&value)
AWS_SSM_API ResourceDataSyncItem & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceDataSyncItem & WithSyncType(SyncTypeT &&value)
void SetLastSuccessfulSyncTime(LastSuccessfulSyncTimeT &&value)
void SetLastStatus(LastResourceDataSyncStatus value)
void SetLastSyncStatusMessage(LastSyncStatusMessageT &&value)
const Aws::Utils::DateTime & GetSyncLastModifiedTime() const
LastResourceDataSyncStatus GetLastStatus() const
const Aws::Utils::DateTime & GetLastSuccessfulSyncTime() const
ResourceDataSyncItem & WithSyncName(SyncNameT &&value)
AWS_SSM_API ResourceDataSyncItem()=default
const Aws::String & GetSyncName() const
ResourceDataSyncItem & WithLastSyncStatusMessage(LastSyncStatusMessageT &&value)
void SetSyncCreatedTime(SyncCreatedTimeT &&value)
const Aws::String & GetLastSyncStatusMessage() const
ResourceDataSyncItem & WithLastStatus(LastResourceDataSyncStatus value)
ResourceDataSyncItem & WithSyncLastModifiedTime(SyncLastModifiedTimeT &&value)
const Aws::String & GetSyncType() const
void SetS3Destination(S3DestinationT &&value)
const Aws::Utils::DateTime & GetSyncCreatedTime() const
const ResourceDataSyncSourceWithState & GetSyncSource() const
AWS_SSM_API ResourceDataSyncItem(Aws::Utils::Json::JsonView jsonValue)
const ResourceDataSyncS3Destination & GetS3Destination() const
void SetLastSyncTime(LastSyncTimeT &&value)
void SetSyncLastModifiedTime(SyncLastModifiedTimeT &&value)
ResourceDataSyncItem & WithS3Destination(S3DestinationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue