AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
GetSyncJobResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
11#include <aws/iottwinmaker/model/SyncJobStatus.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace IoTTwinMaker {
25namespace Model {
27 public:
28 AWS_IOTTWINMAKER_API GetSyncJobResult() = default;
31
33
36 inline const Aws::String& GetArn() const { return m_arn; }
37 template <typename ArnT = Aws::String>
38 void SetArn(ArnT&& value) {
39 m_arnHasBeenSet = true;
40 m_arn = std::forward<ArnT>(value);
41 }
42 template <typename ArnT = Aws::String>
43 GetSyncJobResult& WithArn(ArnT&& value) {
44 SetArn(std::forward<ArnT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
54 template <typename WorkspaceIdT = Aws::String>
55 void SetWorkspaceId(WorkspaceIdT&& value) {
56 m_workspaceIdHasBeenSet = true;
57 m_workspaceId = std::forward<WorkspaceIdT>(value);
58 }
59 template <typename WorkspaceIdT = Aws::String>
60 GetSyncJobResult& WithWorkspaceId(WorkspaceIdT&& value) {
61 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::String& GetSyncSource() const { return m_syncSource; }
72 template <typename SyncSourceT = Aws::String>
73 void SetSyncSource(SyncSourceT&& value) {
74 m_syncSourceHasBeenSet = true;
75 m_syncSource = std::forward<SyncSourceT>(value);
76 }
77 template <typename SyncSourceT = Aws::String>
78 GetSyncJobResult& WithSyncSource(SyncSourceT&& value) {
79 SetSyncSource(std::forward<SyncSourceT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetSyncRole() const { return m_syncRole; }
89 template <typename SyncRoleT = Aws::String>
90 void SetSyncRole(SyncRoleT&& value) {
91 m_syncRoleHasBeenSet = true;
92 m_syncRole = std::forward<SyncRoleT>(value);
93 }
94 template <typename SyncRoleT = Aws::String>
95 GetSyncJobResult& WithSyncRole(SyncRoleT&& value) {
96 SetSyncRole(std::forward<SyncRoleT>(value));
97 return *this;
98 }
100
102
105 inline const SyncJobStatus& GetStatus() const { return m_status; }
106 template <typename StatusT = SyncJobStatus>
107 void SetStatus(StatusT&& value) {
108 m_statusHasBeenSet = true;
109 m_status = std::forward<StatusT>(value);
110 }
111 template <typename StatusT = SyncJobStatus>
112 GetSyncJobResult& WithStatus(StatusT&& value) {
113 SetStatus(std::forward<StatusT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
123 template <typename CreationDateTimeT = Aws::Utils::DateTime>
124 void SetCreationDateTime(CreationDateTimeT&& value) {
125 m_creationDateTimeHasBeenSet = true;
126 m_creationDateTime = std::forward<CreationDateTimeT>(value);
127 }
128 template <typename CreationDateTimeT = Aws::Utils::DateTime>
129 GetSyncJobResult& WithCreationDateTime(CreationDateTimeT&& value) {
130 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Utils::DateTime& GetUpdateDateTime() const { return m_updateDateTime; }
140 template <typename UpdateDateTimeT = Aws::Utils::DateTime>
141 void SetUpdateDateTime(UpdateDateTimeT&& value) {
142 m_updateDateTimeHasBeenSet = true;
143 m_updateDateTime = std::forward<UpdateDateTimeT>(value);
144 }
145 template <typename UpdateDateTimeT = Aws::Utils::DateTime>
146 GetSyncJobResult& WithUpdateDateTime(UpdateDateTimeT&& value) {
147 SetUpdateDateTime(std::forward<UpdateDateTimeT>(value));
148 return *this;
149 }
151
153
154 inline const Aws::String& GetRequestId() const { return m_requestId; }
155 template <typename RequestIdT = Aws::String>
156 void SetRequestId(RequestIdT&& value) {
157 m_requestIdHasBeenSet = true;
158 m_requestId = std::forward<RequestIdT>(value);
159 }
160 template <typename RequestIdT = Aws::String>
161 GetSyncJobResult& WithRequestId(RequestIdT&& value) {
162 SetRequestId(std::forward<RequestIdT>(value));
163 return *this;
164 }
166 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
167
168 private:
169 Aws::String m_arn;
170
171 Aws::String m_workspaceId;
172
173 Aws::String m_syncSource;
174
175 Aws::String m_syncRole;
176
177 SyncJobStatus m_status;
178
179 Aws::Utils::DateTime m_creationDateTime{};
180
181 Aws::Utils::DateTime m_updateDateTime{};
182
183 Aws::String m_requestId;
184 Aws::Http::HttpResponseCode m_HttpResponseCode;
185 bool m_arnHasBeenSet = false;
186 bool m_workspaceIdHasBeenSet = false;
187 bool m_syncSourceHasBeenSet = false;
188 bool m_syncRoleHasBeenSet = false;
189 bool m_statusHasBeenSet = false;
190 bool m_creationDateTimeHasBeenSet = false;
191 bool m_updateDateTimeHasBeenSet = false;
192 bool m_requestIdHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace IoTTwinMaker
197} // namespace Aws
const Aws::String & GetSyncSource() const
GetSyncJobResult & WithCreationDateTime(CreationDateTimeT &&value)
AWS_IOTTWINMAKER_API GetSyncJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetSyncJobResult & WithArn(ArnT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
AWS_IOTTWINMAKER_API GetSyncJobResult()=default
const SyncJobStatus & GetStatus() const
AWS_IOTTWINMAKER_API GetSyncJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetUpdateDateTime() const
GetSyncJobResult & WithSyncSource(SyncSourceT &&value)
GetSyncJobResult & WithStatus(StatusT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
GetSyncJobResult & WithUpdateDateTime(UpdateDateTimeT &&value)
GetSyncJobResult & WithSyncRole(SyncRoleT &&value)
GetSyncJobResult & WithWorkspaceId(WorkspaceIdT &&value)
const Aws::String & GetWorkspaceId() const
void SetUpdateDateTime(UpdateDateTimeT &&value)
GetSyncJobResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue