AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
WorkspaceSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.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
31 public:
32 AWS_IOTTWINMAKER_API WorkspaceSummary() = default;
33 AWS_IOTTWINMAKER_API WorkspaceSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTTWINMAKER_API WorkspaceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
42 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
43 template <typename WorkspaceIdT = Aws::String>
44 void SetWorkspaceId(WorkspaceIdT&& value) {
45 m_workspaceIdHasBeenSet = true;
46 m_workspaceId = std::forward<WorkspaceIdT>(value);
47 }
48 template <typename WorkspaceIdT = Aws::String>
49 WorkspaceSummary& WithWorkspaceId(WorkspaceIdT&& value) {
50 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
67 WorkspaceSummary& WithArn(ArnT&& value) {
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 WorkspaceSummary& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Aws::String>& GetLinkedServices() const { return m_linkedServices; }
96 inline bool LinkedServicesHasBeenSet() const { return m_linkedServicesHasBeenSet; }
97 template <typename LinkedServicesT = Aws::Vector<Aws::String>>
98 void SetLinkedServices(LinkedServicesT&& value) {
99 m_linkedServicesHasBeenSet = true;
100 m_linkedServices = std::forward<LinkedServicesT>(value);
101 }
102 template <typename LinkedServicesT = Aws::Vector<Aws::String>>
103 WorkspaceSummary& WithLinkedServices(LinkedServicesT&& value) {
104 SetLinkedServices(std::forward<LinkedServicesT>(value));
105 return *this;
106 }
107 template <typename LinkedServicesT = Aws::String>
108 WorkspaceSummary& AddLinkedServices(LinkedServicesT&& value) {
109 m_linkedServicesHasBeenSet = true;
110 m_linkedServices.emplace_back(std::forward<LinkedServicesT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
120 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
121 template <typename CreationDateTimeT = Aws::Utils::DateTime>
122 void SetCreationDateTime(CreationDateTimeT&& value) {
123 m_creationDateTimeHasBeenSet = true;
124 m_creationDateTime = std::forward<CreationDateTimeT>(value);
125 }
126 template <typename CreationDateTimeT = Aws::Utils::DateTime>
127 WorkspaceSummary& WithCreationDateTime(CreationDateTimeT&& value) {
128 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Utils::DateTime& GetUpdateDateTime() const { return m_updateDateTime; }
138 inline bool UpdateDateTimeHasBeenSet() const { return m_updateDateTimeHasBeenSet; }
139 template <typename UpdateDateTimeT = Aws::Utils::DateTime>
140 void SetUpdateDateTime(UpdateDateTimeT&& value) {
141 m_updateDateTimeHasBeenSet = true;
142 m_updateDateTime = std::forward<UpdateDateTimeT>(value);
143 }
144 template <typename UpdateDateTimeT = Aws::Utils::DateTime>
145 WorkspaceSummary& WithUpdateDateTime(UpdateDateTimeT&& value) {
146 SetUpdateDateTime(std::forward<UpdateDateTimeT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_workspaceId;
152
153 Aws::String m_arn;
154
155 Aws::String m_description;
156
157 Aws::Vector<Aws::String> m_linkedServices;
158
159 Aws::Utils::DateTime m_creationDateTime{};
160
161 Aws::Utils::DateTime m_updateDateTime{};
162 bool m_workspaceIdHasBeenSet = false;
163 bool m_arnHasBeenSet = false;
164 bool m_descriptionHasBeenSet = false;
165 bool m_linkedServicesHasBeenSet = false;
166 bool m_creationDateTimeHasBeenSet = false;
167 bool m_updateDateTimeHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace IoTTwinMaker
172} // namespace Aws
WorkspaceSummary & WithLinkedServices(LinkedServicesT &&value)
const Aws::String & GetWorkspaceId() const
WorkspaceSummary & WithUpdateDateTime(UpdateDateTimeT &&value)
WorkspaceSummary & WithCreationDateTime(CreationDateTimeT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
const Aws::Vector< Aws::String > & GetLinkedServices() const
AWS_IOTTWINMAKER_API WorkspaceSummary(Aws::Utils::Json::JsonView jsonValue)
WorkspaceSummary & WithWorkspaceId(WorkspaceIdT &&value)
const Aws::Utils::DateTime & GetUpdateDateTime() const
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUpdateDateTime(UpdateDateTimeT &&value)
WorkspaceSummary & WithDescription(DescriptionT &&value)
AWS_IOTTWINMAKER_API WorkspaceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkspaceSummary & WithArn(ArnT &&value)
AWS_IOTTWINMAKER_API WorkspaceSummary()=default
const Aws::String & GetDescription() const
WorkspaceSummary & AddLinkedServices(LinkedServicesT &&value)
void SetLinkedServices(LinkedServicesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue