AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
GetWorkspaceResult.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.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 GetWorkspaceResult() = default;
31
33
36 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
37 template <typename WorkspaceIdT = Aws::String>
38 void SetWorkspaceId(WorkspaceIdT&& value) {
39 m_workspaceIdHasBeenSet = true;
40 m_workspaceId = std::forward<WorkspaceIdT>(value);
41 }
42 template <typename WorkspaceIdT = Aws::String>
43 GetWorkspaceResult& WithWorkspaceId(WorkspaceIdT&& value) {
44 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetArn() const { return m_arn; }
54 template <typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) {
56 m_arnHasBeenSet = true;
57 m_arn = std::forward<ArnT>(value);
58 }
59 template <typename ArnT = Aws::String>
60 GetWorkspaceResult& WithArn(ArnT&& value) {
61 SetArn(std::forward<ArnT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 template <typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) {
73 m_descriptionHasBeenSet = true;
74 m_description = std::forward<DescriptionT>(value);
75 }
76 template <typename DescriptionT = Aws::String>
77 GetWorkspaceResult& WithDescription(DescriptionT&& value) {
78 SetDescription(std::forward<DescriptionT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Vector<Aws::String>& GetLinkedServices() const { return m_linkedServices; }
88 template <typename LinkedServicesT = Aws::Vector<Aws::String>>
89 void SetLinkedServices(LinkedServicesT&& value) {
90 m_linkedServicesHasBeenSet = true;
91 m_linkedServices = std::forward<LinkedServicesT>(value);
92 }
93 template <typename LinkedServicesT = Aws::Vector<Aws::String>>
94 GetWorkspaceResult& WithLinkedServices(LinkedServicesT&& value) {
95 SetLinkedServices(std::forward<LinkedServicesT>(value));
96 return *this;
97 }
98 template <typename LinkedServicesT = Aws::String>
99 GetWorkspaceResult& AddLinkedServices(LinkedServicesT&& value) {
100 m_linkedServicesHasBeenSet = true;
101 m_linkedServices.emplace_back(std::forward<LinkedServicesT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetS3Location() const { return m_s3Location; }
112 template <typename S3LocationT = Aws::String>
113 void SetS3Location(S3LocationT&& value) {
114 m_s3LocationHasBeenSet = true;
115 m_s3Location = std::forward<S3LocationT>(value);
116 }
117 template <typename S3LocationT = Aws::String>
118 GetWorkspaceResult& WithS3Location(S3LocationT&& value) {
119 SetS3Location(std::forward<S3LocationT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetRole() const { return m_role; }
129 template <typename RoleT = Aws::String>
130 void SetRole(RoleT&& value) {
131 m_roleHasBeenSet = true;
132 m_role = std::forward<RoleT>(value);
133 }
134 template <typename RoleT = Aws::String>
135 GetWorkspaceResult& WithRole(RoleT&& value) {
136 SetRole(std::forward<RoleT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
146 template <typename CreationDateTimeT = Aws::Utils::DateTime>
147 void SetCreationDateTime(CreationDateTimeT&& value) {
148 m_creationDateTimeHasBeenSet = true;
149 m_creationDateTime = std::forward<CreationDateTimeT>(value);
150 }
151 template <typename CreationDateTimeT = Aws::Utils::DateTime>
152 GetWorkspaceResult& WithCreationDateTime(CreationDateTimeT&& value) {
153 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Utils::DateTime& GetUpdateDateTime() const { return m_updateDateTime; }
163 template <typename UpdateDateTimeT = Aws::Utils::DateTime>
164 void SetUpdateDateTime(UpdateDateTimeT&& value) {
165 m_updateDateTimeHasBeenSet = true;
166 m_updateDateTime = std::forward<UpdateDateTimeT>(value);
167 }
168 template <typename UpdateDateTimeT = Aws::Utils::DateTime>
169 GetWorkspaceResult& WithUpdateDateTime(UpdateDateTimeT&& value) {
170 SetUpdateDateTime(std::forward<UpdateDateTimeT>(value));
171 return *this;
172 }
174
176
177 inline const Aws::String& GetRequestId() const { return m_requestId; }
178 template <typename RequestIdT = Aws::String>
179 void SetRequestId(RequestIdT&& value) {
180 m_requestIdHasBeenSet = true;
181 m_requestId = std::forward<RequestIdT>(value);
182 }
183 template <typename RequestIdT = Aws::String>
184 GetWorkspaceResult& WithRequestId(RequestIdT&& value) {
185 SetRequestId(std::forward<RequestIdT>(value));
186 return *this;
187 }
189 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
190
191 private:
192 Aws::String m_workspaceId;
193
194 Aws::String m_arn;
195
196 Aws::String m_description;
197
198 Aws::Vector<Aws::String> m_linkedServices;
199
200 Aws::String m_s3Location;
201
202 Aws::String m_role;
203
204 Aws::Utils::DateTime m_creationDateTime{};
205
206 Aws::Utils::DateTime m_updateDateTime{};
207
208 Aws::String m_requestId;
209 Aws::Http::HttpResponseCode m_HttpResponseCode;
210 bool m_workspaceIdHasBeenSet = false;
211 bool m_arnHasBeenSet = false;
212 bool m_descriptionHasBeenSet = false;
213 bool m_linkedServicesHasBeenSet = false;
214 bool m_s3LocationHasBeenSet = false;
215 bool m_roleHasBeenSet = false;
216 bool m_creationDateTimeHasBeenSet = false;
217 bool m_updateDateTimeHasBeenSet = false;
218 bool m_requestIdHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace IoTTwinMaker
223} // namespace Aws
GetWorkspaceResult & WithWorkspaceId(WorkspaceIdT &&value)
GetWorkspaceResult & WithCreationDateTime(CreationDateTimeT &&value)
const Aws::Utils::DateTime & GetUpdateDateTime() const
AWS_IOTTWINMAKER_API GetWorkspaceResult()=default
AWS_IOTTWINMAKER_API GetWorkspaceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetWorkspaceResult & WithLinkedServices(LinkedServicesT &&value)
GetWorkspaceResult & WithDescription(DescriptionT &&value)
void SetLinkedServices(LinkedServicesT &&value)
GetWorkspaceResult & WithUpdateDateTime(UpdateDateTimeT &&value)
GetWorkspaceResult & WithArn(ArnT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
AWS_IOTTWINMAKER_API GetWorkspaceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetWorkspaceResult & WithRequestId(RequestIdT &&value)
GetWorkspaceResult & WithS3Location(S3LocationT &&value)
void SetUpdateDateTime(UpdateDateTimeT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< Aws::String > & GetLinkedServices() const
GetWorkspaceResult & AddLinkedServices(LinkedServicesT &&value)
GetWorkspaceResult & WithRole(RoleT &&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