AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InsightRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/monitoring/CloudWatch_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudWatch {
20namespace Model {
21
32 public:
33 AWS_CLOUDWATCH_API InsightRule() = default;
34 AWS_CLOUDWATCH_API InsightRule(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCH_API InsightRule& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 InsightRule& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetState() const { return m_state; }
61 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
62 template <typename StateT = Aws::String>
63 void SetState(StateT&& value) {
64 m_stateHasBeenSet = true;
65 m_state = std::forward<StateT>(value);
66 }
67 template <typename StateT = Aws::String>
68 InsightRule& WithState(StateT&& value) {
69 SetState(std::forward<StateT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetSchema() const { return m_schema; }
81 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
82 template <typename SchemaT = Aws::String>
83 void SetSchema(SchemaT&& value) {
84 m_schemaHasBeenSet = true;
85 m_schema = std::forward<SchemaT>(value);
86 }
87 template <typename SchemaT = Aws::String>
88 InsightRule& WithSchema(SchemaT&& value) {
89 SetSchema(std::forward<SchemaT>(value));
90 return *this;
91 }
93
95
103 inline const Aws::String& GetDefinition() const { return m_definition; }
104 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
105 template <typename DefinitionT = Aws::String>
106 void SetDefinition(DefinitionT&& value) {
107 m_definitionHasBeenSet = true;
108 m_definition = std::forward<DefinitionT>(value);
109 }
110 template <typename DefinitionT = Aws::String>
111 InsightRule& WithDefinition(DefinitionT&& value) {
112 SetDefinition(std::forward<DefinitionT>(value));
113 return *this;
114 }
116
118
121 inline bool GetManagedRule() const { return m_managedRule; }
122 inline bool ManagedRuleHasBeenSet() const { return m_managedRuleHasBeenSet; }
123 inline void SetManagedRule(bool value) {
124 m_managedRuleHasBeenSet = true;
125 m_managedRule = value;
126 }
127 inline InsightRule& WithManagedRule(bool value) {
128 SetManagedRule(value);
129 return *this;
130 }
132
134
141 inline bool GetApplyOnTransformedLogs() const { return m_applyOnTransformedLogs; }
142 inline bool ApplyOnTransformedLogsHasBeenSet() const { return m_applyOnTransformedLogsHasBeenSet; }
143 inline void SetApplyOnTransformedLogs(bool value) {
144 m_applyOnTransformedLogsHasBeenSet = true;
145 m_applyOnTransformedLogs = value;
146 }
149 return *this;
150 }
152 private:
153 Aws::String m_name;
154
155 Aws::String m_state;
156
157 Aws::String m_schema;
158
159 Aws::String m_definition;
160
161 bool m_managedRule{false};
162
163 bool m_applyOnTransformedLogs{false};
164 bool m_nameHasBeenSet = false;
165 bool m_stateHasBeenSet = false;
166 bool m_schemaHasBeenSet = false;
167 bool m_definitionHasBeenSet = false;
168 bool m_managedRuleHasBeenSet = false;
169 bool m_applyOnTransformedLogsHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace CloudWatch
174} // namespace Aws
AWS_CLOUDWATCH_API InsightRule()=default
AWS_CLOUDWATCH_API InsightRule & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetApplyOnTransformedLogs(bool value)
const Aws::String & GetSchema() const
Definition InsightRule.h:80
void SetSchema(SchemaT &&value)
Definition InsightRule.h:83
const Aws::String & GetState() const
Definition InsightRule.h:60
const Aws::String & GetName() const
Definition InsightRule.h:42
InsightRule & WithSchema(SchemaT &&value)
Definition InsightRule.h:88
AWS_CLOUDWATCH_API InsightRule(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetDefinition() const
InsightRule & WithDefinition(DefinitionT &&value)
InsightRule & WithApplyOnTransformedLogs(bool value)
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
InsightRule & WithName(NameT &&value)
Definition InsightRule.h:50
InsightRule & WithState(StateT &&value)
Definition InsightRule.h:68
InsightRule & WithManagedRule(bool value)
void SetDefinition(DefinitionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String