AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
UpdateTelemetryRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/observabilityadmin/ObservabilityAdminRequest.h>
9#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
10#include <aws/observabilityadmin/model/TelemetryRule.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ObservabilityAdmin {
16namespace Model {
17
21 public:
22 AWS_OBSERVABILITYADMIN_API UpdateTelemetryRuleRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateTelemetryRule"; }
29
30 AWS_OBSERVABILITYADMIN_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetRuleIdentifier() const { return m_ruleIdentifier; }
37 inline bool RuleIdentifierHasBeenSet() const { return m_ruleIdentifierHasBeenSet; }
38 template <typename RuleIdentifierT = Aws::String>
39 void SetRuleIdentifier(RuleIdentifierT&& value) {
40 m_ruleIdentifierHasBeenSet = true;
41 m_ruleIdentifier = std::forward<RuleIdentifierT>(value);
42 }
43 template <typename RuleIdentifierT = Aws::String>
45 SetRuleIdentifier(std::forward<RuleIdentifierT>(value));
46 return *this;
47 }
49
51
54 inline const TelemetryRule& GetRule() const { return m_rule; }
55 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
56 template <typename RuleT = TelemetryRule>
57 void SetRule(RuleT&& value) {
58 m_ruleHasBeenSet = true;
59 m_rule = std::forward<RuleT>(value);
60 }
61 template <typename RuleT = TelemetryRule>
63 SetRule(std::forward<RuleT>(value));
64 return *this;
65 }
67 private:
68 Aws::String m_ruleIdentifier;
69
70 TelemetryRule m_rule;
71 bool m_ruleIdentifierHasBeenSet = false;
72 bool m_ruleHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace ObservabilityAdmin
77} // namespace Aws
AWS_OBSERVABILITYADMIN_API Aws::String SerializePayload() const override
AWS_OBSERVABILITYADMIN_API UpdateTelemetryRuleRequest()=default
UpdateTelemetryRuleRequest & WithRuleIdentifier(RuleIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String