AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
CreateTelemetryRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/observabilityadmin/ObservabilityAdminRequest.h>
10#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
11#include <aws/observabilityadmin/model/TelemetryRule.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ObservabilityAdmin {
17namespace Model {
18
22 public:
23 AWS_OBSERVABILITYADMIN_API CreateTelemetryRuleRequest() = 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 "CreateTelemetryRule"; }
30
31 AWS_OBSERVABILITYADMIN_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetRuleName() const { return m_ruleName; }
38 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
39 template <typename RuleNameT = Aws::String>
40 void SetRuleName(RuleNameT&& value) {
41 m_ruleNameHasBeenSet = true;
42 m_ruleName = std::forward<RuleNameT>(value);
43 }
44 template <typename RuleNameT = Aws::String>
46 SetRuleName(std::forward<RuleNameT>(value));
47 return *this;
48 }
50
52
57 inline const TelemetryRule& GetRule() const { return m_rule; }
58 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
59 template <typename RuleT = TelemetryRule>
60 void SetRule(RuleT&& value) {
61 m_ruleHasBeenSet = true;
62 m_rule = std::forward<RuleT>(value);
63 }
64 template <typename RuleT = TelemetryRule>
66 SetRule(std::forward<RuleT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
79 void SetTags(TagsT&& value) {
80 m_tagsHasBeenSet = true;
81 m_tags = std::forward<TagsT>(value);
82 }
83 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
85 SetTags(std::forward<TagsT>(value));
86 return *this;
87 }
88 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
89 CreateTelemetryRuleRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
90 m_tagsHasBeenSet = true;
91 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_ruleName;
97
98 TelemetryRule m_rule;
99
101 bool m_ruleNameHasBeenSet = false;
102 bool m_ruleHasBeenSet = false;
103 bool m_tagsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace ObservabilityAdmin
108} // namespace Aws
AWS_OBSERVABILITYADMIN_API CreateTelemetryRuleRequest()=default
CreateTelemetryRuleRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateTelemetryRuleRequest & WithRuleName(RuleNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_OBSERVABILITYADMIN_API Aws::String SerializePayload() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String