AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ResourceDataSyncItem.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/ResourceDataSyncSourceWithState.h>
10#include <aws/ssm/model/ResourceDataSyncS3Destination.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ssm/model/LastResourceDataSyncStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SSM
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SSM_API ResourceDataSyncItem() = default;
43
44
46
49 inline const Aws::String& GetSyncName() const { return m_syncName; }
50 inline bool SyncNameHasBeenSet() const { return m_syncNameHasBeenSet; }
51 template<typename SyncNameT = Aws::String>
52 void SetSyncName(SyncNameT&& value) { m_syncNameHasBeenSet = true; m_syncName = std::forward<SyncNameT>(value); }
53 template<typename SyncNameT = Aws::String>
54 ResourceDataSyncItem& WithSyncName(SyncNameT&& value) { SetSyncName(std::forward<SyncNameT>(value)); return *this;}
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) { m_syncTypeHasBeenSet = true; m_syncType = std::forward<SyncTypeT>(value); }
69 template<typename SyncTypeT = Aws::String>
70 ResourceDataSyncItem& WithSyncType(SyncTypeT&& value) { SetSyncType(std::forward<SyncTypeT>(value)); return *this;}
72
74
77 inline const ResourceDataSyncSourceWithState& GetSyncSource() const { return m_syncSource; }
78 inline bool SyncSourceHasBeenSet() const { return m_syncSourceHasBeenSet; }
79 template<typename SyncSourceT = ResourceDataSyncSourceWithState>
80 void SetSyncSource(SyncSourceT&& value) { m_syncSourceHasBeenSet = true; m_syncSource = std::forward<SyncSourceT>(value); }
81 template<typename SyncSourceT = ResourceDataSyncSourceWithState>
82 ResourceDataSyncItem& WithSyncSource(SyncSourceT&& value) { SetSyncSource(std::forward<SyncSourceT>(value)); return *this;}
84
86
89 inline const ResourceDataSyncS3Destination& GetS3Destination() const { return m_s3Destination; }
90 inline bool S3DestinationHasBeenSet() const { return m_s3DestinationHasBeenSet; }
91 template<typename S3DestinationT = ResourceDataSyncS3Destination>
92 void SetS3Destination(S3DestinationT&& value) { m_s3DestinationHasBeenSet = true; m_s3Destination = std::forward<S3DestinationT>(value); }
93 template<typename S3DestinationT = ResourceDataSyncS3Destination>
94 ResourceDataSyncItem& WithS3Destination(S3DestinationT&& value) { SetS3Destination(std::forward<S3DestinationT>(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetLastSyncTime() const { return m_lastSyncTime; }
102 inline bool LastSyncTimeHasBeenSet() const { return m_lastSyncTimeHasBeenSet; }
103 template<typename LastSyncTimeT = Aws::Utils::DateTime>
104 void SetLastSyncTime(LastSyncTimeT&& value) { m_lastSyncTimeHasBeenSet = true; m_lastSyncTime = std::forward<LastSyncTimeT>(value); }
105 template<typename LastSyncTimeT = Aws::Utils::DateTime>
106 ResourceDataSyncItem& WithLastSyncTime(LastSyncTimeT&& value) { SetLastSyncTime(std::forward<LastSyncTimeT>(value)); return *this;}
108
110
114 inline const Aws::Utils::DateTime& GetLastSuccessfulSyncTime() const { return m_lastSuccessfulSyncTime; }
115 inline bool LastSuccessfulSyncTimeHasBeenSet() const { return m_lastSuccessfulSyncTimeHasBeenSet; }
116 template<typename LastSuccessfulSyncTimeT = Aws::Utils::DateTime>
117 void SetLastSuccessfulSyncTime(LastSuccessfulSyncTimeT&& value) { m_lastSuccessfulSyncTimeHasBeenSet = true; m_lastSuccessfulSyncTime = std::forward<LastSuccessfulSyncTimeT>(value); }
118 template<typename LastSuccessfulSyncTimeT = Aws::Utils::DateTime>
119 ResourceDataSyncItem& WithLastSuccessfulSyncTime(LastSuccessfulSyncTimeT&& value) { SetLastSuccessfulSyncTime(std::forward<LastSuccessfulSyncTimeT>(value)); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetSyncLastModifiedTime() const { return m_syncLastModifiedTime; }
127 inline bool SyncLastModifiedTimeHasBeenSet() const { return m_syncLastModifiedTimeHasBeenSet; }
128 template<typename SyncLastModifiedTimeT = Aws::Utils::DateTime>
129 void SetSyncLastModifiedTime(SyncLastModifiedTimeT&& value) { m_syncLastModifiedTimeHasBeenSet = true; m_syncLastModifiedTime = std::forward<SyncLastModifiedTimeT>(value); }
130 template<typename SyncLastModifiedTimeT = Aws::Utils::DateTime>
131 ResourceDataSyncItem& WithSyncLastModifiedTime(SyncLastModifiedTimeT&& value) { SetSyncLastModifiedTime(std::forward<SyncLastModifiedTimeT>(value)); return *this;}
133
135
138 inline LastResourceDataSyncStatus GetLastStatus() const { return m_lastStatus; }
139 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
140 inline void SetLastStatus(LastResourceDataSyncStatus value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
143
145
148 inline const Aws::Utils::DateTime& GetSyncCreatedTime() const { return m_syncCreatedTime; }
149 inline bool SyncCreatedTimeHasBeenSet() const { return m_syncCreatedTimeHasBeenSet; }
150 template<typename SyncCreatedTimeT = Aws::Utils::DateTime>
151 void SetSyncCreatedTime(SyncCreatedTimeT&& value) { m_syncCreatedTimeHasBeenSet = true; m_syncCreatedTime = std::forward<SyncCreatedTimeT>(value); }
152 template<typename SyncCreatedTimeT = Aws::Utils::DateTime>
153 ResourceDataSyncItem& WithSyncCreatedTime(SyncCreatedTimeT&& value) { SetSyncCreatedTime(std::forward<SyncCreatedTimeT>(value)); return *this;}
155
157
160 inline const Aws::String& GetLastSyncStatusMessage() const { return m_lastSyncStatusMessage; }
161 inline bool LastSyncStatusMessageHasBeenSet() const { return m_lastSyncStatusMessageHasBeenSet; }
162 template<typename LastSyncStatusMessageT = Aws::String>
163 void SetLastSyncStatusMessage(LastSyncStatusMessageT&& value) { m_lastSyncStatusMessageHasBeenSet = true; m_lastSyncStatusMessage = std::forward<LastSyncStatusMessageT>(value); }
164 template<typename LastSyncStatusMessageT = Aws::String>
165 ResourceDataSyncItem& WithLastSyncStatusMessage(LastSyncStatusMessageT&& value) { SetLastSyncStatusMessage(std::forward<LastSyncStatusMessageT>(value)); return *this;}
167 private:
168
169 Aws::String m_syncName;
170 bool m_syncNameHasBeenSet = false;
171
172 Aws::String m_syncType;
173 bool m_syncTypeHasBeenSet = false;
174
176 bool m_syncSourceHasBeenSet = false;
177
178 ResourceDataSyncS3Destination m_s3Destination;
179 bool m_s3DestinationHasBeenSet = false;
180
181 Aws::Utils::DateTime m_lastSyncTime{};
182 bool m_lastSyncTimeHasBeenSet = false;
183
184 Aws::Utils::DateTime m_lastSuccessfulSyncTime{};
185 bool m_lastSuccessfulSyncTimeHasBeenSet = false;
186
187 Aws::Utils::DateTime m_syncLastModifiedTime{};
188 bool m_syncLastModifiedTimeHasBeenSet = false;
189
191 bool m_lastStatusHasBeenSet = false;
192
193 Aws::Utils::DateTime m_syncCreatedTime{};
194 bool m_syncCreatedTimeHasBeenSet = false;
195
196 Aws::String m_lastSyncStatusMessage;
197 bool m_lastSyncStatusMessageHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace SSM
202} // 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