AWS SDK for C++

AWS SDK for C++ Version 1.11.712

Loading...
Searching...
No Matches
RuleGroupsNamespaceDescription.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/RuleGroupsNamespaceStatus.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PrometheusService {
24namespace Model {
25
32 public:
33 AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceDescription() = default;
34 AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceDescription(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const RuleGroupsNamespaceStatus& GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 template <typename StatusT = RuleGroupsNamespaceStatus>
82 void SetStatus(StatusT&& value) {
83 m_statusHasBeenSet = true;
84 m_status = std::forward<StatusT>(value);
85 }
86 template <typename StatusT = RuleGroupsNamespaceStatus>
88 SetStatus(std::forward<StatusT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::Utils::ByteBuffer& GetData() const { return m_data; }
100 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
101 template <typename DataT = Aws::Utils::ByteBuffer>
102 void SetData(DataT&& value) {
103 m_dataHasBeenSet = true;
104 m_data = std::forward<DataT>(value);
105 }
106 template <typename DataT = Aws::Utils::ByteBuffer>
108 SetData(std::forward<DataT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
118 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
119 template <typename CreatedAtT = Aws::Utils::DateTime>
120 void SetCreatedAt(CreatedAtT&& value) {
121 m_createdAtHasBeenSet = true;
122 m_createdAt = std::forward<CreatedAtT>(value);
123 }
124 template <typename CreatedAtT = Aws::Utils::DateTime>
126 SetCreatedAt(std::forward<CreatedAtT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
137 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
138 template <typename ModifiedAtT = Aws::Utils::DateTime>
139 void SetModifiedAt(ModifiedAtT&& value) {
140 m_modifiedAtHasBeenSet = true;
141 m_modifiedAt = std::forward<ModifiedAtT>(value);
142 }
143 template <typename ModifiedAtT = Aws::Utils::DateTime>
145 SetModifiedAt(std::forward<ModifiedAtT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 void SetTags(TagsT&& value) {
159 m_tagsHasBeenSet = true;
160 m_tags = std::forward<TagsT>(value);
161 }
162 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 SetTags(std::forward<TagsT>(value));
165 return *this;
166 }
167 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
168 RuleGroupsNamespaceDescription& AddTags(TagsKeyT&& key, TagsValueT&& value) {
169 m_tagsHasBeenSet = true;
170 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_arn;
176
177 Aws::String m_name;
178
180
181 Aws::Utils::ByteBuffer m_data{};
182
183 Aws::Utils::DateTime m_createdAt{};
184
185 Aws::Utils::DateTime m_modifiedAt{};
186
188 bool m_arnHasBeenSet = false;
189 bool m_nameHasBeenSet = false;
190 bool m_statusHasBeenSet = false;
191 bool m_dataHasBeenSet = false;
192 bool m_createdAtHasBeenSet = false;
193 bool m_modifiedAtHasBeenSet = false;
194 bool m_tagsHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace PrometheusService
199} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RuleGroupsNamespaceDescription & WithCreatedAt(CreatedAtT &&value)
RuleGroupsNamespaceDescription & WithModifiedAt(ModifiedAtT &&value)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RuleGroupsNamespaceDescription & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceDescription(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceDescription()=default
AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceDescription & operator=(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