AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTransitGatewayPeeringAttachmentRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/CreateTransitGatewayPeeringAttachmentRequestOptions.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
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 "CreateTransitGatewayPeeringAttachment"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
47 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
48 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
49 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
50 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
55
57
61 inline const Aws::String& GetPeerTransitGatewayId() const{ return m_peerTransitGatewayId; }
62 inline bool PeerTransitGatewayIdHasBeenSet() const { return m_peerTransitGatewayIdHasBeenSet; }
63 inline void SetPeerTransitGatewayId(const Aws::String& value) { m_peerTransitGatewayIdHasBeenSet = true; m_peerTransitGatewayId = value; }
64 inline void SetPeerTransitGatewayId(Aws::String&& value) { m_peerTransitGatewayIdHasBeenSet = true; m_peerTransitGatewayId = std::move(value); }
65 inline void SetPeerTransitGatewayId(const char* value) { m_peerTransitGatewayIdHasBeenSet = true; m_peerTransitGatewayId.assign(value); }
70
72
76 inline const Aws::String& GetPeerAccountId() const{ return m_peerAccountId; }
77 inline bool PeerAccountIdHasBeenSet() const { return m_peerAccountIdHasBeenSet; }
78 inline void SetPeerAccountId(const Aws::String& value) { m_peerAccountIdHasBeenSet = true; m_peerAccountId = value; }
79 inline void SetPeerAccountId(Aws::String&& value) { m_peerAccountIdHasBeenSet = true; m_peerAccountId = std::move(value); }
80 inline void SetPeerAccountId(const char* value) { m_peerAccountIdHasBeenSet = true; m_peerAccountId.assign(value); }
83 inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerAccountId(const char* value) { SetPeerAccountId(value); return *this;}
85
87
90 inline const Aws::String& GetPeerRegion() const{ return m_peerRegion; }
91 inline bool PeerRegionHasBeenSet() const { return m_peerRegionHasBeenSet; }
92 inline void SetPeerRegion(const Aws::String& value) { m_peerRegionHasBeenSet = true; m_peerRegion = value; }
93 inline void SetPeerRegion(Aws::String&& value) { m_peerRegionHasBeenSet = true; m_peerRegion = std::move(value); }
94 inline void SetPeerRegion(const char* value) { m_peerRegionHasBeenSet = true; m_peerRegion.assign(value); }
96 inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerRegion(Aws::String&& value) { SetPeerRegion(std::move(value)); return *this;}
97 inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerRegion(const char* value) { SetPeerRegion(value); return *this;}
99
101
104 inline const CreateTransitGatewayPeeringAttachmentRequestOptions& GetOptions() const{ return m_options; }
105 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
106 inline void SetOptions(const CreateTransitGatewayPeeringAttachmentRequestOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
107 inline void SetOptions(CreateTransitGatewayPeeringAttachmentRequestOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
111
113
116 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
117 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
118 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
119 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
122 inline CreateTransitGatewayPeeringAttachmentRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
123 inline CreateTransitGatewayPeeringAttachmentRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
125
127
133 inline bool GetDryRun() const{ return m_dryRun; }
134 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
135 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
136 inline CreateTransitGatewayPeeringAttachmentRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
138 private:
139
140 Aws::String m_transitGatewayId;
141 bool m_transitGatewayIdHasBeenSet = false;
142
143 Aws::String m_peerTransitGatewayId;
144 bool m_peerTransitGatewayIdHasBeenSet = false;
145
146 Aws::String m_peerAccountId;
147 bool m_peerAccountIdHasBeenSet = false;
148
149 Aws::String m_peerRegion;
150 bool m_peerRegionHasBeenSet = false;
151
153 bool m_optionsHasBeenSet = false;
154
155 Aws::Vector<TagSpecification> m_tagSpecifications;
156 bool m_tagSpecificationsHasBeenSet = false;
157
158 bool m_dryRun;
159 bool m_dryRunHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace EC2
164} // namespace Aws
CreateTransitGatewayPeeringAttachmentRequest & WithPeerRegion(const Aws::String &value)
CreateTransitGatewayPeeringAttachmentRequest & WithPeerAccountId(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
const CreateTransitGatewayPeeringAttachmentRequestOptions & GetOptions() const
CreateTransitGatewayPeeringAttachmentRequest & WithPeerTransitGatewayId(const char *value)
CreateTransitGatewayPeeringAttachmentRequest & WithOptions(CreateTransitGatewayPeeringAttachmentRequestOptions &&value)
CreateTransitGatewayPeeringAttachmentRequest & WithPeerRegion(const char *value)
CreateTransitGatewayPeeringAttachmentRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateTransitGatewayPeeringAttachmentRequest & WithPeerTransitGatewayId(const Aws::String &value)
CreateTransitGatewayPeeringAttachmentRequest & WithPeerAccountId(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetOptions(const CreateTransitGatewayPeeringAttachmentRequestOptions &value)
CreateTransitGatewayPeeringAttachmentRequest & WithPeerAccountId(const Aws::String &value)
CreateTransitGatewayPeeringAttachmentRequest & WithOptions(const CreateTransitGatewayPeeringAttachmentRequestOptions &value)
CreateTransitGatewayPeeringAttachmentRequest & WithTransitGatewayId(Aws::String &&value)
CreateTransitGatewayPeeringAttachmentRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateTransitGatewayPeeringAttachmentRequest & AddTagSpecifications(TagSpecification &&value)
CreateTransitGatewayPeeringAttachmentRequest & WithTransitGatewayId(const Aws::String &value)
CreateTransitGatewayPeeringAttachmentRequest & WithTransitGatewayId(const char *value)
CreateTransitGatewayPeeringAttachmentRequest & WithPeerRegion(Aws::String &&value)
CreateTransitGatewayPeeringAttachmentRequest & WithPeerTransitGatewayId(Aws::String &&value)
CreateTransitGatewayPeeringAttachmentRequest & AddTagSpecifications(const TagSpecification &value)
void SetOptions(CreateTransitGatewayPeeringAttachmentRequestOptions &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector