AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
WorkspaceDescription.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/WorkspaceStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PrometheusService {
23namespace Model {
24
32 public:
33 AWS_PROMETHEUSSERVICE_API WorkspaceDescription() = default;
34 AWS_PROMETHEUSSERVICE_API WorkspaceDescription(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PROMETHEUSSERVICE_API WorkspaceDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
44 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
45 template <typename WorkspaceIdT = Aws::String>
46 void SetWorkspaceId(WorkspaceIdT&& value) {
47 m_workspaceIdHasBeenSet = true;
48 m_workspaceId = std::forward<WorkspaceIdT>(value);
49 }
50 template <typename WorkspaceIdT = Aws::String>
51 WorkspaceDescription& WithWorkspaceId(WorkspaceIdT&& value) {
52 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetAlias() const { return m_alias; }
63 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
64 template <typename AliasT = Aws::String>
65 void SetAlias(AliasT&& value) {
66 m_aliasHasBeenSet = true;
67 m_alias = std::forward<AliasT>(value);
68 }
69 template <typename AliasT = Aws::String>
71 SetAlias(std::forward<AliasT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetArn() const { return m_arn; }
82 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
83 template <typename ArnT = Aws::String>
84 void SetArn(ArnT&& value) {
85 m_arnHasBeenSet = true;
86 m_arn = std::forward<ArnT>(value);
87 }
88 template <typename ArnT = Aws::String>
90 SetArn(std::forward<ArnT>(value));
91 return *this;
92 }
94
96
99 inline const WorkspaceStatus& GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 template <typename StatusT = WorkspaceStatus>
102 void SetStatus(StatusT&& value) {
103 m_statusHasBeenSet = true;
104 m_status = std::forward<StatusT>(value);
105 }
106 template <typename StatusT = WorkspaceStatus>
108 SetStatus(std::forward<StatusT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetPrometheusEndpoint() const { return m_prometheusEndpoint; }
119 inline bool PrometheusEndpointHasBeenSet() const { return m_prometheusEndpointHasBeenSet; }
120 template <typename PrometheusEndpointT = Aws::String>
121 void SetPrometheusEndpoint(PrometheusEndpointT&& value) {
122 m_prometheusEndpointHasBeenSet = true;
123 m_prometheusEndpoint = std::forward<PrometheusEndpointT>(value);
124 }
125 template <typename PrometheusEndpointT = Aws::String>
126 WorkspaceDescription& WithPrometheusEndpoint(PrometheusEndpointT&& value) {
127 SetPrometheusEndpoint(std::forward<PrometheusEndpointT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
137 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
138 template <typename CreatedAtT = Aws::Utils::DateTime>
139 void SetCreatedAt(CreatedAtT&& value) {
140 m_createdAtHasBeenSet = true;
141 m_createdAt = std::forward<CreatedAtT>(value);
142 }
143 template <typename CreatedAtT = Aws::Utils::DateTime>
144 WorkspaceDescription& WithCreatedAt(CreatedAtT&& value) {
145 SetCreatedAt(std::forward<CreatedAtT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 void SetTags(TagsT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags = std::forward<TagsT>(value);
160 }
161 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
163 SetTags(std::forward<TagsT>(value));
164 return *this;
165 }
166 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
167 WorkspaceDescription& AddTags(TagsKeyT&& key, TagsValueT&& value) {
168 m_tagsHasBeenSet = true;
169 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
170 return *this;
171 }
173
175
179 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
180 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
181 template <typename KmsKeyArnT = Aws::String>
182 void SetKmsKeyArn(KmsKeyArnT&& value) {
183 m_kmsKeyArnHasBeenSet = true;
184 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
185 }
186 template <typename KmsKeyArnT = Aws::String>
187 WorkspaceDescription& WithKmsKeyArn(KmsKeyArnT&& value) {
188 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_workspaceId;
194
195 Aws::String m_alias;
196
197 Aws::String m_arn;
198
199 WorkspaceStatus m_status;
200
201 Aws::String m_prometheusEndpoint;
202
203 Aws::Utils::DateTime m_createdAt{};
204
206
207 Aws::String m_kmsKeyArn;
208 bool m_workspaceIdHasBeenSet = false;
209 bool m_aliasHasBeenSet = false;
210 bool m_arnHasBeenSet = false;
211 bool m_statusHasBeenSet = false;
212 bool m_prometheusEndpointHasBeenSet = false;
213 bool m_createdAtHasBeenSet = false;
214 bool m_tagsHasBeenSet = false;
215 bool m_kmsKeyArnHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace PrometheusService
220} // namespace Aws
AWS_PROMETHEUSSERVICE_API WorkspaceDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkspaceDescription & WithStatus(StatusT &&value)
WorkspaceDescription & WithKmsKeyArn(KmsKeyArnT &&value)
WorkspaceDescription & WithWorkspaceId(WorkspaceIdT &&value)
WorkspaceDescription & WithCreatedAt(CreatedAtT &&value)
WorkspaceDescription & WithPrometheusEndpoint(PrometheusEndpointT &&value)
AWS_PROMETHEUSSERVICE_API WorkspaceDescription()=default
WorkspaceDescription & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
WorkspaceDescription & WithAlias(AliasT &&value)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PROMETHEUSSERVICE_API WorkspaceDescription(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue