AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkspaceSummary.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 WorkspaceSummary();
39 AWS_PROMETHEUSSERVICE_API WorkspaceSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PROMETHEUSSERVICE_API WorkspaceSummary& 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 WorkspaceSummary& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
55 inline WorkspaceSummary& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
56 inline WorkspaceSummary& WithAlias(const char* value) { SetAlias(value); return *this;}
58
60
63 inline const Aws::String& GetArn() const{ return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
66 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
67 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
68 inline WorkspaceSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
69 inline WorkspaceSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
70 inline WorkspaceSummary& WithArn(const char* value) { SetArn(value); return *this;}
72
74
77 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
78 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
79 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
80 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
81 inline WorkspaceSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
82 inline WorkspaceSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
84
86
90 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
91 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
92 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
93 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
94 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
95 inline WorkspaceSummary& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
96 inline WorkspaceSummary& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
97 inline WorkspaceSummary& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
99
101
104 inline const WorkspaceStatus& GetStatus() const{ return m_status; }
105 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
106 inline void SetStatus(const WorkspaceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
107 inline void SetStatus(WorkspaceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
108 inline WorkspaceSummary& WithStatus(const WorkspaceStatus& value) { SetStatus(value); return *this;}
109 inline WorkspaceSummary& WithStatus(WorkspaceStatus&& value) { SetStatus(std::move(value)); return *this;}
111
113
116 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
120 inline WorkspaceSummary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
121 inline WorkspaceSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
122 inline WorkspaceSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
123 inline WorkspaceSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
124 inline WorkspaceSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
125 inline WorkspaceSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
126 inline WorkspaceSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
127 inline WorkspaceSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
128 inline WorkspaceSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
130
132
135 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
136 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
137 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
138 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
139 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
140 inline WorkspaceSummary& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
141 inline WorkspaceSummary& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
142 inline WorkspaceSummary& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
144 private:
145
146 Aws::String m_alias;
147 bool m_aliasHasBeenSet = false;
148
149 Aws::String m_arn;
150 bool m_arnHasBeenSet = false;
151
152 Aws::Utils::DateTime m_createdAt;
153 bool m_createdAtHasBeenSet = false;
154
155 Aws::String m_kmsKeyArn;
156 bool m_kmsKeyArnHasBeenSet = false;
157
158 WorkspaceStatus m_status;
159 bool m_statusHasBeenSet = false;
160
162 bool m_tagsHasBeenSet = false;
163
164 Aws::String m_workspaceId;
165 bool m_workspaceIdHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace PrometheusService
170} // namespace Aws
WorkspaceSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
WorkspaceSummary & WithArn(const char *value)
WorkspaceSummary & WithWorkspaceId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
WorkspaceSummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
WorkspaceSummary & WithAlias(const Aws::String &value)
WorkspaceSummary & WithWorkspaceId(const Aws::String &value)
AWS_PROMETHEUSSERVICE_API WorkspaceSummary()
void SetCreatedAt(Aws::Utils::DateTime &&value)
WorkspaceSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
WorkspaceSummary & WithArn(Aws::String &&value)
AWS_PROMETHEUSSERVICE_API WorkspaceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkspaceSummary & WithKmsKeyArn(const char *value)
WorkspaceSummary & AddTags(const char *key, const char *value)
WorkspaceSummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_PROMETHEUSSERVICE_API WorkspaceSummary(Aws::Utils::Json::JsonView jsonValue)
WorkspaceSummary & WithStatus(WorkspaceStatus &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
WorkspaceSummary & AddTags(Aws::String &&key, const char *value)
WorkspaceSummary & AddTags(const Aws::String &key, Aws::String &&value)
WorkspaceSummary & WithArn(const Aws::String &value)
WorkspaceSummary & WithWorkspaceId(const char *value)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
WorkspaceSummary & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetStatus(const WorkspaceStatus &value)
WorkspaceSummary & AddTags(const char *key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
WorkspaceSummary & WithKmsKeyArn(const Aws::String &value)
WorkspaceSummary & WithKmsKeyArn(Aws::String &&value)
WorkspaceSummary & WithStatus(const WorkspaceStatus &value)
WorkspaceSummary & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
WorkspaceSummary & WithAlias(Aws::String &&value)
WorkspaceSummary & WithAlias(const char *value)
WorkspaceSummary & AddTags(Aws::String &&key, Aws::String &&value)
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