AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ManagedRuleState.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudWatch {
20namespace Model {
21
29 public:
30 AWS_CLOUDWATCH_API ManagedRuleState() = default;
31 AWS_CLOUDWATCH_API ManagedRuleState(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CLOUDWATCH_API ManagedRuleState& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
40 inline const Aws::String& GetRuleName() const { return m_ruleName; }
41 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
42 template <typename RuleNameT = Aws::String>
43 void SetRuleName(RuleNameT&& value) {
44 m_ruleNameHasBeenSet = true;
45 m_ruleName = std::forward<RuleNameT>(value);
46 }
47 template <typename RuleNameT = Aws::String>
48 ManagedRuleState& WithRuleName(RuleNameT&& value) {
49 SetRuleName(std::forward<RuleNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetState() const { return m_state; }
59 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
60 template <typename StateT = Aws::String>
61 void SetState(StateT&& value) {
62 m_stateHasBeenSet = true;
63 m_state = std::forward<StateT>(value);
64 }
65 template <typename StateT = Aws::String>
66 ManagedRuleState& WithState(StateT&& value) {
67 SetState(std::forward<StateT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_ruleName;
73
74 Aws::String m_state;
75 bool m_ruleNameHasBeenSet = false;
76 bool m_stateHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CloudWatch
81} // namespace Aws
AWS_CLOUDWATCH_API ManagedRuleState(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetRuleName() const
AWS_CLOUDWATCH_API ManagedRuleState()=default
ManagedRuleState & WithRuleName(RuleNameT &&value)
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCH_API ManagedRuleState & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ManagedRuleState & WithState(StateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String