AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ManagedRule.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/monitoring/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudWatch
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_CLOUDWATCH_API ManagedRule();
39 AWS_CLOUDWATCH_API ManagedRule(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDWATCH_API ManagedRule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
51 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
52 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
53 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
54 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
55 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
56 inline ManagedRule& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
57 inline ManagedRule& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
58 inline ManagedRule& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
60
62
66 inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
67 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
68 inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
69 inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
70 inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
71 inline ManagedRule& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
72 inline ManagedRule& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
73 inline ManagedRule& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
75
77
89 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
92 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
93 inline ManagedRule& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
94 inline ManagedRule& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
95 inline ManagedRule& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
96 inline ManagedRule& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
98 private:
99
100 Aws::String m_templateName;
101 bool m_templateNameHasBeenSet = false;
102
103 Aws::String m_resourceARN;
104 bool m_resourceARNHasBeenSet = false;
105
106 Aws::Vector<Tag> m_tags;
107 bool m_tagsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace CloudWatch
112} // namespace Aws
void SetTemplateName(const char *value)
Definition ManagedRule.h:55
ManagedRule & AddTags(const Tag &value)
Definition ManagedRule.h:95
ManagedRule & WithTags(const Aws::Vector< Tag > &value)
Definition ManagedRule.h:93
void SetResourceARN(const char *value)
Definition ManagedRule.h:70
AWS_CLOUDWATCH_API ManagedRule(const Aws::Utils::Xml::XmlNode &xmlNode)
ManagedRule & WithTemplateName(const Aws::String &value)
Definition ManagedRule.h:56
void SetTemplateName(Aws::String &&value)
Definition ManagedRule.h:54
ManagedRule & WithResourceARN(Aws::String &&value)
Definition ManagedRule.h:72
void SetResourceARN(Aws::String &&value)
Definition ManagedRule.h:69
AWS_CLOUDWATCH_API ManagedRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTags(Aws::Vector< Tag > &&value)
Definition ManagedRule.h:92
void SetTags(const Aws::Vector< Tag > &value)
Definition ManagedRule.h:91
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ManagedRule & WithTemplateName(const char *value)
Definition ManagedRule.h:58
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetResourceARN(const Aws::String &value)
Definition ManagedRule.h:68
AWS_CLOUDWATCH_API ManagedRule()
ManagedRule & WithTags(Aws::Vector< Tag > &&value)
Definition ManagedRule.h:94
void SetTemplateName(const Aws::String &value)
Definition ManagedRule.h:53
const Aws::String & GetTemplateName() const
Definition ManagedRule.h:51
ManagedRule & WithResourceARN(const char *value)
Definition ManagedRule.h:73
ManagedRule & WithResourceARN(const Aws::String &value)
Definition ManagedRule.h:71
ManagedRule & AddTags(Tag &&value)
Definition ManagedRule.h:96
const Aws::String & GetResourceARN() const
Definition ManagedRule.h:66
ManagedRule & WithTemplateName(Aws::String &&value)
Definition ManagedRule.h:57
const Aws::Vector< Tag > & GetTags() const
Definition ManagedRule.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream