AWS SDK for C++  1.9.110
AWS SDK for C++
IpPermission.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GameLift
23 {
24 namespace Model
25 {
26 
39  {
40  public:
45 
46 
50  inline int GetFromPort() const{ return m_fromPort; }
51 
55  inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
56 
60  inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
61 
65  inline IpPermission& WithFromPort(int value) { SetFromPort(value); return *this;}
66 
67 
72  inline int GetToPort() const{ return m_toPort; }
73 
78  inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
79 
84  inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
85 
90  inline IpPermission& WithToPort(int value) { SetToPort(value); return *this;}
91 
92 
98  inline const Aws::String& GetIpRange() const{ return m_ipRange; }
99 
105  inline bool IpRangeHasBeenSet() const { return m_ipRangeHasBeenSet; }
106 
112  inline void SetIpRange(const Aws::String& value) { m_ipRangeHasBeenSet = true; m_ipRange = value; }
113 
119  inline void SetIpRange(Aws::String&& value) { m_ipRangeHasBeenSet = true; m_ipRange = std::move(value); }
120 
126  inline void SetIpRange(const char* value) { m_ipRangeHasBeenSet = true; m_ipRange.assign(value); }
127 
133  inline IpPermission& WithIpRange(const Aws::String& value) { SetIpRange(value); return *this;}
134 
140  inline IpPermission& WithIpRange(Aws::String&& value) { SetIpRange(std::move(value)); return *this;}
141 
147  inline IpPermission& WithIpRange(const char* value) { SetIpRange(value); return *this;}
148 
149 
153  inline const IpProtocol& GetProtocol() const{ return m_protocol; }
154 
158  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
159 
163  inline void SetProtocol(const IpProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
164 
168  inline void SetProtocol(IpProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
169 
173  inline IpPermission& WithProtocol(const IpProtocol& value) { SetProtocol(value); return *this;}
174 
178  inline IpPermission& WithProtocol(IpProtocol&& value) { SetProtocol(std::move(value)); return *this;}
179 
180  private:
181 
182  int m_fromPort;
183  bool m_fromPortHasBeenSet;
184 
185  int m_toPort;
186  bool m_toPortHasBeenSet;
187 
188  Aws::String m_ipRange;
189  bool m_ipRangeHasBeenSet;
190 
191  IpProtocol m_protocol;
192  bool m_protocolHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace GameLift
197 } // namespace Aws
Aws::GameLift::Model::IpPermission::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::IpPermission::SetToPort
void SetToPort(int value)
Definition: IpPermission.h:84
Aws::GameLift::Model::IpPermission
Definition: IpPermission.h:39
Aws::GameLift::Model::IpPermission::SetProtocol
void SetProtocol(IpProtocol &&value)
Definition: IpPermission.h:168
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::IpPermission::IpPermission
IpPermission(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::IpPermission::WithToPort
IpPermission & WithToPort(int value)
Definition: IpPermission.h:90
Aws::GameLift::Model::IpPermission::IpPermission
IpPermission()
Aws::GameLift::Model::IpPermission::SetFromPort
void SetFromPort(int value)
Definition: IpPermission.h:60
GameLift_EXPORTS.h
IpProtocol.h
Aws::GameLift::Model::IpPermission::SetProtocol
void SetProtocol(const IpProtocol &value)
Definition: IpPermission.h:163
Aws::GameLift::Model::IpPermission::GetIpRange
const Aws::String & GetIpRange() const
Definition: IpPermission.h:98
Aws::GameLift::Model::IpPermission::WithFromPort
IpPermission & WithFromPort(int value)
Definition: IpPermission.h:65
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::IpPermission::ToPortHasBeenSet
bool ToPortHasBeenSet() const
Definition: IpPermission.h:78
Aws::GameLift::Model::IpPermission::WithIpRange
IpPermission & WithIpRange(Aws::String &&value)
Definition: IpPermission.h:140
Aws::GameLift::Model::IpPermission::SetIpRange
void SetIpRange(const Aws::String &value)
Definition: IpPermission.h:112
Aws::GameLift::Model::IpPermission::WithProtocol
IpPermission & WithProtocol(IpProtocol &&value)
Definition: IpPermission.h:178
Aws::GameLift::Model::IpPermission::SetIpRange
void SetIpRange(Aws::String &&value)
Definition: IpPermission.h:119
Aws::GameLift::Model::IpProtocol
IpProtocol
Definition: IpProtocol.h:17
Aws::GameLift::Model::IpPermission::GetToPort
int GetToPort() const
Definition: IpPermission.h:72
Aws::GameLift::Model::IpPermission::operator=
IpPermission & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::IpPermission::SetIpRange
void SetIpRange(const char *value)
Definition: IpPermission.h:126
Aws::GameLift::Model::IpPermission::IpRangeHasBeenSet
bool IpRangeHasBeenSet() const
Definition: IpPermission.h:105
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::IpPermission::GetFromPort
int GetFromPort() const
Definition: IpPermission.h:50
Aws::GameLift::Model::IpPermission::WithIpRange
IpPermission & WithIpRange(const Aws::String &value)
Definition: IpPermission.h:133
Aws::GameLift::Model::IpPermission::WithIpRange
IpPermission & WithIpRange(const char *value)
Definition: IpPermission.h:147
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::IpPermission::FromPortHasBeenSet
bool FromPortHasBeenSet() const
Definition: IpPermission.h:55
Aws::GameLift::Model::IpPermission::GetProtocol
const IpProtocol & GetProtocol() const
Definition: IpPermission.h:153
Aws::GameLift::Model::IpPermission::WithProtocol
IpPermission & WithProtocol(const IpProtocol &value)
Definition: IpPermission.h:173
Aws::GameLift::Model::IpPermission::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: IpPermission.h:158