AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SecurityGroupRuleDescription.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace FMS
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_FMS_API SecurityGroupRuleDescription() = default;
39
40
42
45 inline const Aws::String& GetIPV4Range() const { return m_iPV4Range; }
46 inline bool IPV4RangeHasBeenSet() const { return m_iPV4RangeHasBeenSet; }
47 template<typename IPV4RangeT = Aws::String>
48 void SetIPV4Range(IPV4RangeT&& value) { m_iPV4RangeHasBeenSet = true; m_iPV4Range = std::forward<IPV4RangeT>(value); }
49 template<typename IPV4RangeT = Aws::String>
50 SecurityGroupRuleDescription& WithIPV4Range(IPV4RangeT&& value) { SetIPV4Range(std::forward<IPV4RangeT>(value)); return *this;}
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) { m_iPV6RangeHasBeenSet = true; m_iPV6Range = std::forward<IPV6RangeT>(value); }
61 template<typename IPV6RangeT = Aws::String>
62 SecurityGroupRuleDescription& WithIPV6Range(IPV6RangeT&& value) { SetIPV6Range(std::forward<IPV6RangeT>(value)); return *this;}
64
66
69 inline const Aws::String& GetPrefixListId() const { return m_prefixListId; }
70 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
71 template<typename PrefixListIdT = Aws::String>
72 void SetPrefixListId(PrefixListIdT&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::forward<PrefixListIdT>(value); }
73 template<typename PrefixListIdT = Aws::String>
74 SecurityGroupRuleDescription& WithPrefixListId(PrefixListIdT&& value) { SetPrefixListId(std::forward<PrefixListIdT>(value)); return *this;}
76
78
82 inline const Aws::String& GetProtocol() const { return m_protocol; }
83 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
84 template<typename ProtocolT = Aws::String>
85 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet = true; m_protocol = std::forward<ProtocolT>(value); }
86 template<typename ProtocolT = Aws::String>
87 SecurityGroupRuleDescription& WithProtocol(ProtocolT&& value) { SetProtocol(std::forward<ProtocolT>(value)); return *this;}
89
91
95 inline long long GetFromPort() const { return m_fromPort; }
96 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
97 inline void SetFromPort(long long value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
98 inline SecurityGroupRuleDescription& WithFromPort(long long value) { SetFromPort(value); return *this;}
100
102
106 inline long long GetToPort() const { return m_toPort; }
107 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
108 inline void SetToPort(long long value) { m_toPortHasBeenSet = true; m_toPort = value; }
109 inline SecurityGroupRuleDescription& WithToPort(long long value) { SetToPort(value); return *this;}
111 private:
112
113 Aws::String m_iPV4Range;
114 bool m_iPV4RangeHasBeenSet = false;
115
116 Aws::String m_iPV6Range;
117 bool m_iPV6RangeHasBeenSet = false;
118
119 Aws::String m_prefixListId;
120 bool m_prefixListIdHasBeenSet = false;
121
122 Aws::String m_protocol;
123 bool m_protocolHasBeenSet = false;
124
125 long long m_fromPort{0};
126 bool m_fromPortHasBeenSet = false;
127
128 long long m_toPort{0};
129 bool m_toPortHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace FMS
134} // 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