AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleGroupsNamespaceSummary.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/RuleGroupsNamespaceStatus.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
37 {
38 public:
39 AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceSummary();
40 AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
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 RuleGroupsNamespaceSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline RuleGroupsNamespaceSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline RuleGroupsNamespaceSummary& 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); }
67 inline RuleGroupsNamespaceSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
68 inline RuleGroupsNamespaceSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
70
72
76 inline const Aws::Utils::DateTime& GetModifiedAt() const{ return m_modifiedAt; }
77 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
78 inline void SetModifiedAt(const Aws::Utils::DateTime& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = value; }
79 inline void SetModifiedAt(Aws::Utils::DateTime&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::move(value); }
80 inline RuleGroupsNamespaceSummary& WithModifiedAt(const Aws::Utils::DateTime& value) { SetModifiedAt(value); return *this;}
81 inline RuleGroupsNamespaceSummary& WithModifiedAt(Aws::Utils::DateTime&& value) { SetModifiedAt(std::move(value)); return *this;}
83
85
88 inline const Aws::String& GetName() const{ return m_name; }
89 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
91 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
92 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
93 inline RuleGroupsNamespaceSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
94 inline RuleGroupsNamespaceSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
95 inline RuleGroupsNamespaceSummary& WithName(const char* value) { SetName(value); return *this;}
97
99
103 inline const RuleGroupsNamespaceStatus& GetStatus() const{ return m_status; }
104 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
105 inline void SetStatus(const RuleGroupsNamespaceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
106 inline void SetStatus(RuleGroupsNamespaceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
107 inline RuleGroupsNamespaceSummary& WithStatus(const RuleGroupsNamespaceStatus& value) { SetStatus(value); return *this;}
108 inline RuleGroupsNamespaceSummary& WithStatus(RuleGroupsNamespaceStatus&& value) { SetStatus(std::move(value)); return *this;}
110
112
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); }
121 inline RuleGroupsNamespaceSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
122 inline RuleGroupsNamespaceSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
123 inline RuleGroupsNamespaceSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
124 inline RuleGroupsNamespaceSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
125 inline RuleGroupsNamespaceSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
126 inline RuleGroupsNamespaceSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
127 inline RuleGroupsNamespaceSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
128 inline RuleGroupsNamespaceSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
130 private:
131
132 Aws::String m_arn;
133 bool m_arnHasBeenSet = false;
134
135 Aws::Utils::DateTime m_createdAt;
136 bool m_createdAtHasBeenSet = false;
137
138 Aws::Utils::DateTime m_modifiedAt;
139 bool m_modifiedAtHasBeenSet = false;
140
141 Aws::String m_name;
142 bool m_nameHasBeenSet = false;
143
145 bool m_statusHasBeenSet = false;
146
148 bool m_tagsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace PrometheusService
153} // namespace Aws
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RuleGroupsNamespaceSummary & WithModifiedAt(Aws::Utils::DateTime &&value)
RuleGroupsNamespaceSummary & AddTags(Aws::String &&key, const char *value)
RuleGroupsNamespaceSummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
RuleGroupsNamespaceSummary & AddTags(const Aws::String &key, const Aws::String &value)
RuleGroupsNamespaceSummary & WithName(Aws::String &&value)
RuleGroupsNamespaceSummary & WithName(const Aws::String &value)
RuleGroupsNamespaceSummary & WithModifiedAt(const Aws::Utils::DateTime &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RuleGroupsNamespaceSummary & WithArn(const char *value)
RuleGroupsNamespaceSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
RuleGroupsNamespaceSummary & AddTags(Aws::String &&key, const Aws::String &value)
RuleGroupsNamespaceSummary & AddTags(Aws::String &&key, Aws::String &&value)
RuleGroupsNamespaceSummary & WithArn(const Aws::String &value)
RuleGroupsNamespaceSummary & WithStatus(RuleGroupsNamespaceStatus &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
RuleGroupsNamespaceSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
RuleGroupsNamespaceSummary & WithStatus(const RuleGroupsNamespaceStatus &value)
RuleGroupsNamespaceSummary & WithName(const char *value)
RuleGroupsNamespaceSummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
RuleGroupsNamespaceSummary & AddTags(const Aws::String &key, Aws::String &&value)
AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceSummary(Aws::Utils::Json::JsonView jsonValue)
RuleGroupsNamespaceSummary & AddTags(const char *key, Aws::String &&value)
RuleGroupsNamespaceSummary & AddTags(const char *key, const char *value)
RuleGroupsNamespaceSummary & WithArn(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