AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleGroupsNamespaceDescription.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/core/utils/Array.h>
11#include <aws/amp/model/RuleGroupsNamespaceStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace PrometheusService
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceDescription();
39 AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceDescription(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetArn() const{ return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline RuleGroupsNamespaceDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline RuleGroupsNamespaceDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline RuleGroupsNamespaceDescription& WithArn(const char* value) { SetArn(value); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
64 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
65 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
66 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
68 inline RuleGroupsNamespaceDescription& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
70
72
77 inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; }
78 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
79 inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; }
80 inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
81 inline RuleGroupsNamespaceDescription& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;}
82 inline RuleGroupsNamespaceDescription& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;}
84
86
90 inline const Aws::Utils::DateTime& GetModifiedAt() const{ return m_modifiedAt; }
91 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
92 inline void SetModifiedAt(const Aws::Utils::DateTime& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = value; }
93 inline void SetModifiedAt(Aws::Utils::DateTime&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::move(value); }
95 inline RuleGroupsNamespaceDescription& WithModifiedAt(Aws::Utils::DateTime&& value) { SetModifiedAt(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetName() const{ return m_name; }
103 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
104 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
105 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
106 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
107 inline RuleGroupsNamespaceDescription& WithName(const Aws::String& value) { SetName(value); return *this;}
108 inline RuleGroupsNamespaceDescription& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
109 inline RuleGroupsNamespaceDescription& WithName(const char* value) { SetName(value); return *this;}
111
113
116 inline const RuleGroupsNamespaceStatus& GetStatus() const{ return m_status; }
117 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
118 inline void SetStatus(const RuleGroupsNamespaceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
119 inline void SetStatus(RuleGroupsNamespaceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
121 inline RuleGroupsNamespaceDescription& WithStatus(RuleGroupsNamespaceStatus&& value) { SetStatus(std::move(value)); return *this;}
123
125
129 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
132 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
134 inline RuleGroupsNamespaceDescription& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
135 inline RuleGroupsNamespaceDescription& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
136 inline RuleGroupsNamespaceDescription& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
137 inline RuleGroupsNamespaceDescription& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
138 inline RuleGroupsNamespaceDescription& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
139 inline RuleGroupsNamespaceDescription& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
140 inline RuleGroupsNamespaceDescription& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
141 inline RuleGroupsNamespaceDescription& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
143 private:
144
145 Aws::String m_arn;
146 bool m_arnHasBeenSet = false;
147
148 Aws::Utils::DateTime m_createdAt;
149 bool m_createdAtHasBeenSet = false;
150
152 bool m_dataHasBeenSet = false;
153
154 Aws::Utils::DateTime m_modifiedAt;
155 bool m_modifiedAtHasBeenSet = false;
156
157 Aws::String m_name;
158 bool m_nameHasBeenSet = false;
159
161 bool m_statusHasBeenSet = false;
162
164 bool m_tagsHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace PrometheusService
169} // namespace Aws
RuleGroupsNamespaceDescription & WithModifiedAt(Aws::Utils::DateTime &&value)
RuleGroupsNamespaceDescription & WithStatus(const RuleGroupsNamespaceStatus &value)
RuleGroupsNamespaceDescription & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RuleGroupsNamespaceDescription & AddTags(Aws::String &&key, Aws::String &&value)
RuleGroupsNamespaceDescription & AddTags(const Aws::String &key, const Aws::String &value)
RuleGroupsNamespaceDescription & WithData(Aws::Utils::ByteBuffer &&value)
RuleGroupsNamespaceDescription & WithArn(Aws::String &&value)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
RuleGroupsNamespaceDescription & AddTags(Aws::String &&key, const char *value)
RuleGroupsNamespaceDescription & AddTags(const Aws::String &key, Aws::String &&value)
AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceDescription(Aws::Utils::Json::JsonView jsonValue)
RuleGroupsNamespaceDescription & WithName(const Aws::String &value)
RuleGroupsNamespaceDescription & WithName(Aws::String &&value)
RuleGroupsNamespaceDescription & WithCreatedAt(Aws::Utils::DateTime &&value)
RuleGroupsNamespaceDescription & WithData(const Aws::Utils::ByteBuffer &value)
RuleGroupsNamespaceDescription & WithArn(const char *value)
RuleGroupsNamespaceDescription & WithArn(const Aws::String &value)
RuleGroupsNamespaceDescription & AddTags(const char *key, Aws::String &&value)
RuleGroupsNamespaceDescription & AddTags(const char *key, const char *value)
AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleGroupsNamespaceDescription & AddTags(Aws::String &&key, const Aws::String &value)
RuleGroupsNamespaceDescription & WithModifiedAt(const Aws::Utils::DateTime &value)
RuleGroupsNamespaceDescription & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
RuleGroupsNamespaceDescription & WithStatus(RuleGroupsNamespaceStatus &&value)
RuleGroupsNamespaceDescription & WithCreatedAt(const Aws::Utils::DateTime &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