AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ManagedRuleDescription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/monitoring/CloudWatch_EXPORTS.h>
10#include <aws/monitoring/model/ManagedRuleState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CloudWatch {
21namespace Model {
22
30 public:
31 AWS_CLOUDWATCH_API ManagedRuleDescription() = default;
32 AWS_CLOUDWATCH_API ManagedRuleDescription(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCH_API ManagedRuleDescription& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
41 inline const Aws::String& GetTemplateName() const { return m_templateName; }
42 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
43 template <typename TemplateNameT = Aws::String>
44 void SetTemplateName(TemplateNameT&& value) {
45 m_templateNameHasBeenSet = true;
46 m_templateName = std::forward<TemplateNameT>(value);
47 }
48 template <typename TemplateNameT = Aws::String>
49 ManagedRuleDescription& WithTemplateName(TemplateNameT&& value) {
50 SetTemplateName(std::forward<TemplateNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetResourceARN() const { return m_resourceARN; }
61 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
62 template <typename ResourceARNT = Aws::String>
63 void SetResourceARN(ResourceARNT&& value) {
64 m_resourceARNHasBeenSet = true;
65 m_resourceARN = std::forward<ResourceARNT>(value);
66 }
67 template <typename ResourceARNT = Aws::String>
68 ManagedRuleDescription& WithResourceARN(ResourceARNT&& value) {
69 SetResourceARN(std::forward<ResourceARNT>(value));
70 return *this;
71 }
73
75
80 inline const ManagedRuleState& GetRuleState() const { return m_ruleState; }
81 inline bool RuleStateHasBeenSet() const { return m_ruleStateHasBeenSet; }
82 template <typename RuleStateT = ManagedRuleState>
83 void SetRuleState(RuleStateT&& value) {
84 m_ruleStateHasBeenSet = true;
85 m_ruleState = std::forward<RuleStateT>(value);
86 }
87 template <typename RuleStateT = ManagedRuleState>
89 SetRuleState(std::forward<RuleStateT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_templateName;
95
96 Aws::String m_resourceARN;
97
98 ManagedRuleState m_ruleState;
99 bool m_templateNameHasBeenSet = false;
100 bool m_resourceARNHasBeenSet = false;
101 bool m_ruleStateHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CloudWatch
106} // namespace Aws
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCH_API ManagedRuleDescription()=default
ManagedRuleDescription & WithTemplateName(TemplateNameT &&value)
AWS_CLOUDWATCH_API ManagedRuleDescription(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ManagedRuleDescription & WithRuleState(RuleStateT &&value)
AWS_CLOUDWATCH_API ManagedRuleDescription & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ManagedRuleDescription & WithResourceARN(ResourceARNT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String