AWS SDK for C++

AWS SDK for C++ Version 1.11.918

Loading...
Searching...
No Matches
EntryDescription.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/fms/FMS_EXPORTS.h>
9#include <aws/fms/model/EntryType.h>
10#include <aws/fms/model/NetworkAclEntry.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace FMS {
21namespace Model {
22
29 public:
30 AWS_FMS_API EntryDescription() = default;
31 AWS_FMS_API EntryDescription(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_FMS_API EntryDescription& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_FMS_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
48 inline const NetworkAclEntry& GetEntryDetail() const { return m_entryDetail; }
49 inline bool EntryDetailHasBeenSet() const { return m_entryDetailHasBeenSet; }
50 template <typename EntryDetailT = NetworkAclEntry>
51 void SetEntryDetail(EntryDetailT&& value) {
52 m_entryDetailHasBeenSet = true;
53 m_entryDetail = std::forward<EntryDetailT>(value);
54 }
55 template <typename EntryDetailT = NetworkAclEntry>
56 EntryDescription& WithEntryDetail(EntryDetailT&& value) {
57 SetEntryDetail(std::forward<EntryDetailT>(value));
58 return *this;
59 }
61
63
68 inline int64_t GetEntryRuleNumber() const { return m_entryRuleNumber; }
69 inline bool EntryRuleNumberHasBeenSet() const { return m_entryRuleNumberHasBeenSet; }
70 inline void SetEntryRuleNumber(int64_t value) {
71 m_entryRuleNumberHasBeenSet = true;
72 m_entryRuleNumber = value;
73 }
74 inline EntryDescription& WithEntryRuleNumber(int64_t value) {
75 SetEntryRuleNumber(value);
76 return *this;
77 }
79
81
86 inline EntryType GetEntryType() const { return m_entryType; }
87 inline bool EntryTypeHasBeenSet() const { return m_entryTypeHasBeenSet; }
88 inline void SetEntryType(EntryType value) {
89 m_entryTypeHasBeenSet = true;
90 m_entryType = value;
91 }
93 SetEntryType(value);
94 return *this;
95 }
97 private:
98 NetworkAclEntry m_entryDetail;
99
100 int64_t m_entryRuleNumber{0};
101
102 EntryType m_entryType{EntryType::NOT_SET};
103 bool m_entryDetailHasBeenSet = false;
104 bool m_entryRuleNumberHasBeenSet = false;
105 bool m_entryTypeHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace FMS
110} // namespace Aws
void SetEntryDetail(EntryDetailT &&value)
EntryDescription & WithEntryDetail(EntryDetailT &&value)
AWS_FMS_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
int64_t GetEntryRuleNumber() const
bool EntryTypeHasBeenSet() const
AWS_FMS_API EntryDescription & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const NetworkAclEntry & GetEntryDetail() const
bool EntryRuleNumberHasBeenSet() const
AWS_FMS_API EntryDescription()=default
AWS_FMS_API EntryDescription(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetEntryRuleNumber(int64_t value)
EntryType GetEntryType() const
EntryDescription & WithEntryRuleNumber(int64_t value)
EntryDescription & WithEntryType(EntryType value)
void SetEntryType(EntryType value)
bool EntryDetailHasBeenSet() const