AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
UpdateTelemetryRuleRequest.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 <utility>
12
13namespace Aws
14{
15namespace ObservabilityAdmin
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_OBSERVABILITYADMIN_API UpdateTelemetryRuleRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateTelemetryRule"; }
32
33 AWS_OBSERVABILITYADMIN_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetRuleIdentifier() const { return m_ruleIdentifier; }
41 inline bool RuleIdentifierHasBeenSet() const { return m_ruleIdentifierHasBeenSet; }
42 template<typename RuleIdentifierT = Aws::String>
43 void SetRuleIdentifier(RuleIdentifierT&& value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier = std::forward<RuleIdentifierT>(value); }
44 template<typename RuleIdentifierT = Aws::String>
45 UpdateTelemetryRuleRequest& WithRuleIdentifier(RuleIdentifierT&& value) { SetRuleIdentifier(std::forward<RuleIdentifierT>(value)); return *this;}
47
49
52 inline const TelemetryRule& GetRule() const { return m_rule; }
53 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
54 template<typename RuleT = TelemetryRule>
55 void SetRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule = std::forward<RuleT>(value); }
56 template<typename RuleT = TelemetryRule>
57 UpdateTelemetryRuleRequest& WithRule(RuleT&& value) { SetRule(std::forward<RuleT>(value)); return *this;}
59 private:
60
61 Aws::String m_ruleIdentifier;
62 bool m_ruleIdentifierHasBeenSet = false;
63
64 TelemetryRule m_rule;
65 bool m_ruleHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace ObservabilityAdmin
70} // 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