AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EntryDescription.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/fms/model/EntryType.h>
9#include <aws/fms/model/NetworkAclEntry.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FMS {
21namespace Model {
22
29 public:
30 AWS_FMS_API EntryDescription() = default;
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 int GetEntryRuleNumber() const { return m_entryRuleNumber; }
69 inline bool EntryRuleNumberHasBeenSet() const { return m_entryRuleNumberHasBeenSet; }
70 inline void SetEntryRuleNumber(int value) {
71 m_entryRuleNumberHasBeenSet = true;
72 m_entryRuleNumber = value;
73 }
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 int 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 EntryDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
EntryDescription & WithEntryRuleNumber(int value)
bool EntryTypeHasBeenSet() const
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
const NetworkAclEntry & GetEntryDetail() const
int GetEntryRuleNumber() const
bool EntryRuleNumberHasBeenSet() const
AWS_FMS_API EntryDescription()=default
EntryType GetEntryType() const
EntryDescription & WithEntryType(EntryType value)
void SetEntryRuleNumber(int value)
void SetEntryType(EntryType value)
bool EntryDetailHasBeenSet() const
AWS_FMS_API EntryDescription(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue