AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SyncResourceSummary.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/SyncResourceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iottwinmaker/model/SyncResourceStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTTwinMaker
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IOTTWINMAKER_API SyncResourceSummary() = default;
38 AWS_IOTTWINMAKER_API SyncResourceSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline SyncResourceType GetResourceType() const { return m_resourceType; }
48 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
49 inline void SetResourceType(SyncResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
52
54
57 inline const Aws::String& GetExternalId() const { return m_externalId; }
58 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
59 template<typename ExternalIdT = Aws::String>
60 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
61 template<typename ExternalIdT = Aws::String>
62 SyncResourceSummary& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetResourceId() const { return m_resourceId; }
70 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
71 template<typename ResourceIdT = Aws::String>
72 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
73 template<typename ResourceIdT = Aws::String>
74 SyncResourceSummary& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
76
78
81 inline const SyncResourceStatus& GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 template<typename StatusT = SyncResourceStatus>
84 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
85 template<typename StatusT = SyncResourceStatus>
86 SyncResourceSummary& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetUpdateDateTime() const { return m_updateDateTime; }
94 inline bool UpdateDateTimeHasBeenSet() const { return m_updateDateTimeHasBeenSet; }
95 template<typename UpdateDateTimeT = Aws::Utils::DateTime>
96 void SetUpdateDateTime(UpdateDateTimeT&& value) { m_updateDateTimeHasBeenSet = true; m_updateDateTime = std::forward<UpdateDateTimeT>(value); }
97 template<typename UpdateDateTimeT = Aws::Utils::DateTime>
98 SyncResourceSummary& WithUpdateDateTime(UpdateDateTimeT&& value) { SetUpdateDateTime(std::forward<UpdateDateTimeT>(value)); return *this;}
100 private:
101
103 bool m_resourceTypeHasBeenSet = false;
104
105 Aws::String m_externalId;
106 bool m_externalIdHasBeenSet = false;
107
108 Aws::String m_resourceId;
109 bool m_resourceIdHasBeenSet = false;
110
111 SyncResourceStatus m_status;
112 bool m_statusHasBeenSet = false;
113
114 Aws::Utils::DateTime m_updateDateTime{};
115 bool m_updateDateTimeHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace IoTTwinMaker
120} // namespace Aws
AWS_IOTTWINMAKER_API SyncResourceSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTWINMAKER_API SyncResourceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetUpdateDateTime() const
SyncResourceSummary & WithStatus(StatusT &&value)
SyncResourceSummary & WithUpdateDateTime(UpdateDateTimeT &&value)
const SyncResourceStatus & GetStatus() const
SyncResourceSummary & WithResourceType(SyncResourceType value)
AWS_IOTTWINMAKER_API SyncResourceSummary()=default
SyncResourceSummary & WithResourceId(ResourceIdT &&value)
SyncResourceSummary & WithExternalId(ExternalIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue