AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const SyncResourceType& GetResourceType() const{ return m_resourceType; }
48 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
49 inline void SetResourceType(const SyncResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
50 inline void SetResourceType(SyncResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
51 inline SyncResourceSummary& WithResourceType(const SyncResourceType& value) { SetResourceType(value); return *this;}
52 inline SyncResourceSummary& WithResourceType(SyncResourceType&& value) { SetResourceType(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetExternalId() const{ return m_externalId; }
60 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
61 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
62 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
63 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
64 inline SyncResourceSummary& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
65 inline SyncResourceSummary& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
66 inline SyncResourceSummary& WithExternalId(const char* value) { SetExternalId(value); return *this;}
68
70
73 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
74 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
75 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
76 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
77 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
78 inline SyncResourceSummary& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
79 inline SyncResourceSummary& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
80 inline SyncResourceSummary& WithResourceId(const char* value) { SetResourceId(value); return *this;}
82
84
87 inline const SyncResourceStatus& GetStatus() const{ return m_status; }
88 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
89 inline void SetStatus(const SyncResourceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
90 inline void SetStatus(SyncResourceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
91 inline SyncResourceSummary& WithStatus(const SyncResourceStatus& value) { SetStatus(value); return *this;}
92 inline SyncResourceSummary& WithStatus(SyncResourceStatus&& value) { SetStatus(std::move(value)); return *this;}
94
96
99 inline const Aws::Utils::DateTime& GetUpdateDateTime() const{ return m_updateDateTime; }
100 inline bool UpdateDateTimeHasBeenSet() const { return m_updateDateTimeHasBeenSet; }
101 inline void SetUpdateDateTime(const Aws::Utils::DateTime& value) { m_updateDateTimeHasBeenSet = true; m_updateDateTime = value; }
102 inline void SetUpdateDateTime(Aws::Utils::DateTime&& value) { m_updateDateTimeHasBeenSet = true; m_updateDateTime = std::move(value); }
104 inline SyncResourceSummary& WithUpdateDateTime(Aws::Utils::DateTime&& value) { SetUpdateDateTime(std::move(value)); return *this;}
106 private:
107
108 SyncResourceType m_resourceType;
109 bool m_resourceTypeHasBeenSet = false;
110
111 Aws::String m_externalId;
112 bool m_externalIdHasBeenSet = false;
113
114 Aws::String m_resourceId;
115 bool m_resourceIdHasBeenSet = false;
116
117 SyncResourceStatus m_status;
118 bool m_statusHasBeenSet = false;
119
120 Aws::Utils::DateTime m_updateDateTime;
121 bool m_updateDateTimeHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace IoTTwinMaker
126} // namespace Aws
AWS_IOTTWINMAKER_API SyncResourceSummary(Aws::Utils::Json::JsonView jsonValue)
SyncResourceSummary & WithUpdateDateTime(Aws::Utils::DateTime &&value)
SyncResourceSummary & WithExternalId(Aws::String &&value)
SyncResourceSummary & WithResourceId(const char *value)
SyncResourceSummary & WithStatus(const SyncResourceStatus &value)
void SetUpdateDateTime(Aws::Utils::DateTime &&value)
AWS_IOTTWINMAKER_API SyncResourceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SyncResourceSummary & WithResourceType(const SyncResourceType &value)
void SetStatus(const SyncResourceStatus &value)
void SetResourceType(const SyncResourceType &value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
SyncResourceSummary & WithExternalId(const char *value)
const Aws::Utils::DateTime & GetUpdateDateTime() const
const SyncResourceType & GetResourceType() const
SyncResourceSummary & WithExternalId(const Aws::String &value)
SyncResourceSummary & WithResourceType(SyncResourceType &&value)
SyncResourceSummary & WithResourceId(const Aws::String &value)
const SyncResourceStatus & GetStatus() const
SyncResourceSummary & WithStatus(SyncResourceStatus &&value)
void SetUpdateDateTime(const Aws::Utils::DateTime &value)
SyncResourceSummary & WithResourceId(Aws::String &&value)
SyncResourceSummary & WithUpdateDateTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue