AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 InsightRule& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
57
59
62 inline const Aws::String& GetState() const { return m_state; }
63 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
64 template<typename StateT = Aws::String>
65 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
66 template<typename StateT = Aws::String>
67 InsightRule& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
69
71
76 inline const Aws::String& GetSchema() const { return m_schema; }
77 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
78 template<typename SchemaT = Aws::String>
79 void SetSchema(SchemaT&& value) { m_schemaHasBeenSet = true; m_schema = std::forward<SchemaT>(value); }
80 template<typename SchemaT = Aws::String>
81 InsightRule& WithSchema(SchemaT&& value) { SetSchema(std::forward<SchemaT>(value)); return *this;}
83
85
93 inline const Aws::String& GetDefinition() const { return m_definition; }
94 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
95 template<typename DefinitionT = Aws::String>
96 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
97 template<typename DefinitionT = Aws::String>
98 InsightRule& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
100
102
105 inline bool GetManagedRule() const { return m_managedRule; }
106 inline bool ManagedRuleHasBeenSet() const { return m_managedRuleHasBeenSet; }
107 inline void SetManagedRule(bool value) { m_managedRuleHasBeenSet = true; m_managedRule = value; }
108 inline InsightRule& WithManagedRule(bool value) { SetManagedRule(value); return *this;}
110
112
119 inline bool GetApplyOnTransformedLogs() const { return m_applyOnTransformedLogs; }
120 inline bool ApplyOnTransformedLogsHasBeenSet() const { return m_applyOnTransformedLogsHasBeenSet; }
121 inline void SetApplyOnTransformedLogs(bool value) { m_applyOnTransformedLogsHasBeenSet = true; m_applyOnTransformedLogs = value; }
122 inline InsightRule& WithApplyOnTransformedLogs(bool value) { SetApplyOnTransformedLogs(value); return *this;}
124 private:
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
129 Aws::String m_state;
130 bool m_stateHasBeenSet = false;
131
132 Aws::String m_schema;
133 bool m_schemaHasBeenSet = false;
134
135 Aws::String m_definition;
136 bool m_definitionHasBeenSet = false;
137
138 bool m_managedRule{false};
139 bool m_managedRuleHasBeenSet = false;
140
141 bool m_applyOnTransformedLogs{false};
142 bool m_applyOnTransformedLogsHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace CloudWatch
147} // namespace Aws
AWS_CLOUDWATCH_API InsightRule()=default
void SetApplyOnTransformedLogs(bool value)
const Aws::String & GetSchema() const
Definition InsightRule.h:76
AWS_CLOUDWATCH_API InsightRule(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSchema(SchemaT &&value)
Definition InsightRule.h:79
const Aws::String & GetState() const
Definition InsightRule.h:62
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 & WithSchema(SchemaT &&value)
Definition InsightRule.h:81
const Aws::String & GetDefinition() const
Definition InsightRule.h:93
AWS_CLOUDWATCH_API InsightRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InsightRule & WithDefinition(DefinitionT &&value)
Definition InsightRule.h:98
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InsightRule & WithApplyOnTransformedLogs(bool value)
InsightRule & WithName(NameT &&value)
Definition InsightRule.h:55
InsightRule & WithState(StateT &&value)
Definition InsightRule.h:67
InsightRule & WithManagedRule(bool value)
void SetDefinition(DefinitionT &&value)
Definition InsightRule.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream