AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
SyncJobSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
10#include <aws/iottwinmaker/model/SyncJobStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTTwinMaker {
22namespace Model {
23
30 public:
31 AWS_IOTTWINMAKER_API SyncJobSummary() = default;
32 AWS_IOTTWINMAKER_API SyncJobSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTTWINMAKER_API SyncJobSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 SyncJobSummary& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
59 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
60 template <typename WorkspaceIdT = Aws::String>
61 void SetWorkspaceId(WorkspaceIdT&& value) {
62 m_workspaceIdHasBeenSet = true;
63 m_workspaceId = std::forward<WorkspaceIdT>(value);
64 }
65 template <typename WorkspaceIdT = Aws::String>
66 SyncJobSummary& WithWorkspaceId(WorkspaceIdT&& value) {
67 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetSyncSource() const { return m_syncSource; }
77 inline bool SyncSourceHasBeenSet() const { return m_syncSourceHasBeenSet; }
78 template <typename SyncSourceT = Aws::String>
79 void SetSyncSource(SyncSourceT&& value) {
80 m_syncSourceHasBeenSet = true;
81 m_syncSource = std::forward<SyncSourceT>(value);
82 }
83 template <typename SyncSourceT = Aws::String>
84 SyncJobSummary& WithSyncSource(SyncSourceT&& value) {
85 SetSyncSource(std::forward<SyncSourceT>(value));
86 return *this;
87 }
89
91
94 inline const SyncJobStatus& GetStatus() const { return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 template <typename StatusT = SyncJobStatus>
97 void SetStatus(StatusT&& value) {
98 m_statusHasBeenSet = true;
99 m_status = std::forward<StatusT>(value);
100 }
101 template <typename StatusT = SyncJobStatus>
102 SyncJobSummary& WithStatus(StatusT&& value) {
103 SetStatus(std::forward<StatusT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
113 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
114 template <typename CreationDateTimeT = Aws::Utils::DateTime>
115 void SetCreationDateTime(CreationDateTimeT&& value) {
116 m_creationDateTimeHasBeenSet = true;
117 m_creationDateTime = std::forward<CreationDateTimeT>(value);
118 }
119 template <typename CreationDateTimeT = Aws::Utils::DateTime>
120 SyncJobSummary& WithCreationDateTime(CreationDateTimeT&& value) {
121 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetUpdateDateTime() const { return m_updateDateTime; }
131 inline bool UpdateDateTimeHasBeenSet() const { return m_updateDateTimeHasBeenSet; }
132 template <typename UpdateDateTimeT = Aws::Utils::DateTime>
133 void SetUpdateDateTime(UpdateDateTimeT&& value) {
134 m_updateDateTimeHasBeenSet = true;
135 m_updateDateTime = std::forward<UpdateDateTimeT>(value);
136 }
137 template <typename UpdateDateTimeT = Aws::Utils::DateTime>
138 SyncJobSummary& WithUpdateDateTime(UpdateDateTimeT&& value) {
139 SetUpdateDateTime(std::forward<UpdateDateTimeT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_arn;
145
146 Aws::String m_workspaceId;
147
148 Aws::String m_syncSource;
149
150 SyncJobStatus m_status;
151
152 Aws::Utils::DateTime m_creationDateTime{};
153
154 Aws::Utils::DateTime m_updateDateTime{};
155 bool m_arnHasBeenSet = false;
156 bool m_workspaceIdHasBeenSet = false;
157 bool m_syncSourceHasBeenSet = false;
158 bool m_statusHasBeenSet = false;
159 bool m_creationDateTimeHasBeenSet = false;
160 bool m_updateDateTimeHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace IoTTwinMaker
165} // namespace Aws
const Aws::String & GetSyncSource() const
void SetUpdateDateTime(UpdateDateTimeT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
SyncJobSummary & WithCreationDateTime(CreationDateTimeT &&value)
void SetSyncSource(SyncSourceT &&value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWorkspaceId(WorkspaceIdT &&value)
SyncJobSummary & WithUpdateDateTime(UpdateDateTimeT &&value)
AWS_IOTTWINMAKER_API SyncJobSummary()=default
AWS_IOTTWINMAKER_API SyncJobSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
const Aws::Utils::DateTime & GetUpdateDateTime() const
SyncJobSummary & WithArn(ArnT &&value)
const SyncJobStatus & GetStatus() const
const Aws::String & GetWorkspaceId() const
void SetCreationDateTime(CreationDateTimeT &&value)
SyncJobSummary & WithStatus(StatusT &&value)
AWS_IOTTWINMAKER_API SyncJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SyncJobSummary & WithSyncSource(SyncSourceT &&value)
SyncJobSummary & WithWorkspaceId(WorkspaceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue