AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AliasT = Aws::String>
52 void SetAlias(AliasT&& value) { m_aliasHasBeenSet = true; m_alias = std::forward<AliasT>(value); }
53 template<typename AliasT = Aws::String>
54 WorkspaceDescription& WithAlias(AliasT&& value) { SetAlias(std::forward<AliasT>(value)); return *this;}
56
58
62 inline const Aws::String& GetArn() const { return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 template<typename ArnT = Aws::String>
65 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
66 template<typename ArnT = Aws::String>
67 WorkspaceDescription& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
75 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
76 template<typename CreatedAtT = Aws::Utils::DateTime>
77 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
78 template<typename CreatedAtT = Aws::Utils::DateTime>
79 WorkspaceDescription& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
81
83
87 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
88 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
89 template<typename KmsKeyArnT = Aws::String>
90 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
91 template<typename KmsKeyArnT = Aws::String>
92 WorkspaceDescription& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
94
96
100 inline const Aws::String& GetPrometheusEndpoint() const { return m_prometheusEndpoint; }
101 inline bool PrometheusEndpointHasBeenSet() const { return m_prometheusEndpointHasBeenSet; }
102 template<typename PrometheusEndpointT = Aws::String>
103 void SetPrometheusEndpoint(PrometheusEndpointT&& value) { m_prometheusEndpointHasBeenSet = true; m_prometheusEndpoint = std::forward<PrometheusEndpointT>(value); }
104 template<typename PrometheusEndpointT = Aws::String>
105 WorkspaceDescription& WithPrometheusEndpoint(PrometheusEndpointT&& value) { SetPrometheusEndpoint(std::forward<PrometheusEndpointT>(value)); return *this;}
107
109
112 inline const WorkspaceStatus& GetStatus() const { return m_status; }
113 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
114 template<typename StatusT = WorkspaceStatus>
115 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
116 template<typename StatusT = WorkspaceStatus>
117 WorkspaceDescription& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
119
121
124 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
128 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 WorkspaceDescription& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
130 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
131 WorkspaceDescription& AddTags(TagsKeyT&& key, TagsValueT&& value) {
132 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
133 }
135
137
141 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
142 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
143 template<typename WorkspaceIdT = Aws::String>
144 void SetWorkspaceId(WorkspaceIdT&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::forward<WorkspaceIdT>(value); }
145 template<typename WorkspaceIdT = Aws::String>
146 WorkspaceDescription& WithWorkspaceId(WorkspaceIdT&& value) { SetWorkspaceId(std::forward<WorkspaceIdT>(value)); return *this;}
148 private:
149
150 Aws::String m_alias;
151 bool m_aliasHasBeenSet = false;
152
153 Aws::String m_arn;
154 bool m_arnHasBeenSet = false;
155
156 Aws::Utils::DateTime m_createdAt{};
157 bool m_createdAtHasBeenSet = false;
158
159 Aws::String m_kmsKeyArn;
160 bool m_kmsKeyArnHasBeenSet = false;
161
162 Aws::String m_prometheusEndpoint;
163 bool m_prometheusEndpointHasBeenSet = false;
164
165 WorkspaceStatus m_status;
166 bool m_statusHasBeenSet = false;
167
169 bool m_tagsHasBeenSet = false;
170
171 Aws::String m_workspaceId;
172 bool m_workspaceIdHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace PrometheusService
177} // 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)
const Aws::Utils::DateTime & GetCreatedAt() const
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