AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 RuleGroupsNamespaceDescription& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
62 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
63 template<typename CreatedAtT = Aws::Utils::DateTime>
64 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
65 template<typename CreatedAtT = Aws::Utils::DateTime>
66 RuleGroupsNamespaceDescription& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
68
70
75 inline const Aws::Utils::ByteBuffer& GetData() const { return m_data; }
76 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
77 template<typename DataT = Aws::Utils::ByteBuffer>
78 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
79 template<typename DataT = Aws::Utils::ByteBuffer>
80 RuleGroupsNamespaceDescription& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
82
84
88 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
89 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
90 template<typename ModifiedAtT = Aws::Utils::DateTime>
91 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
92 template<typename ModifiedAtT = Aws::Utils::DateTime>
93 RuleGroupsNamespaceDescription& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
95
97
100 inline const Aws::String& GetName() const { return m_name; }
101 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
102 template<typename NameT = Aws::String>
103 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
104 template<typename NameT = Aws::String>
105 RuleGroupsNamespaceDescription& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
107
109
112 inline const RuleGroupsNamespaceStatus& GetStatus() const { return m_status; }
113 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
114 template<typename StatusT = RuleGroupsNamespaceStatus>
115 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
116 template<typename StatusT = RuleGroupsNamespaceStatus>
117 RuleGroupsNamespaceDescription& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
119
121
125 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
129 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 RuleGroupsNamespaceDescription& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
131 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
132 RuleGroupsNamespaceDescription& AddTags(TagsKeyT&& key, TagsValueT&& value) {
133 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
134 }
136 private:
137
138 Aws::String m_arn;
139 bool m_arnHasBeenSet = false;
140
141 Aws::Utils::DateTime m_createdAt{};
142 bool m_createdAtHasBeenSet = false;
143
144 Aws::Utils::ByteBuffer m_data{};
145 bool m_dataHasBeenSet = false;
146
147 Aws::Utils::DateTime m_modifiedAt{};
148 bool m_modifiedAtHasBeenSet = false;
149
150 Aws::String m_name;
151 bool m_nameHasBeenSet = false;
152
153 RuleGroupsNamespaceStatus m_status;
154 bool m_statusHasBeenSet = false;
155
157 bool m_tagsHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace PrometheusService
162} // 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