AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
VpcPeeringConnection.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/VpcPeeringConnectionStatus.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
38 {
39 public:
40 AWS_GAMELIFT_API VpcPeeringConnection() = default;
43 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetFleetId() const { return m_fleetId; }
52 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
53 template<typename FleetIdT = Aws::String>
54 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
55 template<typename FleetIdT = Aws::String>
56 VpcPeeringConnection& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
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) { m_fleetArnHasBeenSet = true; m_fleetArn = std::forward<FleetArnT>(value); }
69 template<typename FleetArnT = Aws::String>
70 VpcPeeringConnection& WithFleetArn(FleetArnT&& value) { SetFleetArn(std::forward<FleetArnT>(value)); return *this;}
72
74
79 inline const Aws::String& GetIpV4CidrBlock() const { return m_ipV4CidrBlock; }
80 inline bool IpV4CidrBlockHasBeenSet() const { return m_ipV4CidrBlockHasBeenSet; }
81 template<typename IpV4CidrBlockT = Aws::String>
82 void SetIpV4CidrBlock(IpV4CidrBlockT&& value) { m_ipV4CidrBlockHasBeenSet = true; m_ipV4CidrBlock = std::forward<IpV4CidrBlockT>(value); }
83 template<typename IpV4CidrBlockT = Aws::String>
84 VpcPeeringConnection& WithIpV4CidrBlock(IpV4CidrBlockT&& value) { SetIpV4CidrBlock(std::forward<IpV4CidrBlockT>(value)); return *this;}
86
88
93 inline const Aws::String& GetVpcPeeringConnectionId() const { return m_vpcPeeringConnectionId; }
94 inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
95 template<typename VpcPeeringConnectionIdT = Aws::String>
96 void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = std::forward<VpcPeeringConnectionIdT>(value); }
97 template<typename VpcPeeringConnectionIdT = Aws::String>
98 VpcPeeringConnection& WithVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) { SetVpcPeeringConnectionId(std::forward<VpcPeeringConnectionIdT>(value)); return *this;}
100
102
106 inline const VpcPeeringConnectionStatus& GetStatus() const { return m_status; }
107 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
108 template<typename StatusT = VpcPeeringConnectionStatus>
109 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
110 template<typename StatusT = VpcPeeringConnectionStatus>
111 VpcPeeringConnection& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
113
115
124 inline const Aws::String& GetPeerVpcId() const { return m_peerVpcId; }
125 inline bool PeerVpcIdHasBeenSet() const { return m_peerVpcIdHasBeenSet; }
126 template<typename PeerVpcIdT = Aws::String>
127 void SetPeerVpcId(PeerVpcIdT&& value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId = std::forward<PeerVpcIdT>(value); }
128 template<typename PeerVpcIdT = Aws::String>
129 VpcPeeringConnection& WithPeerVpcId(PeerVpcIdT&& value) { SetPeerVpcId(std::forward<PeerVpcIdT>(value)); return *this;}
131
133
138 inline const Aws::String& GetGameLiftVpcId() const { return m_gameLiftVpcId; }
139 inline bool GameLiftVpcIdHasBeenSet() const { return m_gameLiftVpcIdHasBeenSet; }
140 template<typename GameLiftVpcIdT = Aws::String>
141 void SetGameLiftVpcId(GameLiftVpcIdT&& value) { m_gameLiftVpcIdHasBeenSet = true; m_gameLiftVpcId = std::forward<GameLiftVpcIdT>(value); }
142 template<typename GameLiftVpcIdT = Aws::String>
143 VpcPeeringConnection& WithGameLiftVpcId(GameLiftVpcIdT&& value) { SetGameLiftVpcId(std::forward<GameLiftVpcIdT>(value)); return *this;}
145 private:
146
147 Aws::String m_fleetId;
148 bool m_fleetIdHasBeenSet = false;
149
150 Aws::String m_fleetArn;
151 bool m_fleetArnHasBeenSet = false;
152
153 Aws::String m_ipV4CidrBlock;
154 bool m_ipV4CidrBlockHasBeenSet = false;
155
156 Aws::String m_vpcPeeringConnectionId;
157 bool m_vpcPeeringConnectionIdHasBeenSet = false;
158
160 bool m_statusHasBeenSet = false;
161
162 Aws::String m_peerVpcId;
163 bool m_peerVpcIdHasBeenSet = false;
164
165 Aws::String m_gameLiftVpcId;
166 bool m_gameLiftVpcIdHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace GameLift
171} // 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