AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ManagedRuleDescription.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/monitoring/model/ManagedRuleState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudWatch
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDWATCH_API ManagedRuleDescription();
37 AWS_CLOUDWATCH_API ManagedRuleDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDWATCH_API ManagedRuleDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
50 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
51 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
52 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
53 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
54 inline ManagedRuleDescription& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
55 inline ManagedRuleDescription& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
56 inline ManagedRuleDescription& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
58
60
64 inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
65 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
66 inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
67 inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
68 inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
69 inline ManagedRuleDescription& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
70 inline ManagedRuleDescription& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
71 inline ManagedRuleDescription& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
73
75
80 inline const ManagedRuleState& GetRuleState() const{ return m_ruleState; }
81 inline bool RuleStateHasBeenSet() const { return m_ruleStateHasBeenSet; }
82 inline void SetRuleState(const ManagedRuleState& value) { m_ruleStateHasBeenSet = true; m_ruleState = value; }
83 inline void SetRuleState(ManagedRuleState&& value) { m_ruleStateHasBeenSet = true; m_ruleState = std::move(value); }
84 inline ManagedRuleDescription& WithRuleState(const ManagedRuleState& value) { SetRuleState(value); return *this;}
85 inline ManagedRuleDescription& WithRuleState(ManagedRuleState&& value) { SetRuleState(std::move(value)); return *this;}
87 private:
88
89 Aws::String m_templateName;
90 bool m_templateNameHasBeenSet = false;
91
92 Aws::String m_resourceARN;
93 bool m_resourceARNHasBeenSet = false;
94
95 ManagedRuleState m_ruleState;
96 bool m_ruleStateHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace CloudWatch
101} // namespace Aws
ManagedRuleDescription & WithRuleState(const ManagedRuleState &value)
ManagedRuleDescription & WithResourceARN(const Aws::String &value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDWATCH_API ManagedRuleDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ManagedRuleDescription & WithTemplateName(const char *value)
void SetRuleState(const ManagedRuleState &value)
ManagedRuleDescription & WithResourceARN(const char *value)
ManagedRuleDescription & WithTemplateName(Aws::String &&value)
ManagedRuleDescription & WithResourceARN(Aws::String &&value)
ManagedRuleDescription & WithRuleState(ManagedRuleState &&value)
ManagedRuleDescription & WithTemplateName(const Aws::String &value)
AWS_CLOUDWATCH_API ManagedRuleDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream