AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
39
40
42
45 inline const Aws::String& GetIPV4Range() const{ return m_iPV4Range; }
46 inline bool IPV4RangeHasBeenSet() const { return m_iPV4RangeHasBeenSet; }
47 inline void SetIPV4Range(const Aws::String& value) { m_iPV4RangeHasBeenSet = true; m_iPV4Range = value; }
48 inline void SetIPV4Range(Aws::String&& value) { m_iPV4RangeHasBeenSet = true; m_iPV4Range = std::move(value); }
49 inline void SetIPV4Range(const char* value) { m_iPV4RangeHasBeenSet = true; m_iPV4Range.assign(value); }
50 inline SecurityGroupRuleDescription& WithIPV4Range(const Aws::String& value) { SetIPV4Range(value); return *this;}
51 inline SecurityGroupRuleDescription& WithIPV4Range(Aws::String&& value) { SetIPV4Range(std::move(value)); return *this;}
52 inline SecurityGroupRuleDescription& WithIPV4Range(const char* value) { SetIPV4Range(value); return *this;}
54
56
59 inline const Aws::String& GetIPV6Range() const{ return m_iPV6Range; }
60 inline bool IPV6RangeHasBeenSet() const { return m_iPV6RangeHasBeenSet; }
61 inline void SetIPV6Range(const Aws::String& value) { m_iPV6RangeHasBeenSet = true; m_iPV6Range = value; }
62 inline void SetIPV6Range(Aws::String&& value) { m_iPV6RangeHasBeenSet = true; m_iPV6Range = std::move(value); }
63 inline void SetIPV6Range(const char* value) { m_iPV6RangeHasBeenSet = true; m_iPV6Range.assign(value); }
64 inline SecurityGroupRuleDescription& WithIPV6Range(const Aws::String& value) { SetIPV6Range(value); return *this;}
65 inline SecurityGroupRuleDescription& WithIPV6Range(Aws::String&& value) { SetIPV6Range(std::move(value)); return *this;}
66 inline SecurityGroupRuleDescription& WithIPV6Range(const char* value) { SetIPV6Range(value); return *this;}
68
70
73 inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
74 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
75 inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
76 inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
77 inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
78 inline SecurityGroupRuleDescription& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
79 inline SecurityGroupRuleDescription& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
80 inline SecurityGroupRuleDescription& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
82
84
88 inline const Aws::String& GetProtocol() const{ return m_protocol; }
89 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
90 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
91 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
92 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
93 inline SecurityGroupRuleDescription& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
94 inline SecurityGroupRuleDescription& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
95 inline SecurityGroupRuleDescription& WithProtocol(const char* value) { SetProtocol(value); return *this;}
97
99
103 inline long long GetFromPort() const{ return m_fromPort; }
104 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
105 inline void SetFromPort(long long value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
106 inline SecurityGroupRuleDescription& WithFromPort(long long value) { SetFromPort(value); return *this;}
108
110
114 inline long long GetToPort() const{ return m_toPort; }
115 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
116 inline void SetToPort(long long value) { m_toPortHasBeenSet = true; m_toPort = value; }
117 inline SecurityGroupRuleDescription& WithToPort(long long value) { SetToPort(value); return *this;}
119 private:
120
121 Aws::String m_iPV4Range;
122 bool m_iPV4RangeHasBeenSet = false;
123
124 Aws::String m_iPV6Range;
125 bool m_iPV6RangeHasBeenSet = false;
126
127 Aws::String m_prefixListId;
128 bool m_prefixListIdHasBeenSet = false;
129
130 Aws::String m_protocol;
131 bool m_protocolHasBeenSet = false;
132
133 long long m_fromPort;
134 bool m_fromPortHasBeenSet = false;
135
136 long long m_toPort;
137 bool m_toPortHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace FMS
142} // namespace Aws
SecurityGroupRuleDescription & WithPrefixListId(Aws::String &&value)
SecurityGroupRuleDescription & WithIPV6Range(const Aws::String &value)
AWS_FMS_API SecurityGroupRuleDescription(Aws::Utils::Json::JsonView jsonValue)
SecurityGroupRuleDescription & WithFromPort(long long value)
SecurityGroupRuleDescription & WithIPV4Range(const Aws::String &value)
SecurityGroupRuleDescription & WithProtocol(Aws::String &&value)
SecurityGroupRuleDescription & WithProtocol(const char *value)
SecurityGroupRuleDescription & WithIPV4Range(const char *value)
SecurityGroupRuleDescription & WithToPort(long long value)
SecurityGroupRuleDescription & WithIPV6Range(Aws::String &&value)
SecurityGroupRuleDescription & WithProtocol(const Aws::String &value)
SecurityGroupRuleDescription & WithPrefixListId(const Aws::String &value)
AWS_FMS_API SecurityGroupRuleDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
SecurityGroupRuleDescription & WithIPV4Range(Aws::String &&value)
SecurityGroupRuleDescription & WithPrefixListId(const char *value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
SecurityGroupRuleDescription & WithIPV6Range(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue