AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SecurityGroupRuleDescription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fms/FMS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace FMS {
20namespace Model {
21
29 public:
30 AWS_FMS_API SecurityGroupRuleDescription() = default;
34
36
39 inline const Aws::String& GetIPV4Range() const { return m_iPV4Range; }
40 inline bool IPV4RangeHasBeenSet() const { return m_iPV4RangeHasBeenSet; }
41 template <typename IPV4RangeT = Aws::String>
42 void SetIPV4Range(IPV4RangeT&& value) {
43 m_iPV4RangeHasBeenSet = true;
44 m_iPV4Range = std::forward<IPV4RangeT>(value);
45 }
46 template <typename IPV4RangeT = Aws::String>
48 SetIPV4Range(std::forward<IPV4RangeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetIPV6Range() const { return m_iPV6Range; }
58 inline bool IPV6RangeHasBeenSet() const { return m_iPV6RangeHasBeenSet; }
59 template <typename IPV6RangeT = Aws::String>
60 void SetIPV6Range(IPV6RangeT&& value) {
61 m_iPV6RangeHasBeenSet = true;
62 m_iPV6Range = std::forward<IPV6RangeT>(value);
63 }
64 template <typename IPV6RangeT = Aws::String>
66 SetIPV6Range(std::forward<IPV6RangeT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetPrefixListId() const { return m_prefixListId; }
76 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
77 template <typename PrefixListIdT = Aws::String>
78 void SetPrefixListId(PrefixListIdT&& value) {
79 m_prefixListIdHasBeenSet = true;
80 m_prefixListId = std::forward<PrefixListIdT>(value);
81 }
82 template <typename PrefixListIdT = Aws::String>
84 SetPrefixListId(std::forward<PrefixListIdT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetProtocol() const { return m_protocol; }
95 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
96 template <typename ProtocolT = Aws::String>
97 void SetProtocol(ProtocolT&& value) {
98 m_protocolHasBeenSet = true;
99 m_protocol = std::forward<ProtocolT>(value);
100 }
101 template <typename ProtocolT = Aws::String>
103 SetProtocol(std::forward<ProtocolT>(value));
104 return *this;
105 }
107
109
113 inline long long GetFromPort() const { return m_fromPort; }
114 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
115 inline void SetFromPort(long long value) {
116 m_fromPortHasBeenSet = true;
117 m_fromPort = value;
118 }
120 SetFromPort(value);
121 return *this;
122 }
124
126
130 inline long long GetToPort() const { return m_toPort; }
131 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
132 inline void SetToPort(long long value) {
133 m_toPortHasBeenSet = true;
134 m_toPort = value;
135 }
136 inline SecurityGroupRuleDescription& WithToPort(long long value) {
137 SetToPort(value);
138 return *this;
139 }
141 private:
142 Aws::String m_iPV4Range;
143
144 Aws::String m_iPV6Range;
145
146 Aws::String m_prefixListId;
147
148 Aws::String m_protocol;
149
150 long long m_fromPort{0};
151
152 long long m_toPort{0};
153 bool m_iPV4RangeHasBeenSet = false;
154 bool m_iPV6RangeHasBeenSet = false;
155 bool m_prefixListIdHasBeenSet = false;
156 bool m_protocolHasBeenSet = false;
157 bool m_fromPortHasBeenSet = false;
158 bool m_toPortHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace FMS
163} // namespace Aws
SecurityGroupRuleDescription & WithProtocol(ProtocolT &&value)
SecurityGroupRuleDescription & WithIPV6Range(IPV6RangeT &&value)
SecurityGroupRuleDescription & WithIPV4Range(IPV4RangeT &&value)
AWS_FMS_API SecurityGroupRuleDescription(Aws::Utils::Json::JsonView jsonValue)
SecurityGroupRuleDescription & WithFromPort(long long value)
AWS_FMS_API SecurityGroupRuleDescription()=default
SecurityGroupRuleDescription & WithToPort(long long value)
SecurityGroupRuleDescription & WithPrefixListId(PrefixListIdT &&value)
AWS_FMS_API SecurityGroupRuleDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue