AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IpPermission.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/model/IpProtocol.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GameLift
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_GAMELIFT_API IpPermission();
42 AWS_GAMELIFT_API IpPermission(Aws::Utils::Json::JsonView jsonValue);
44 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
54 inline int GetFromPort() const{ return m_fromPort; }
55 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
56 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
57 inline IpPermission& WithFromPort(int value) { SetFromPort(value); return *this;}
59
61
68 inline int GetToPort() const{ return m_toPort; }
69 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
70 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
71 inline IpPermission& WithToPort(int value) { SetToPort(value); return *this;}
73
75
80 inline const Aws::String& GetIpRange() const{ return m_ipRange; }
81 inline bool IpRangeHasBeenSet() const { return m_ipRangeHasBeenSet; }
82 inline void SetIpRange(const Aws::String& value) { m_ipRangeHasBeenSet = true; m_ipRange = value; }
83 inline void SetIpRange(Aws::String&& value) { m_ipRangeHasBeenSet = true; m_ipRange = std::move(value); }
84 inline void SetIpRange(const char* value) { m_ipRangeHasBeenSet = true; m_ipRange.assign(value); }
85 inline IpPermission& WithIpRange(const Aws::String& value) { SetIpRange(value); return *this;}
86 inline IpPermission& WithIpRange(Aws::String&& value) { SetIpRange(std::move(value)); return *this;}
87 inline IpPermission& WithIpRange(const char* value) { SetIpRange(value); return *this;}
89
91
94 inline const IpProtocol& GetProtocol() const{ return m_protocol; }
95 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
96 inline void SetProtocol(const IpProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
97 inline void SetProtocol(IpProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
98 inline IpPermission& WithProtocol(const IpProtocol& value) { SetProtocol(value); return *this;}
99 inline IpPermission& WithProtocol(IpProtocol&& value) { SetProtocol(std::move(value)); return *this;}
101 private:
102
103 int m_fromPort;
104 bool m_fromPortHasBeenSet = false;
105
106 int m_toPort;
107 bool m_toPortHasBeenSet = false;
108
109 Aws::String m_ipRange;
110 bool m_ipRangeHasBeenSet = false;
111
112 IpProtocol m_protocol;
113 bool m_protocolHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace GameLift
118} // namespace Aws
IpPermission & WithProtocol(const IpProtocol &value)
void SetProtocol(const IpProtocol &value)
void SetIpRange(const Aws::String &value)
IpPermission & WithIpRange(Aws::String &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
const IpProtocol & GetProtocol() const
IpPermission & WithIpRange(const Aws::String &value)
IpPermission & WithProtocol(IpProtocol &&value)
AWS_GAMELIFT_API IpPermission(Aws::Utils::Json::JsonView jsonValue)
void SetProtocol(IpProtocol &&value)
AWS_GAMELIFT_API IpPermission & operator=(Aws::Utils::Json::JsonView jsonValue)
IpPermission & WithIpRange(const char *value)
const Aws::String & GetIpRange() const
IpPermission & WithToPort(int value)
void SetIpRange(Aws::String &&value)
void SetIpRange(const char *value)
IpPermission & WithFromPort(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue