AWS SDK for C++  1.9.71
AWS SDK for C++
CreateTransitGatewayConnectRequest.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>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace 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 "CreateTransitGatewayConnect"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
46  inline const Aws::String& GetTransportTransitGatewayAttachmentId() const{ return m_transportTransitGatewayAttachmentId; }
47 
52  inline bool TransportTransitGatewayAttachmentIdHasBeenSet() const { return m_transportTransitGatewayAttachmentIdHasBeenSet; }
53 
58  inline void SetTransportTransitGatewayAttachmentId(const Aws::String& value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId = value; }
59 
64  inline void SetTransportTransitGatewayAttachmentId(Aws::String&& value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId = std::move(value); }
65 
70  inline void SetTransportTransitGatewayAttachmentId(const char* value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId.assign(value); }
71 
76  inline CreateTransitGatewayConnectRequest& WithTransportTransitGatewayAttachmentId(const Aws::String& value) { SetTransportTransitGatewayAttachmentId(value); return *this;}
77 
82  inline CreateTransitGatewayConnectRequest& WithTransportTransitGatewayAttachmentId(Aws::String&& value) { SetTransportTransitGatewayAttachmentId(std::move(value)); return *this;}
83 
88  inline CreateTransitGatewayConnectRequest& WithTransportTransitGatewayAttachmentId(const char* value) { SetTransportTransitGatewayAttachmentId(value); return *this;}
89 
90 
94  inline const CreateTransitGatewayConnectRequestOptions& GetOptions() const{ return m_options; }
95 
99  inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
100 
104  inline void SetOptions(const CreateTransitGatewayConnectRequestOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
105 
109  inline void SetOptions(CreateTransitGatewayConnectRequestOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
110 
114  inline CreateTransitGatewayConnectRequest& WithOptions(const CreateTransitGatewayConnectRequestOptions& value) { SetOptions(value); return *this;}
115 
119  inline CreateTransitGatewayConnectRequest& WithOptions(CreateTransitGatewayConnectRequestOptions&& value) { SetOptions(std::move(value)); return *this;}
120 
121 
125  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
126 
130  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
131 
135  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
136 
140  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
141 
145  inline CreateTransitGatewayConnectRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
146 
150  inline CreateTransitGatewayConnectRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
151 
155  inline CreateTransitGatewayConnectRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
156 
160  inline CreateTransitGatewayConnectRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
161 
162 
169  inline bool GetDryRun() const{ return m_dryRun; }
170 
177  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
178 
185  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
186 
193  inline CreateTransitGatewayConnectRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
194 
195  private:
196 
197  Aws::String m_transportTransitGatewayAttachmentId;
198  bool m_transportTransitGatewayAttachmentIdHasBeenSet;
199 
201  bool m_optionsHasBeenSet;
202 
203  Aws::Vector<TagSpecification> m_tagSpecifications;
204  bool m_tagSpecificationsHasBeenSet;
205 
206  bool m_dryRun;
207  bool m_dryRunHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace EC2
212 } // namespace Aws
Aws::EC2::Model::CreateTransitGatewayConnectRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateTransitGatewayConnectRequest.h:185
Aws::EC2::Model::CreateTransitGatewayConnectRequest::GetOptions
const CreateTransitGatewayConnectRequestOptions & GetOptions() const
Definition: CreateTransitGatewayConnectRequest.h:94
TagSpecification.h
Aws::EC2::Model::CreateTransitGatewayConnectRequest::AddTagSpecifications
CreateTransitGatewayConnectRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateTransitGatewayConnectRequest.h:160
Aws::EC2::Model::CreateTransitGatewayConnectRequest::SetOptions
void SetOptions(const CreateTransitGatewayConnectRequestOptions &value)
Definition: CreateTransitGatewayConnectRequest.h:104
Aws::EC2::Model::CreateTransitGatewayConnectRequest::WithTransportTransitGatewayAttachmentId
CreateTransitGatewayConnectRequest & WithTransportTransitGatewayAttachmentId(Aws::String &&value)
Definition: CreateTransitGatewayConnectRequest.h:82
Aws::EC2::Model::CreateTransitGatewayConnectRequest::AddTagSpecifications
CreateTransitGatewayConnectRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateTransitGatewayConnectRequest.h:155
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateTransitGatewayConnectRequest::WithDryRun
CreateTransitGatewayConnectRequest & WithDryRun(bool value)
Definition: CreateTransitGatewayConnectRequest.h:193
Aws::EC2::Model::CreateTransitGatewayConnectRequest::OptionsHasBeenSet
bool OptionsHasBeenSet() const
Definition: CreateTransitGatewayConnectRequest.h:99
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateTransitGatewayConnectRequest::WithTagSpecifications
CreateTransitGatewayConnectRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTransitGatewayConnectRequest.h:145
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateTransitGatewayConnectRequest::SetOptions
void SetOptions(CreateTransitGatewayConnectRequestOptions &&value)
Definition: CreateTransitGatewayConnectRequest.h:109
Aws::EC2::Model::CreateTransitGatewayConnectRequest
Definition: CreateTransitGatewayConnectRequest.h:25
Aws::EC2::Model::CreateTransitGatewayConnectRequest::WithTagSpecifications
CreateTransitGatewayConnectRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateTransitGatewayConnectRequest.h:150
AWSVector.h
Aws::EC2::Model::CreateTransitGatewayConnectRequestOptions
Definition: CreateTransitGatewayConnectRequestOptions.h:32
Aws::EC2::Model::CreateTransitGatewayConnectRequest::GetTransportTransitGatewayAttachmentId
const Aws::String & GetTransportTransitGatewayAttachmentId() const
Definition: CreateTransitGatewayConnectRequest.h:46
Aws::EC2::Model::CreateTransitGatewayConnectRequest::WithTransportTransitGatewayAttachmentId
CreateTransitGatewayConnectRequest & WithTransportTransitGatewayAttachmentId(const Aws::String &value)
Definition: CreateTransitGatewayConnectRequest.h:76
Aws::EC2::Model::CreateTransitGatewayConnectRequest::WithOptions
CreateTransitGatewayConnectRequest & WithOptions(CreateTransitGatewayConnectRequestOptions &&value)
Definition: CreateTransitGatewayConnectRequest.h:119
EC2Request.h
Aws::EC2::Model::CreateTransitGatewayConnectRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateTransitGatewayConnectRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateTransitGatewayConnectRequest.h:125
AWSString.h
Aws::EC2::Model::CreateTransitGatewayConnectRequest::SetTransportTransitGatewayAttachmentId
void SetTransportTransitGatewayAttachmentId(Aws::String &&value)
Definition: CreateTransitGatewayConnectRequest.h:64
Aws::EC2::Model::CreateTransitGatewayConnectRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateTransitGatewayConnectRequest.h:177
Aws::EC2::Model::CreateTransitGatewayConnectRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTransitGatewayConnectRequest.h:33
Aws::EC2::Model::CreateTransitGatewayConnectRequest::WithTransportTransitGatewayAttachmentId
CreateTransitGatewayConnectRequest & WithTransportTransitGatewayAttachmentId(const char *value)
Definition: CreateTransitGatewayConnectRequest.h:88
Aws::EC2::Model::CreateTransitGatewayConnectRequest::SetTransportTransitGatewayAttachmentId
void SetTransportTransitGatewayAttachmentId(const char *value)
Definition: CreateTransitGatewayConnectRequest.h:70
Aws::EC2::Model::CreateTransitGatewayConnectRequest::WithOptions
CreateTransitGatewayConnectRequest & WithOptions(const CreateTransitGatewayConnectRequestOptions &value)
Definition: CreateTransitGatewayConnectRequest.h:114
Aws::EC2::Model::CreateTransitGatewayConnectRequest::GetDryRun
bool GetDryRun() const
Definition: CreateTransitGatewayConnectRequest.h:169
Aws::EC2::Model::CreateTransitGatewayConnectRequest::TransportTransitGatewayAttachmentIdHasBeenSet
bool TransportTransitGatewayAttachmentIdHasBeenSet() const
Definition: CreateTransitGatewayConnectRequest.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateTransitGatewayConnectRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateTransitGatewayConnectRequest.h:130
Aws::EC2::Model::CreateTransitGatewayConnectRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateTransitGatewayConnectRequest.h:140
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateTransitGatewayConnectRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTransitGatewayConnectRequest.h:135
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateTransitGatewayConnectRequest::SetTransportTransitGatewayAttachmentId
void SetTransportTransitGatewayAttachmentId(const Aws::String &value)
Definition: CreateTransitGatewayConnectRequest.h:58
Aws::EC2::Model::CreateTransitGatewayConnectRequest::CreateTransitGatewayConnectRequest
CreateTransitGatewayConnectRequest()
CreateTransitGatewayConnectRequestOptions.h
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreateTransitGatewayConnectRequest::SerializePayload
Aws::String SerializePayload() const override