AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
VpcPeeringConnection.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/VpcPeeringConnectionStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
34 public:
35 AWS_GAMELIFT_API VpcPeeringConnection() = default;
38 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetFleetId() const { return m_fleetId; }
46 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
47 template <typename FleetIdT = Aws::String>
48 void SetFleetId(FleetIdT&& value) {
49 m_fleetIdHasBeenSet = true;
50 m_fleetId = std::forward<FleetIdT>(value);
51 }
52 template <typename FleetIdT = Aws::String>
53 VpcPeeringConnection& WithFleetId(FleetIdT&& value) {
54 SetFleetId(std::forward<FleetIdT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetFleetArn() const { return m_fleetArn; }
66 inline bool FleetArnHasBeenSet() const { return m_fleetArnHasBeenSet; }
67 template <typename FleetArnT = Aws::String>
68 void SetFleetArn(FleetArnT&& value) {
69 m_fleetArnHasBeenSet = true;
70 m_fleetArn = std::forward<FleetArnT>(value);
71 }
72 template <typename FleetArnT = Aws::String>
73 VpcPeeringConnection& WithFleetArn(FleetArnT&& value) {
74 SetFleetArn(std::forward<FleetArnT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::String& GetIpV4CidrBlock() const { return m_ipV4CidrBlock; }
86 inline bool IpV4CidrBlockHasBeenSet() const { return m_ipV4CidrBlockHasBeenSet; }
87 template <typename IpV4CidrBlockT = Aws::String>
88 void SetIpV4CidrBlock(IpV4CidrBlockT&& value) {
89 m_ipV4CidrBlockHasBeenSet = true;
90 m_ipV4CidrBlock = std::forward<IpV4CidrBlockT>(value);
91 }
92 template <typename IpV4CidrBlockT = Aws::String>
93 VpcPeeringConnection& WithIpV4CidrBlock(IpV4CidrBlockT&& value) {
94 SetIpV4CidrBlock(std::forward<IpV4CidrBlockT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::String& GetVpcPeeringConnectionId() const { return m_vpcPeeringConnectionId; }
106 inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
107 template <typename VpcPeeringConnectionIdT = Aws::String>
108 void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) {
109 m_vpcPeeringConnectionIdHasBeenSet = true;
110 m_vpcPeeringConnectionId = std::forward<VpcPeeringConnectionIdT>(value);
111 }
112 template <typename VpcPeeringConnectionIdT = Aws::String>
113 VpcPeeringConnection& WithVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) {
114 SetVpcPeeringConnectionId(std::forward<VpcPeeringConnectionIdT>(value));
115 return *this;
116 }
118
120
124 inline const VpcPeeringConnectionStatus& GetStatus() const { return m_status; }
125 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
126 template <typename StatusT = VpcPeeringConnectionStatus>
127 void SetStatus(StatusT&& value) {
128 m_statusHasBeenSet = true;
129 m_status = std::forward<StatusT>(value);
130 }
131 template <typename StatusT = VpcPeeringConnectionStatus>
133 SetStatus(std::forward<StatusT>(value));
134 return *this;
135 }
137
139
148 inline const Aws::String& GetPeerVpcId() const { return m_peerVpcId; }
149 inline bool PeerVpcIdHasBeenSet() const { return m_peerVpcIdHasBeenSet; }
150 template <typename PeerVpcIdT = Aws::String>
151 void SetPeerVpcId(PeerVpcIdT&& value) {
152 m_peerVpcIdHasBeenSet = true;
153 m_peerVpcId = std::forward<PeerVpcIdT>(value);
154 }
155 template <typename PeerVpcIdT = Aws::String>
156 VpcPeeringConnection& WithPeerVpcId(PeerVpcIdT&& value) {
157 SetPeerVpcId(std::forward<PeerVpcIdT>(value));
158 return *this;
159 }
161
163
168 inline const Aws::String& GetGameLiftVpcId() const { return m_gameLiftVpcId; }
169 inline bool GameLiftVpcIdHasBeenSet() const { return m_gameLiftVpcIdHasBeenSet; }
170 template <typename GameLiftVpcIdT = Aws::String>
171 void SetGameLiftVpcId(GameLiftVpcIdT&& value) {
172 m_gameLiftVpcIdHasBeenSet = true;
173 m_gameLiftVpcId = std::forward<GameLiftVpcIdT>(value);
174 }
175 template <typename GameLiftVpcIdT = Aws::String>
176 VpcPeeringConnection& WithGameLiftVpcId(GameLiftVpcIdT&& value) {
177 SetGameLiftVpcId(std::forward<GameLiftVpcIdT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_fleetId;
183 bool m_fleetIdHasBeenSet = false;
184
185 Aws::String m_fleetArn;
186 bool m_fleetArnHasBeenSet = false;
187
188 Aws::String m_ipV4CidrBlock;
189 bool m_ipV4CidrBlockHasBeenSet = false;
190
191 Aws::String m_vpcPeeringConnectionId;
192 bool m_vpcPeeringConnectionIdHasBeenSet = false;
193
195 bool m_statusHasBeenSet = false;
196
197 Aws::String m_peerVpcId;
198 bool m_peerVpcIdHasBeenSet = false;
199
200 Aws::String m_gameLiftVpcId;
201 bool m_gameLiftVpcIdHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace GameLift
206} // namespace Aws
const VpcPeeringConnectionStatus & GetStatus() const
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
VpcPeeringConnection & WithGameLiftVpcId(GameLiftVpcIdT &&value)
const Aws::String & GetVpcPeeringConnectionId() const
AWS_GAMELIFT_API VpcPeeringConnection()=default
AWS_GAMELIFT_API VpcPeeringConnection(Aws::Utils::Json::JsonView jsonValue)
VpcPeeringConnection & WithFleetId(FleetIdT &&value)
void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT &&value)
AWS_GAMELIFT_API VpcPeeringConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcPeeringConnection & WithFleetArn(FleetArnT &&value)
VpcPeeringConnection & WithPeerVpcId(PeerVpcIdT &&value)
VpcPeeringConnection & WithStatus(StatusT &&value)
VpcPeeringConnection & WithVpcPeeringConnectionId(VpcPeeringConnectionIdT &&value)
VpcPeeringConnection & WithIpV4CidrBlock(IpV4CidrBlockT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue