AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PutInsightRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/monitoring/CloudWatchRequest.h>
10#include <aws/monitoring/CloudWatch_EXPORTS.h>
11#include <aws/monitoring/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudWatch {
17namespace Model {
18
22 public:
23 AWS_CLOUDWATCH_API PutInsightRuleRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutInsightRule"; }
30
31 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetRuleName() const { return m_ruleName; }
40 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
41 template <typename RuleNameT = Aws::String>
42 void SetRuleName(RuleNameT&& value) {
43 m_ruleNameHasBeenSet = true;
44 m_ruleName = std::forward<RuleNameT>(value);
45 }
46 template <typename RuleNameT = Aws::String>
47 PutInsightRuleRequest& WithRuleName(RuleNameT&& value) {
48 SetRuleName(std::forward<RuleNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetRuleState() const { return m_ruleState; }
58 inline bool RuleStateHasBeenSet() const { return m_ruleStateHasBeenSet; }
59 template <typename RuleStateT = Aws::String>
60 void SetRuleState(RuleStateT&& value) {
61 m_ruleStateHasBeenSet = true;
62 m_ruleState = std::forward<RuleStateT>(value);
63 }
64 template <typename RuleStateT = Aws::String>
65 PutInsightRuleRequest& WithRuleState(RuleStateT&& value) {
66 SetRuleState(std::forward<RuleStateT>(value));
67 return *this;
68 }
70
72
78 inline const Aws::String& GetRuleDefinition() const { return m_ruleDefinition; }
79 inline bool RuleDefinitionHasBeenSet() const { return m_ruleDefinitionHasBeenSet; }
80 template <typename RuleDefinitionT = Aws::String>
81 void SetRuleDefinition(RuleDefinitionT&& value) {
82 m_ruleDefinitionHasBeenSet = true;
83 m_ruleDefinition = std::forward<RuleDefinitionT>(value);
84 }
85 template <typename RuleDefinitionT = Aws::String>
86 PutInsightRuleRequest& WithRuleDefinition(RuleDefinitionT&& value) {
87 SetRuleDefinition(std::forward<RuleDefinitionT>(value));
88 return *this;
89 }
91
93
106 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template <typename TagsT = Aws::Vector<Tag>>
109 void SetTags(TagsT&& value) {
110 m_tagsHasBeenSet = true;
111 m_tags = std::forward<TagsT>(value);
112 }
113 template <typename TagsT = Aws::Vector<Tag>>
115 SetTags(std::forward<TagsT>(value));
116 return *this;
117 }
118 template <typename TagsT = Tag>
120 m_tagsHasBeenSet = true;
121 m_tags.emplace_back(std::forward<TagsT>(value));
122 return *this;
123 }
125
127
142 inline bool GetApplyOnTransformedLogs() const { return m_applyOnTransformedLogs; }
143 inline bool ApplyOnTransformedLogsHasBeenSet() const { return m_applyOnTransformedLogsHasBeenSet; }
144 inline void SetApplyOnTransformedLogs(bool value) {
145 m_applyOnTransformedLogsHasBeenSet = true;
146 m_applyOnTransformedLogs = value;
147 }
150 return *this;
151 }
153 private:
154 Aws::String m_ruleName;
155
156 Aws::String m_ruleState;
157
158 Aws::String m_ruleDefinition;
159
160 Aws::Vector<Tag> m_tags;
161
162 bool m_applyOnTransformedLogs{false};
163 bool m_ruleNameHasBeenSet = false;
164 bool m_ruleStateHasBeenSet = false;
165 bool m_ruleDefinitionHasBeenSet = false;
166 bool m_tagsHasBeenSet = false;
167 bool m_applyOnTransformedLogsHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace CloudWatch
172} // namespace Aws
PutInsightRuleRequest & WithRuleName(RuleNameT &&value)
PutInsightRuleRequest & WithRuleDefinition(RuleDefinitionT &&value)
AWS_CLOUDWATCH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutInsightRuleRequest & WithRuleState(RuleStateT &&value)
AWS_CLOUDWATCH_API PutInsightRuleRequest()=default
PutInsightRuleRequest & WithTags(TagsT &&value)
PutInsightRuleRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
PutInsightRuleRequest & WithApplyOnTransformedLogs(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector