AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
CreateTelemetryRuleRequest.h
1
6#pragma once
7#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
8#include <aws/observabilityadmin/ObservabilityAdminRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/observabilityadmin/model/TelemetryRule.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ObservabilityAdmin
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_OBSERVABILITYADMIN_API CreateTelemetryRuleRequest() = 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 "CreateTelemetryRule"; }
33
34 AWS_OBSERVABILITYADMIN_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetRuleName() const { return m_ruleName; }
42 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
43 template<typename RuleNameT = Aws::String>
44 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
45 template<typename RuleNameT = Aws::String>
46 CreateTelemetryRuleRequest& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
48
50
55 inline const TelemetryRule& GetRule() const { return m_rule; }
56 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
57 template<typename RuleT = TelemetryRule>
58 void SetRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule = std::forward<RuleT>(value); }
59 template<typename RuleT = TelemetryRule>
60 CreateTelemetryRuleRequest& WithRule(RuleT&& value) { SetRule(std::forward<RuleT>(value)); return *this;}
62
64
68 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
69 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
70 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
71 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
72 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
73 CreateTelemetryRuleRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
74 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
75 CreateTelemetryRuleRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
76 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
77 }
79 private:
80
81 Aws::String m_ruleName;
82 bool m_ruleNameHasBeenSet = false;
83
84 TelemetryRule m_rule;
85 bool m_ruleHasBeenSet = false;
86
88 bool m_tagsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace ObservabilityAdmin
93} // 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