AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
RuleGroupsNamespaceSummary.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/RuleGroupsNamespaceStatus.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
33 public:
34 AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceSummary() = default;
35 AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
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
80 inline const RuleGroupsNamespaceStatus& GetStatus() const { return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 template <typename StatusT = RuleGroupsNamespaceStatus>
83 void SetStatus(StatusT&& value) {
84 m_statusHasBeenSet = true;
85 m_status = std::forward<StatusT>(value);
86 }
87 template <typename StatusT = RuleGroupsNamespaceStatus>
89 SetStatus(std::forward<StatusT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
99 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
100 template <typename CreatedAtT = Aws::Utils::DateTime>
101 void SetCreatedAt(CreatedAtT&& value) {
102 m_createdAtHasBeenSet = true;
103 m_createdAt = std::forward<CreatedAtT>(value);
104 }
105 template <typename CreatedAtT = Aws::Utils::DateTime>
107 SetCreatedAt(std::forward<CreatedAtT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
118 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
119 template <typename ModifiedAtT = Aws::Utils::DateTime>
120 void SetModifiedAt(ModifiedAtT&& value) {
121 m_modifiedAtHasBeenSet = true;
122 m_modifiedAt = std::forward<ModifiedAtT>(value);
123 }
124 template <typename ModifiedAtT = Aws::Utils::DateTime>
126 SetModifiedAt(std::forward<ModifiedAtT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
139 void SetTags(TagsT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags = std::forward<TagsT>(value);
142 }
143 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 SetTags(std::forward<TagsT>(value));
146 return *this;
147 }
148 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
149 RuleGroupsNamespaceSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_arn;
157
158 Aws::String m_name;
159
161
162 Aws::Utils::DateTime m_createdAt{};
163
164 Aws::Utils::DateTime m_modifiedAt{};
165
167 bool m_arnHasBeenSet = false;
168 bool m_nameHasBeenSet = false;
169 bool m_statusHasBeenSet = false;
170 bool m_createdAtHasBeenSet = false;
171 bool m_modifiedAtHasBeenSet = false;
172 bool m_tagsHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace PrometheusService
177} // namespace Aws
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceSummary()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RuleGroupsNamespaceSummary & WithModifiedAt(ModifiedAtT &&value)
RuleGroupsNamespaceSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
RuleGroupsNamespaceSummary & WithStatus(StatusT &&value)
RuleGroupsNamespaceSummary & WithCreatedAt(CreatedAtT &&value)
AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceSummary(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