AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
CloudWatchAlarmTemplateGroupSummary.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaLive
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MEDIALIVE_API CloudWatchAlarmTemplateGroupSummary() = default;
40 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 CloudWatchAlarmTemplateGroupSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
54
56
57 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
58 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
59 template<typename CreatedAtT = Aws::Utils::DateTime>
60 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
61 template<typename CreatedAtT = Aws::Utils::DateTime>
62 CloudWatchAlarmTemplateGroupSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 template<typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
73 template<typename DescriptionT = Aws::String>
74 CloudWatchAlarmTemplateGroupSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
76
78
82 inline const Aws::String& GetId() const { return m_id; }
83 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
84 template<typename IdT = Aws::String>
85 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
86 template<typename IdT = Aws::String>
87 CloudWatchAlarmTemplateGroupSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
89
91
92 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
93 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
94 template<typename ModifiedAtT = Aws::Utils::DateTime>
95 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
96 template<typename ModifiedAtT = Aws::Utils::DateTime>
97 CloudWatchAlarmTemplateGroupSummary& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
99
101
105 inline const Aws::String& GetName() const { return m_name; }
106 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
107 template<typename NameT = Aws::String>
108 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
109 template<typename NameT = Aws::String>
110 CloudWatchAlarmTemplateGroupSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
112
114
115 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
119 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
120 CloudWatchAlarmTemplateGroupSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
121 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
122 CloudWatchAlarmTemplateGroupSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
123 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
124 }
126
128
131 inline int GetTemplateCount() const { return m_templateCount; }
132 inline bool TemplateCountHasBeenSet() const { return m_templateCountHasBeenSet; }
133 inline void SetTemplateCount(int value) { m_templateCountHasBeenSet = true; m_templateCount = value; }
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::String m_description;
145 bool m_descriptionHasBeenSet = false;
146
147 Aws::String m_id;
148 bool m_idHasBeenSet = false;
149
150 Aws::Utils::DateTime m_modifiedAt{};
151 bool m_modifiedAtHasBeenSet = false;
152
153 Aws::String m_name;
154 bool m_nameHasBeenSet = false;
155
157 bool m_tagsHasBeenSet = false;
158
159 int m_templateCount{0};
160 bool m_templateCountHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace MediaLive
165} // namespace Aws
CloudWatchAlarmTemplateGroupSummary & WithDescription(DescriptionT &&value)
CloudWatchAlarmTemplateGroupSummary & WithCreatedAt(CreatedAtT &&value)
AWS_MEDIALIVE_API CloudWatchAlarmTemplateGroupSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIALIVE_API CloudWatchAlarmTemplateGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudWatchAlarmTemplateGroupSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
CloudWatchAlarmTemplateGroupSummary & WithModifiedAt(ModifiedAtT &&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