AWS SDK for C++  1.9.18
AWS SDK for C++
CreateVpcPeeringConnectionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace GameLift
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateVpcPeeringConnection"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
45 
50  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
51 
56  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
57 
62  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
63 
68  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
69 
74  inline CreateVpcPeeringConnectionRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
75 
80  inline CreateVpcPeeringConnectionRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
81 
86  inline CreateVpcPeeringConnectionRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
87 
88 
94  inline const Aws::String& GetPeerVpcAwsAccountId() const{ return m_peerVpcAwsAccountId; }
95 
101  inline bool PeerVpcAwsAccountIdHasBeenSet() const { return m_peerVpcAwsAccountIdHasBeenSet; }
102 
108  inline void SetPeerVpcAwsAccountId(const Aws::String& value) { m_peerVpcAwsAccountIdHasBeenSet = true; m_peerVpcAwsAccountId = value; }
109 
115  inline void SetPeerVpcAwsAccountId(Aws::String&& value) { m_peerVpcAwsAccountIdHasBeenSet = true; m_peerVpcAwsAccountId = std::move(value); }
116 
122  inline void SetPeerVpcAwsAccountId(const char* value) { m_peerVpcAwsAccountIdHasBeenSet = true; m_peerVpcAwsAccountId.assign(value); }
123 
129  inline CreateVpcPeeringConnectionRequest& WithPeerVpcAwsAccountId(const Aws::String& value) { SetPeerVpcAwsAccountId(value); return *this;}
130 
136  inline CreateVpcPeeringConnectionRequest& WithPeerVpcAwsAccountId(Aws::String&& value) { SetPeerVpcAwsAccountId(std::move(value)); return *this;}
137 
143  inline CreateVpcPeeringConnectionRequest& WithPeerVpcAwsAccountId(const char* value) { SetPeerVpcAwsAccountId(value); return *this;}
144 
145 
154  inline const Aws::String& GetPeerVpcId() const{ return m_peerVpcId; }
155 
164  inline bool PeerVpcIdHasBeenSet() const { return m_peerVpcIdHasBeenSet; }
165 
174  inline void SetPeerVpcId(const Aws::String& value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId = value; }
175 
184  inline void SetPeerVpcId(Aws::String&& value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId = std::move(value); }
185 
194  inline void SetPeerVpcId(const char* value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId.assign(value); }
195 
204  inline CreateVpcPeeringConnectionRequest& WithPeerVpcId(const Aws::String& value) { SetPeerVpcId(value); return *this;}
205 
214  inline CreateVpcPeeringConnectionRequest& WithPeerVpcId(Aws::String&& value) { SetPeerVpcId(std::move(value)); return *this;}
215 
224  inline CreateVpcPeeringConnectionRequest& WithPeerVpcId(const char* value) { SetPeerVpcId(value); return *this;}
225 
226  private:
227 
228  Aws::String m_fleetId;
229  bool m_fleetIdHasBeenSet;
230 
231  Aws::String m_peerVpcAwsAccountId;
232  bool m_peerVpcAwsAccountIdHasBeenSet;
233 
234  Aws::String m_peerVpcId;
235  bool m_peerVpcIdHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace GameLift
240 } // namespace Aws
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::SetPeerVpcId
void SetPeerVpcId(Aws::String &&value)
Definition: CreateVpcPeeringConnectionRequest.h:184
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::SetPeerVpcAwsAccountId
void SetPeerVpcAwsAccountId(Aws::String &&value)
Definition: CreateVpcPeeringConnectionRequest.h:115
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::WithPeerVpcId
CreateVpcPeeringConnectionRequest & WithPeerVpcId(const char *value)
Definition: CreateVpcPeeringConnectionRequest.h:224
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::WithPeerVpcAwsAccountId
CreateVpcPeeringConnectionRequest & WithPeerVpcAwsAccountId(const char *value)
Definition: CreateVpcPeeringConnectionRequest.h:143
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateVpcPeeringConnectionRequest.h:33
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::WithPeerVpcId
CreateVpcPeeringConnectionRequest & WithPeerVpcId(const Aws::String &value)
Definition: CreateVpcPeeringConnectionRequest.h:204
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: CreateVpcPeeringConnectionRequest.h:50
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::PeerVpcIdHasBeenSet
bool PeerVpcIdHasBeenSet() const
Definition: CreateVpcPeeringConnectionRequest.h:164
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::WithFleetId
CreateVpcPeeringConnectionRequest & WithFleetId(const Aws::String &value)
Definition: CreateVpcPeeringConnectionRequest.h:74
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::WithPeerVpcId
CreateVpcPeeringConnectionRequest & WithPeerVpcId(Aws::String &&value)
Definition: CreateVpcPeeringConnectionRequest.h:214
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::GetPeerVpcAwsAccountId
const Aws::String & GetPeerVpcAwsAccountId() const
Definition: CreateVpcPeeringConnectionRequest.h:94
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::SetPeerVpcAwsAccountId
void SetPeerVpcAwsAccountId(const Aws::String &value)
Definition: CreateVpcPeeringConnectionRequest.h:108
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest
Definition: CreateVpcPeeringConnectionRequest.h:25
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::SetFleetId
void SetFleetId(const char *value)
Definition: CreateVpcPeeringConnectionRequest.h:68
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::SetPeerVpcAwsAccountId
void SetPeerVpcAwsAccountId(const char *value)
Definition: CreateVpcPeeringConnectionRequest.h:122
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::WithPeerVpcAwsAccountId
CreateVpcPeeringConnectionRequest & WithPeerVpcAwsAccountId(const Aws::String &value)
Definition: CreateVpcPeeringConnectionRequest.h:129
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::GetFleetId
const Aws::String & GetFleetId() const
Definition: CreateVpcPeeringConnectionRequest.h:44
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: CreateVpcPeeringConnectionRequest.h:62
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::GetPeerVpcId
const Aws::String & GetPeerVpcId() const
Definition: CreateVpcPeeringConnectionRequest.h:154
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::WithFleetId
CreateVpcPeeringConnectionRequest & WithFleetId(const char *value)
Definition: CreateVpcPeeringConnectionRequest.h:86
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::WithFleetId
CreateVpcPeeringConnectionRequest & WithFleetId(Aws::String &&value)
Definition: CreateVpcPeeringConnectionRequest.h:80
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::WithPeerVpcAwsAccountId
CreateVpcPeeringConnectionRequest & WithPeerVpcAwsAccountId(Aws::String &&value)
Definition: CreateVpcPeeringConnectionRequest.h:136
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: CreateVpcPeeringConnectionRequest.h:56
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::SetPeerVpcId
void SetPeerVpcId(const Aws::String &value)
Definition: CreateVpcPeeringConnectionRequest.h:174
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::SetPeerVpcId
void SetPeerVpcId(const char *value)
Definition: CreateVpcPeeringConnectionRequest.h:194
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::PeerVpcAwsAccountIdHasBeenSet
bool PeerVpcAwsAccountIdHasBeenSet() const
Definition: CreateVpcPeeringConnectionRequest.h:101
Aws::GameLift::Model::CreateVpcPeeringConnectionRequest::CreateVpcPeeringConnectionRequest
CreateVpcPeeringConnectionRequest()