AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ManagedRuleState.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudWatch
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDWATCH_API ManagedRuleState();
36 AWS_CLOUDWATCH_API ManagedRuleState(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDWATCH_API ManagedRuleState& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
48 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
49 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
50 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
51 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
52 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
53 inline ManagedRuleState& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
54 inline ManagedRuleState& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
55 inline ManagedRuleState& WithRuleName(const char* value) { SetRuleName(value); return *this;}
57
59
62 inline const Aws::String& GetState() const{ return m_state; }
63 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
64 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
65 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
66 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
67 inline ManagedRuleState& WithState(const Aws::String& value) { SetState(value); return *this;}
68 inline ManagedRuleState& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
69 inline ManagedRuleState& WithState(const char* value) { SetState(value); return *this;}
71 private:
72
73 Aws::String m_ruleName;
74 bool m_ruleNameHasBeenSet = false;
75
76 Aws::String m_state;
77 bool m_stateHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CloudWatch
82} // namespace Aws
ManagedRuleState & WithState(const char *value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ManagedRuleState & WithState(Aws::String &&value)
ManagedRuleState & WithRuleName(const Aws::String &value)
AWS_CLOUDWATCH_API ManagedRuleState(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetRuleName() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetState(const Aws::String &value)
AWS_CLOUDWATCH_API ManagedRuleState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRuleName(const Aws::String &value)
ManagedRuleState & WithRuleName(const char *value)
ManagedRuleState & WithRuleName(Aws::String &&value)
ManagedRuleState & WithState(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream