AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PutInsightRuleRequest.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/monitoring/CloudWatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/monitoring/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatch
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCH_API PutInsightRuleRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutInsightRule"; }
33
34 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetRuleName() const { return m_ruleName; }
46 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
47 template<typename RuleNameT = Aws::String>
48 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
49 template<typename RuleNameT = Aws::String>
50 PutInsightRuleRequest& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
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) { m_ruleStateHasBeenSet = true; m_ruleState = std::forward<RuleStateT>(value); }
61 template<typename RuleStateT = Aws::String>
62 PutInsightRuleRequest& WithRuleState(RuleStateT&& value) { SetRuleState(std::forward<RuleStateT>(value)); return *this;}
64
66
72 inline const Aws::String& GetRuleDefinition() const { return m_ruleDefinition; }
73 inline bool RuleDefinitionHasBeenSet() const { return m_ruleDefinitionHasBeenSet; }
74 template<typename RuleDefinitionT = Aws::String>
75 void SetRuleDefinition(RuleDefinitionT&& value) { m_ruleDefinitionHasBeenSet = true; m_ruleDefinition = std::forward<RuleDefinitionT>(value); }
76 template<typename RuleDefinitionT = Aws::String>
77 PutInsightRuleRequest& WithRuleDefinition(RuleDefinitionT&& value) { SetRuleDefinition(std::forward<RuleDefinitionT>(value)); return *this;}
79
81
94 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 template<typename TagsT = Aws::Vector<Tag>>
97 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
98 template<typename TagsT = Aws::Vector<Tag>>
99 PutInsightRuleRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
100 template<typename TagsT = Tag>
101 PutInsightRuleRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
103
105
120 inline bool GetApplyOnTransformedLogs() const { return m_applyOnTransformedLogs; }
121 inline bool ApplyOnTransformedLogsHasBeenSet() const { return m_applyOnTransformedLogsHasBeenSet; }
122 inline void SetApplyOnTransformedLogs(bool value) { m_applyOnTransformedLogsHasBeenSet = true; m_applyOnTransformedLogs = value; }
125 private:
126
127 Aws::String m_ruleName;
128 bool m_ruleNameHasBeenSet = false;
129
130 Aws::String m_ruleState;
131 bool m_ruleStateHasBeenSet = false;
132
133 Aws::String m_ruleDefinition;
134 bool m_ruleDefinitionHasBeenSet = false;
135
136 Aws::Vector<Tag> m_tags;
137 bool m_tagsHasBeenSet = false;
138
139 bool m_applyOnTransformedLogs{false};
140 bool m_applyOnTransformedLogsHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace CloudWatch
145} // namespace Aws
PutInsightRuleRequest & WithRuleName(RuleNameT &&value)
PutInsightRuleRequest & WithRuleDefinition(RuleDefinitionT &&value)
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_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector