AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkspaceDescription.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/amp/model/WorkspaceStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.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 PrometheusService
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_PROMETHEUSSERVICE_API WorkspaceDescription();
39 AWS_PROMETHEUSSERVICE_API WorkspaceDescription(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PROMETHEUSSERVICE_API WorkspaceDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetAlias() const{ return m_alias; }
50 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
51 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
52 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
53 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
54 inline WorkspaceDescription& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
55 inline WorkspaceDescription& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
56 inline WorkspaceDescription& WithAlias(const char* value) { SetAlias(value); return *this;}
58
60
64 inline const Aws::String& GetArn() const{ return m_arn; }
65 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
66 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
67 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
68 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
69 inline WorkspaceDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;}
70 inline WorkspaceDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
71 inline WorkspaceDescription& WithArn(const char* value) { SetArn(value); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
79 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
80 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
81 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
82 inline WorkspaceDescription& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
83 inline WorkspaceDescription& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
85
87
91 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
92 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
93 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
94 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
95 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
96 inline WorkspaceDescription& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
97 inline WorkspaceDescription& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
98 inline WorkspaceDescription& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
100
102
106 inline const Aws::String& GetPrometheusEndpoint() const{ return m_prometheusEndpoint; }
107 inline bool PrometheusEndpointHasBeenSet() const { return m_prometheusEndpointHasBeenSet; }
108 inline void SetPrometheusEndpoint(const Aws::String& value) { m_prometheusEndpointHasBeenSet = true; m_prometheusEndpoint = value; }
109 inline void SetPrometheusEndpoint(Aws::String&& value) { m_prometheusEndpointHasBeenSet = true; m_prometheusEndpoint = std::move(value); }
110 inline void SetPrometheusEndpoint(const char* value) { m_prometheusEndpointHasBeenSet = true; m_prometheusEndpoint.assign(value); }
112 inline WorkspaceDescription& WithPrometheusEndpoint(Aws::String&& value) { SetPrometheusEndpoint(std::move(value)); return *this;}
113 inline WorkspaceDescription& WithPrometheusEndpoint(const char* value) { SetPrometheusEndpoint(value); return *this;}
115
117
120 inline const WorkspaceStatus& GetStatus() const{ return m_status; }
121 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
122 inline void SetStatus(const WorkspaceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
123 inline void SetStatus(WorkspaceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
124 inline WorkspaceDescription& WithStatus(const WorkspaceStatus& value) { SetStatus(value); return *this;}
125 inline WorkspaceDescription& WithStatus(WorkspaceStatus&& value) { SetStatus(std::move(value)); return *this;}
127
129
132 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
135 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
136 inline WorkspaceDescription& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
137 inline WorkspaceDescription& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
138 inline WorkspaceDescription& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
139 inline WorkspaceDescription& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
140 inline WorkspaceDescription& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
141 inline WorkspaceDescription& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
142 inline WorkspaceDescription& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
143 inline WorkspaceDescription& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
144 inline WorkspaceDescription& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
146
148
152 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
153 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
154 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
155 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
156 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
157 inline WorkspaceDescription& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
158 inline WorkspaceDescription& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
159 inline WorkspaceDescription& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
161 private:
162
163 Aws::String m_alias;
164 bool m_aliasHasBeenSet = false;
165
166 Aws::String m_arn;
167 bool m_arnHasBeenSet = false;
168
169 Aws::Utils::DateTime m_createdAt;
170 bool m_createdAtHasBeenSet = false;
171
172 Aws::String m_kmsKeyArn;
173 bool m_kmsKeyArnHasBeenSet = false;
174
175 Aws::String m_prometheusEndpoint;
176 bool m_prometheusEndpointHasBeenSet = false;
177
178 WorkspaceStatus m_status;
179 bool m_statusHasBeenSet = false;
180
182 bool m_tagsHasBeenSet = false;
183
184 Aws::String m_workspaceId;
185 bool m_workspaceIdHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace PrometheusService
190} // namespace Aws
WorkspaceDescription & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
WorkspaceDescription & WithStatus(WorkspaceStatus &&value)
WorkspaceDescription & WithArn(const Aws::String &value)
WorkspaceDescription & WithPrometheusEndpoint(const char *value)
AWS_PROMETHEUSSERVICE_API WorkspaceDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkspaceDescription & WithArn(const char *value)
WorkspaceDescription & AddTags(Aws::String &&key, Aws::String &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
WorkspaceDescription & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
WorkspaceDescription & WithKmsKeyArn(Aws::String &&value)
WorkspaceDescription & WithCreatedAt(Aws::Utils::DateTime &&value)
WorkspaceDescription & AddTags(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
WorkspaceDescription & WithAlias(Aws::String &&value)
WorkspaceDescription & WithWorkspaceId(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
WorkspaceDescription & WithKmsKeyArn(const Aws::String &value)
WorkspaceDescription & WithWorkspaceId(const Aws::String &value)
WorkspaceDescription & WithAlias(const Aws::String &value)
WorkspaceDescription & WithPrometheusEndpoint(Aws::String &&value)
WorkspaceDescription & AddTags(Aws::String &&key, const Aws::String &value)
WorkspaceDescription & WithArn(Aws::String &&value)
WorkspaceDescription & WithKmsKeyArn(const char *value)
WorkspaceDescription & WithWorkspaceId(Aws::String &&value)
WorkspaceDescription & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
WorkspaceDescription & AddTags(const Aws::String &key, Aws::String &&value)
WorkspaceDescription & WithPrometheusEndpoint(const Aws::String &value)
WorkspaceDescription & AddTags(const char *key, const char *value)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
WorkspaceDescription & WithCreatedAt(const Aws::Utils::DateTime &value)
WorkspaceDescription & WithAlias(const char *value)
WorkspaceDescription & WithStatus(const WorkspaceStatus &value)
WorkspaceDescription & AddTags(const char *key, Aws::String &&value)
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