AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
RuleMetadata.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace NetworkFirewall {
20namespace Model {
21
32 public:
33 AWS_NETWORKFIREWALL_API RuleMetadata() = default;
34 AWS_NETWORKFIREWALL_API RuleMetadata(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_NETWORKFIREWALL_API RuleMetadata& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
45 inline bool GetRuleEnabled() const { return m_ruleEnabled; }
46 inline bool RuleEnabledHasBeenSet() const { return m_ruleEnabledHasBeenSet; }
47 inline void SetRuleEnabled(bool value) {
48 m_ruleEnabledHasBeenSet = true;
49 m_ruleEnabled = value;
50 }
51 inline RuleMetadata& WithRuleEnabled(bool value) {
52 SetRuleEnabled(value);
53 return *this;
54 }
56
58
63 inline const Aws::String& GetRuleDescription() const { return m_ruleDescription; }
64 inline bool RuleDescriptionHasBeenSet() const { return m_ruleDescriptionHasBeenSet; }
65 template <typename RuleDescriptionT = Aws::String>
66 void SetRuleDescription(RuleDescriptionT&& value) {
67 m_ruleDescriptionHasBeenSet = true;
68 m_ruleDescription = std::forward<RuleDescriptionT>(value);
69 }
70 template <typename RuleDescriptionT = Aws::String>
71 RuleMetadata& WithRuleDescription(RuleDescriptionT&& value) {
72 SetRuleDescription(std::forward<RuleDescriptionT>(value));
73 return *this;
74 }
76 private:
77 bool m_ruleEnabled{false};
78
79 Aws::String m_ruleDescription;
80 bool m_ruleEnabledHasBeenSet = false;
81 bool m_ruleDescriptionHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace NetworkFirewall
86} // namespace Aws
void SetRuleDescription(RuleDescriptionT &&value)
AWS_NETWORKFIREWALL_API RuleMetadata(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
RuleMetadata & WithRuleDescription(RuleDescriptionT &&value)
AWS_NETWORKFIREWALL_API RuleMetadata()=default
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
RuleMetadata & WithRuleEnabled(bool value)
AWS_NETWORKFIREWALL_API RuleMetadata & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetRuleDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String