AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
RuleSummary.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 RuleSummary() = default;
34 AWS_NETWORKFIREWALL_API RuleSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_NETWORKFIREWALL_API RuleSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Aws::String& GetSID() const { return m_sID; }
43 inline bool SIDHasBeenSet() const { return m_sIDHasBeenSet; }
44 template <typename SIDT = Aws::String>
45 void SetSID(SIDT&& value) {
46 m_sIDHasBeenSet = true;
47 m_sID = std::forward<SIDT>(value);
48 }
49 template <typename SIDT = Aws::String>
50 RuleSummary& WithSID(SIDT&& value) {
51 SetSID(std::forward<SIDT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetMsg() const { return m_msg; }
61 inline bool MsgHasBeenSet() const { return m_msgHasBeenSet; }
62 template <typename MsgT = Aws::String>
63 void SetMsg(MsgT&& value) {
64 m_msgHasBeenSet = true;
65 m_msg = std::forward<MsgT>(value);
66 }
67 template <typename MsgT = Aws::String>
68 RuleSummary& WithMsg(MsgT&& value) {
69 SetMsg(std::forward<MsgT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetMetadata() const { return m_metadata; }
79 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
80 template <typename MetadataT = Aws::String>
81 void SetMetadata(MetadataT&& value) {
82 m_metadataHasBeenSet = true;
83 m_metadata = std::forward<MetadataT>(value);
84 }
85 template <typename MetadataT = Aws::String>
86 RuleSummary& WithMetadata(MetadataT&& value) {
87 SetMetadata(std::forward<MetadataT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_sID;
93
94 Aws::String m_msg;
95
96 Aws::String m_metadata;
97 bool m_sIDHasBeenSet = false;
98 bool m_msgHasBeenSet = false;
99 bool m_metadataHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace NetworkFirewall
104} // namespace Aws
RuleSummary & WithSID(SIDT &&value)
Definition RuleSummary.h:50
AWS_NETWORKFIREWALL_API RuleSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetSID() const
Definition RuleSummary.h:42
const Aws::String & GetMsg() const
Definition RuleSummary.h:60
AWS_NETWORKFIREWALL_API RuleSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetMetadata() const
Definition RuleSummary.h:78
AWS_NETWORKFIREWALL_API RuleSummary()=default
void SetMetadata(MetadataT &&value)
Definition RuleSummary.h:81
RuleSummary & WithMsg(MsgT &&value)
Definition RuleSummary.h:68
RuleSummary & WithMetadata(MetadataT &&value)
Definition RuleSummary.h:86
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String