AWS SDK for C++  1.9.71
AWS SDK for C++
AcceptVpcPeeringConnectionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "AcceptVpcPeeringConnection"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
45  inline bool GetDryRun() const{ return m_dryRun; }
46 
53  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
54 
61  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
62 
69  inline AcceptVpcPeeringConnectionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
70 
71 
76  inline const Aws::String& GetVpcPeeringConnectionId() const{ return m_vpcPeeringConnectionId; }
77 
82  inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
83 
88  inline void SetVpcPeeringConnectionId(const Aws::String& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
89 
94  inline void SetVpcPeeringConnectionId(Aws::String&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = std::move(value); }
95 
100  inline void SetVpcPeeringConnectionId(const char* value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId.assign(value); }
101 
106  inline AcceptVpcPeeringConnectionRequest& WithVpcPeeringConnectionId(const Aws::String& value) { SetVpcPeeringConnectionId(value); return *this;}
107 
112  inline AcceptVpcPeeringConnectionRequest& WithVpcPeeringConnectionId(Aws::String&& value) { SetVpcPeeringConnectionId(std::move(value)); return *this;}
113 
118  inline AcceptVpcPeeringConnectionRequest& WithVpcPeeringConnectionId(const char* value) { SetVpcPeeringConnectionId(value); return *this;}
119 
120  private:
121 
122  bool m_dryRun;
123  bool m_dryRunHasBeenSet;
124 
125  Aws::String m_vpcPeeringConnectionId;
126  bool m_vpcPeeringConnectionIdHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace EC2
131 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::WithVpcPeeringConnectionId
AcceptVpcPeeringConnectionRequest & WithVpcPeeringConnectionId(Aws::String &&value)
Definition: AcceptVpcPeeringConnectionRequest.h:112
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::WithDryRun
AcceptVpcPeeringConnectionRequest & WithDryRun(bool value)
Definition: AcceptVpcPeeringConnectionRequest.h:69
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::GetVpcPeeringConnectionId
const Aws::String & GetVpcPeeringConnectionId() const
Definition: AcceptVpcPeeringConnectionRequest.h:76
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::AcceptVpcPeeringConnectionRequest
AcceptVpcPeeringConnectionRequest()
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::WithVpcPeeringConnectionId
AcceptVpcPeeringConnectionRequest & WithVpcPeeringConnectionId(const Aws::String &value)
Definition: AcceptVpcPeeringConnectionRequest.h:106
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::SetVpcPeeringConnectionId
void SetVpcPeeringConnectionId(const Aws::String &value)
Definition: AcceptVpcPeeringConnectionRequest.h:88
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::SetVpcPeeringConnectionId
void SetVpcPeeringConnectionId(const char *value)
Definition: AcceptVpcPeeringConnectionRequest.h:100
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::SerializePayload
Aws::String SerializePayload() const override
EC2Request.h
AWSString.h
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: AcceptVpcPeeringConnectionRequest.h:53
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::WithVpcPeeringConnectionId
AcceptVpcPeeringConnectionRequest & WithVpcPeeringConnectionId(const char *value)
Definition: AcceptVpcPeeringConnectionRequest.h:118
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::SetDryRun
void SetDryRun(bool value)
Definition: AcceptVpcPeeringConnectionRequest.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::VpcPeeringConnectionIdHasBeenSet
bool VpcPeeringConnectionIdHasBeenSet() const
Definition: AcceptVpcPeeringConnectionRequest.h:82
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::SetVpcPeeringConnectionId
void SetVpcPeeringConnectionId(Aws::String &&value)
Definition: AcceptVpcPeeringConnectionRequest.h:94
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AcceptVpcPeeringConnectionRequest.h:30
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2_EXPORTS.h
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest
Definition: AcceptVpcPeeringConnectionRequest.h:22
Aws::EC2::Model::AcceptVpcPeeringConnectionRequest::GetDryRun
bool GetDryRun() const
Definition: AcceptVpcPeeringConnectionRequest.h:45