AWS SDK for C++  1.9.66
AWS SDK for C++
DeleteTransitGatewayConnectPeerRequest.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 "DeleteTransitGatewayConnectPeer"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetTransitGatewayConnectPeerId() const{ return m_transitGatewayConnectPeerId; }
43 
47  inline bool TransitGatewayConnectPeerIdHasBeenSet() const { return m_transitGatewayConnectPeerIdHasBeenSet; }
48 
52  inline void SetTransitGatewayConnectPeerId(const Aws::String& value) { m_transitGatewayConnectPeerIdHasBeenSet = true; m_transitGatewayConnectPeerId = value; }
53 
57  inline void SetTransitGatewayConnectPeerId(Aws::String&& value) { m_transitGatewayConnectPeerIdHasBeenSet = true; m_transitGatewayConnectPeerId = std::move(value); }
58 
62  inline void SetTransitGatewayConnectPeerId(const char* value) { m_transitGatewayConnectPeerIdHasBeenSet = true; m_transitGatewayConnectPeerId.assign(value); }
63 
67  inline DeleteTransitGatewayConnectPeerRequest& WithTransitGatewayConnectPeerId(const Aws::String& value) { SetTransitGatewayConnectPeerId(value); return *this;}
68 
72  inline DeleteTransitGatewayConnectPeerRequest& WithTransitGatewayConnectPeerId(Aws::String&& value) { SetTransitGatewayConnectPeerId(std::move(value)); return *this;}
73 
77  inline DeleteTransitGatewayConnectPeerRequest& WithTransitGatewayConnectPeerId(const char* value) { SetTransitGatewayConnectPeerId(value); return *this;}
78 
79 
86  inline bool GetDryRun() const{ return m_dryRun; }
87 
94  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
95 
102  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
103 
110  inline DeleteTransitGatewayConnectPeerRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
111 
112  private:
113 
114  Aws::String m_transitGatewayConnectPeerId;
115  bool m_transitGatewayConnectPeerIdHasBeenSet;
116 
117  bool m_dryRun;
118  bool m_dryRunHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace EC2
123 } // namespace Aws
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::GetTransitGatewayConnectPeerId
const Aws::String & GetTransitGatewayConnectPeerId() const
Definition: DeleteTransitGatewayConnectPeerRequest.h:42
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::WithTransitGatewayConnectPeerId
DeleteTransitGatewayConnectPeerRequest & WithTransitGatewayConnectPeerId(const char *value)
Definition: DeleteTransitGatewayConnectPeerRequest.h:77
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::TransitGatewayConnectPeerIdHasBeenSet
bool TransitGatewayConnectPeerIdHasBeenSet() const
Definition: DeleteTransitGatewayConnectPeerRequest.h:47
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::SetTransitGatewayConnectPeerId
void SetTransitGatewayConnectPeerId(Aws::String &&value)
Definition: DeleteTransitGatewayConnectPeerRequest.h:57
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteTransitGatewayConnectPeerRequest.h:102
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::WithTransitGatewayConnectPeerId
DeleteTransitGatewayConnectPeerRequest & WithTransitGatewayConnectPeerId(Aws::String &&value)
Definition: DeleteTransitGatewayConnectPeerRequest.h:72
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteTransitGatewayConnectPeerRequest.h:30
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::SetTransitGatewayConnectPeerId
void SetTransitGatewayConnectPeerId(const char *value)
Definition: DeleteTransitGatewayConnectPeerRequest.h:62
EC2Request.h
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteTransitGatewayConnectPeerRequest.h:86
AWSString.h
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::DeleteTransitGatewayConnectPeerRequest
DeleteTransitGatewayConnectPeerRequest()
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::SetTransitGatewayConnectPeerId
void SetTransitGatewayConnectPeerId(const Aws::String &value)
Definition: DeleteTransitGatewayConnectPeerRequest.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest
Definition: DeleteTransitGatewayConnectPeerRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteTransitGatewayConnectPeerRequest.h:94
EC2_EXPORTS.h
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::WithTransitGatewayConnectPeerId
DeleteTransitGatewayConnectPeerRequest & WithTransitGatewayConnectPeerId(const Aws::String &value)
Definition: DeleteTransitGatewayConnectPeerRequest.h:67
Aws::EC2::Model::DeleteTransitGatewayConnectPeerRequest::WithDryRun
DeleteTransitGatewayConnectPeerRequest & WithDryRun(bool value)
Definition: DeleteTransitGatewayConnectPeerRequest.h:110