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>
53 template<
typename TemplateNameT = Aws::String>
54 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet =
true; m_templateName = std::forward<TemplateNameT>(value); }
55 template<
typename TemplateNameT = Aws::String>
66 template<
typename ResourceARNT = Aws::String>
67 void SetResourceARN(ResourceARNT&& value) { m_resourceARNHasBeenSet =
true; m_resourceARN = std::forward<ResourceARNT>(value); }
68 template<
typename ResourceARNT = Aws::String>
87 template<
typename TagsT = Aws::Vector<Tag>>
88 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
89 template<
typename TagsT = Aws::Vector<Tag>>
91 template<
typename TagsT = Tag>
92 ManagedRule&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
97 bool m_templateNameHasBeenSet =
false;
100 bool m_resourceARNHasBeenSet =
false;
103 bool m_tagsHasBeenSet =
false;
ManagedRule & WithTags(TagsT &&value)
void SetResourceARN(ResourceARNT &&value)
AWS_CLOUDWATCH_API ManagedRule(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTemplateName(TemplateNameT &&value)
AWS_CLOUDWATCH_API ManagedRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool TagsHasBeenSet() const
void SetTags(TagsT &&value)
bool ResourceARNHasBeenSet() const
ManagedRule & WithResourceARN(ResourceARNT &&value)
const Aws::String & GetTemplateName() const
AWS_CLOUDWATCH_API ManagedRule()=default
ManagedRule & WithTemplateName(TemplateNameT &&value)
bool TemplateNameHasBeenSet() const
ManagedRule & AddTags(TagsT &&value)
const Aws::String & GetResourceARN() const
const Aws::Vector< Tag > & GetTags() const
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