AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
48 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
49 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
50 inline PutInsightRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
51 inline PutInsightRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
52 inline PutInsightRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
54
56
59 inline const Aws::String& GetRuleState() const{ return m_ruleState; }
60 inline bool RuleStateHasBeenSet() const { return m_ruleStateHasBeenSet; }
61 inline void SetRuleState(const Aws::String& value) { m_ruleStateHasBeenSet = true; m_ruleState = value; }
62 inline void SetRuleState(Aws::String&& value) { m_ruleStateHasBeenSet = true; m_ruleState = std::move(value); }
63 inline void SetRuleState(const char* value) { m_ruleStateHasBeenSet = true; m_ruleState.assign(value); }
64 inline PutInsightRuleRequest& WithRuleState(const Aws::String& value) { SetRuleState(value); return *this;}
65 inline PutInsightRuleRequest& WithRuleState(Aws::String&& value) { SetRuleState(std::move(value)); return *this;}
66 inline PutInsightRuleRequest& WithRuleState(const char* value) { SetRuleState(value); return *this;}
68
70
76 inline const Aws::String& GetRuleDefinition() const{ return m_ruleDefinition; }
77 inline bool RuleDefinitionHasBeenSet() const { return m_ruleDefinitionHasBeenSet; }
78 inline void SetRuleDefinition(const Aws::String& value) { m_ruleDefinitionHasBeenSet = true; m_ruleDefinition = value; }
79 inline void SetRuleDefinition(Aws::String&& value) { m_ruleDefinitionHasBeenSet = true; m_ruleDefinition = std::move(value); }
80 inline void SetRuleDefinition(const char* value) { m_ruleDefinitionHasBeenSet = true; m_ruleDefinition.assign(value); }
81 inline PutInsightRuleRequest& WithRuleDefinition(const Aws::String& value) { SetRuleDefinition(value); return *this;}
82 inline PutInsightRuleRequest& WithRuleDefinition(Aws::String&& value) { SetRuleDefinition(std::move(value)); return *this;}
83 inline PutInsightRuleRequest& WithRuleDefinition(const char* value) { SetRuleDefinition(value); return *this;}
85
87
100 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
103 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
104 inline PutInsightRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
105 inline PutInsightRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
106 inline PutInsightRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
107 inline PutInsightRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
109 private:
110
111 Aws::String m_ruleName;
112 bool m_ruleNameHasBeenSet = false;
113
114 Aws::String m_ruleState;
115 bool m_ruleStateHasBeenSet = false;
116
117 Aws::String m_ruleDefinition;
118 bool m_ruleDefinitionHasBeenSet = false;
119
120 Aws::Vector<Tag> m_tags;
121 bool m_tagsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace CloudWatch
126} // namespace Aws
PutInsightRuleRequest & WithRuleDefinition(const char *value)
PutInsightRuleRequest & WithRuleState(const Aws::String &value)
PutInsightRuleRequest & WithRuleName(Aws::String &&value)
PutInsightRuleRequest & WithRuleDefinition(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
PutInsightRuleRequest & WithRuleState(Aws::String &&value)
PutInsightRuleRequest & WithRuleDefinition(const Aws::String &value)
PutInsightRuleRequest & AddTags(Tag &&value)
PutInsightRuleRequest & WithRuleState(const char *value)
PutInsightRuleRequest & WithRuleName(const Aws::String &value)
PutInsightRuleRequest & WithTags(const Aws::Vector< Tag > &value)
PutInsightRuleRequest & WithTags(Aws::Vector< Tag > &&value)
virtual const char * GetServiceRequestName() const override
PutInsightRuleRequest & AddTags(const Tag &value)
PutInsightRuleRequest & WithRuleName(const char *value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
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