AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InsightRule.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
36 {
37 public:
38 AWS_CLOUDWATCH_API InsightRule();
39 AWS_CLOUDWATCH_API InsightRule(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDWATCH_API InsightRule& 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
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline InsightRule& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline InsightRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline InsightRule& WithName(const char* value) { SetName(value); return *this;}
59
61
64 inline const Aws::String& GetState() const{ return m_state; }
65 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
66 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
67 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
68 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
69 inline InsightRule& WithState(const Aws::String& value) { SetState(value); return *this;}
70 inline InsightRule& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
71 inline InsightRule& WithState(const char* value) { SetState(value); return *this;}
73
75
80 inline const Aws::String& GetSchema() const{ return m_schema; }
81 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
82 inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
83 inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
84 inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
85 inline InsightRule& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
86 inline InsightRule& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
87 inline InsightRule& WithSchema(const char* value) { SetSchema(value); return *this;}
89
91
99 inline const Aws::String& GetDefinition() const{ return m_definition; }
100 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
101 inline void SetDefinition(const Aws::String& value) { m_definitionHasBeenSet = true; m_definition = value; }
102 inline void SetDefinition(Aws::String&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
103 inline void SetDefinition(const char* value) { m_definitionHasBeenSet = true; m_definition.assign(value); }
104 inline InsightRule& WithDefinition(const Aws::String& value) { SetDefinition(value); return *this;}
105 inline InsightRule& WithDefinition(Aws::String&& value) { SetDefinition(std::move(value)); return *this;}
106 inline InsightRule& WithDefinition(const char* value) { SetDefinition(value); return *this;}
108
110
113 inline bool GetManagedRule() const{ return m_managedRule; }
114 inline bool ManagedRuleHasBeenSet() const { return m_managedRuleHasBeenSet; }
115 inline void SetManagedRule(bool value) { m_managedRuleHasBeenSet = true; m_managedRule = value; }
116 inline InsightRule& WithManagedRule(bool value) { SetManagedRule(value); return *this;}
118 private:
119
120 Aws::String m_name;
121 bool m_nameHasBeenSet = false;
122
123 Aws::String m_state;
124 bool m_stateHasBeenSet = false;
125
126 Aws::String m_schema;
127 bool m_schemaHasBeenSet = false;
128
129 Aws::String m_definition;
130 bool m_definitionHasBeenSet = false;
131
132 bool m_managedRule;
133 bool m_managedRuleHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace CloudWatch
138} // namespace Aws
void SetState(const char *value)
Definition InsightRule.h:68
void SetDefinition(const Aws::String &value)
void SetSchema(const Aws::String &value)
Definition InsightRule.h:82
AWS_CLOUDWATCH_API InsightRule()
void SetName(Aws::String &&value)
Definition InsightRule.h:53
InsightRule & WithSchema(Aws::String &&value)
Definition InsightRule.h:86
void SetDefinition(Aws::String &&value)
void SetName(const Aws::String &value)
Definition InsightRule.h:52
void SetState(const Aws::String &value)
Definition InsightRule.h:66
const Aws::String & GetSchema() const
Definition InsightRule.h:80
AWS_CLOUDWATCH_API InsightRule(const Aws::Utils::Xml::XmlNode &xmlNode)
InsightRule & WithSchema(const char *value)
Definition InsightRule.h:87
InsightRule & WithName(const char *value)
Definition InsightRule.h:57
const Aws::String & GetState() const
Definition InsightRule.h:64
void SetSchema(Aws::String &&value)
Definition InsightRule.h:83
InsightRule & WithState(Aws::String &&value)
Definition InsightRule.h:70
const Aws::String & GetName() const
Definition InsightRule.h:50
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InsightRule & WithDefinition(const Aws::String &value)
InsightRule & WithName(Aws::String &&value)
Definition InsightRule.h:56
const Aws::String & GetDefinition() const
Definition InsightRule.h:99
InsightRule & WithDefinition(Aws::String &&value)
AWS_CLOUDWATCH_API InsightRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InsightRule & WithState(const char *value)
Definition InsightRule.h:71
void SetName(const char *value)
Definition InsightRule.h:54
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetState(Aws::String &&value)
Definition InsightRule.h:67
void SetDefinition(const char *value)
InsightRule & WithState(const Aws::String &value)
Definition InsightRule.h:69
InsightRule & WithSchema(const Aws::String &value)
Definition InsightRule.h:85
InsightRule & WithName(const Aws::String &value)
Definition InsightRule.h:55
InsightRule & WithDefinition(const char *value)
void SetSchema(const char *value)
Definition InsightRule.h:84
InsightRule & WithManagedRule(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream