AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NetworkACLEntry.h
1
6#pragma once
7#include <aws/finspace/Finspace_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/finspace/model/RuleAction.h>
10#include <aws/finspace/model/PortRange.h>
11#include <aws/finspace/model/IcmpTypeCode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace finspace
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_FINSPACE_API NetworkACLEntry();
43 AWS_FINSPACE_API NetworkACLEntry(Aws::Utils::Json::JsonView jsonValue);
45 AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline int GetRuleNumber() const{ return m_ruleNumber; }
54 inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
55 inline void SetRuleNumber(int value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
56 inline NetworkACLEntry& WithRuleNumber(int value) { SetRuleNumber(value); return *this;}
58
60
63 inline const Aws::String& GetProtocol() const{ return m_protocol; }
64 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
65 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
66 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
67 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
68 inline NetworkACLEntry& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
69 inline NetworkACLEntry& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
70 inline NetworkACLEntry& WithProtocol(const char* value) { SetProtocol(value); return *this;}
72
74
77 inline const RuleAction& GetRuleAction() const{ return m_ruleAction; }
78 inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; }
79 inline void SetRuleAction(const RuleAction& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
80 inline void SetRuleAction(RuleAction&& value) { m_ruleActionHasBeenSet = true; m_ruleAction = std::move(value); }
81 inline NetworkACLEntry& WithRuleAction(const RuleAction& value) { SetRuleAction(value); return *this;}
82 inline NetworkACLEntry& WithRuleAction(RuleAction&& value) { SetRuleAction(std::move(value)); return *this;}
84
86
89 inline const PortRange& GetPortRange() const{ return m_portRange; }
90 inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
91 inline void SetPortRange(const PortRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
92 inline void SetPortRange(PortRange&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); }
93 inline NetworkACLEntry& WithPortRange(const PortRange& value) { SetPortRange(value); return *this;}
94 inline NetworkACLEntry& WithPortRange(PortRange&& value) { SetPortRange(std::move(value)); return *this;}
96
98
101 inline const IcmpTypeCode& GetIcmpTypeCode() const{ return m_icmpTypeCode; }
102 inline bool IcmpTypeCodeHasBeenSet() const { return m_icmpTypeCodeHasBeenSet; }
103 inline void SetIcmpTypeCode(const IcmpTypeCode& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = value; }
104 inline void SetIcmpTypeCode(IcmpTypeCode&& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = std::move(value); }
105 inline NetworkACLEntry& WithIcmpTypeCode(const IcmpTypeCode& value) { SetIcmpTypeCode(value); return *this;}
106 inline NetworkACLEntry& WithIcmpTypeCode(IcmpTypeCode&& value) { SetIcmpTypeCode(std::move(value)); return *this;}
108
110
116 inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
117 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
118 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
119 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
120 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
121 inline NetworkACLEntry& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
122 inline NetworkACLEntry& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
123 inline NetworkACLEntry& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
125 private:
126
127 int m_ruleNumber;
128 bool m_ruleNumberHasBeenSet = false;
129
130 Aws::String m_protocol;
131 bool m_protocolHasBeenSet = false;
132
133 RuleAction m_ruleAction;
134 bool m_ruleActionHasBeenSet = false;
135
136 PortRange m_portRange;
137 bool m_portRangeHasBeenSet = false;
138
139 IcmpTypeCode m_icmpTypeCode;
140 bool m_icmpTypeCodeHasBeenSet = false;
141
142 Aws::String m_cidrBlock;
143 bool m_cidrBlockHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace finspace
148} // namespace Aws
bool CidrBlockHasBeenSet() const
void SetRuleAction(RuleAction &&value)
void SetCidrBlock(Aws::String &&value)
void SetRuleNumber(int value)
NetworkACLEntry & WithIcmpTypeCode(IcmpTypeCode &&value)
NetworkACLEntry & WithPortRange(PortRange &&value)
void SetPortRange(const PortRange &value)
void SetCidrBlock(const Aws::String &value)
AWS_FINSPACE_API NetworkACLEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProtocol(const Aws::String &value)
NetworkACLEntry & WithPortRange(const PortRange &value)
void SetIcmpTypeCode(IcmpTypeCode &&value)
bool RuleActionHasBeenSet() const
bool ProtocolHasBeenSet() const
NetworkACLEntry & WithCidrBlock(const char *value)
int GetRuleNumber() const
NetworkACLEntry & WithRuleNumber(int value)
void SetCidrBlock(const char *value)
const Aws::String & GetCidrBlock() const
NetworkACLEntry & WithCidrBlock(const Aws::String &value)
bool PortRangeHasBeenSet() const
NetworkACLEntry & WithIcmpTypeCode(const IcmpTypeCode &value)
NetworkACLEntry & WithProtocol(Aws::String &&value)
AWS_FINSPACE_API NetworkACLEntry(Aws::Utils::Json::JsonView jsonValue)
NetworkACLEntry & WithCidrBlock(Aws::String &&value)
bool IcmpTypeCodeHasBeenSet() const
AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkACLEntry & WithProtocol(const char *value)
NetworkACLEntry & WithRuleAction(RuleAction &&value)
AWS_FINSPACE_API NetworkACLEntry()
NetworkACLEntry & WithProtocol(const Aws::String &value)
bool RuleNumberHasBeenSet() const
const IcmpTypeCode & GetIcmpTypeCode() const
const RuleAction & GetRuleAction() const
void SetPortRange(PortRange &&value)
void SetProtocol(Aws::String &&value)
void SetRuleAction(const RuleAction &value)
const Aws::String & GetProtocol() const
NetworkACLEntry & WithRuleAction(const RuleAction &value)
void SetProtocol(const char *value)
void SetIcmpTypeCode(const IcmpTypeCode &value)
const PortRange & GetPortRange() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue