AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EntryDescription.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/fms/model/NetworkAclEntry.h>
9#include <aws/fms/model/EntryType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FMS
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_FMS_API EntryDescription() = default;
39
40
42
54 inline const NetworkAclEntry& GetEntryDetail() const { return m_entryDetail; }
55 inline bool EntryDetailHasBeenSet() const { return m_entryDetailHasBeenSet; }
56 template<typename EntryDetailT = NetworkAclEntry>
57 void SetEntryDetail(EntryDetailT&& value) { m_entryDetailHasBeenSet = true; m_entryDetail = std::forward<EntryDetailT>(value); }
58 template<typename EntryDetailT = NetworkAclEntry>
59 EntryDescription& WithEntryDetail(EntryDetailT&& value) { SetEntryDetail(std::forward<EntryDetailT>(value)); return *this;}
61
63
68 inline int GetEntryRuleNumber() const { return m_entryRuleNumber; }
69 inline bool EntryRuleNumberHasBeenSet() const { return m_entryRuleNumberHasBeenSet; }
70 inline void SetEntryRuleNumber(int value) { m_entryRuleNumberHasBeenSet = true; m_entryRuleNumber = value; }
71 inline EntryDescription& WithEntryRuleNumber(int value) { SetEntryRuleNumber(value); return *this;}
73
75
80 inline EntryType GetEntryType() const { return m_entryType; }
81 inline bool EntryTypeHasBeenSet() const { return m_entryTypeHasBeenSet; }
82 inline void SetEntryType(EntryType value) { m_entryTypeHasBeenSet = true; m_entryType = value; }
83 inline EntryDescription& WithEntryType(EntryType value) { SetEntryType(value); return *this;}
85 private:
86
87 NetworkAclEntry m_entryDetail;
88 bool m_entryDetailHasBeenSet = false;
89
90 int m_entryRuleNumber{0};
91 bool m_entryRuleNumberHasBeenSet = false;
92
93 EntryType m_entryType{EntryType::NOT_SET};
94 bool m_entryTypeHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace FMS
99} // 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