AWS SDK for C++  1.9.72
AWS SDK for C++
ModifyTransitGatewayVpcAttachmentRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ModifyTransitGatewayVpcAttachment"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
45 
49  inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
50 
54  inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
55 
59  inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
60 
64  inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
65 
69  inline ModifyTransitGatewayVpcAttachmentRequest& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
70 
74  inline ModifyTransitGatewayVpcAttachmentRequest& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
75 
79  inline ModifyTransitGatewayVpcAttachmentRequest& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
80 
81 
86  inline const Aws::Vector<Aws::String>& GetAddSubnetIds() const{ return m_addSubnetIds; }
87 
92  inline bool AddSubnetIdsHasBeenSet() const { return m_addSubnetIdsHasBeenSet; }
93 
98  inline void SetAddSubnetIds(const Aws::Vector<Aws::String>& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds = value; }
99 
104  inline void SetAddSubnetIds(Aws::Vector<Aws::String>&& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds = std::move(value); }
105 
110  inline ModifyTransitGatewayVpcAttachmentRequest& WithAddSubnetIds(const Aws::Vector<Aws::String>& value) { SetAddSubnetIds(value); return *this;}
111 
116  inline ModifyTransitGatewayVpcAttachmentRequest& WithAddSubnetIds(Aws::Vector<Aws::String>&& value) { SetAddSubnetIds(std::move(value)); return *this;}
117 
122  inline ModifyTransitGatewayVpcAttachmentRequest& AddAddSubnetIds(const Aws::String& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(value); return *this; }
123 
128  inline ModifyTransitGatewayVpcAttachmentRequest& AddAddSubnetIds(Aws::String&& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(std::move(value)); return *this; }
129 
134  inline ModifyTransitGatewayVpcAttachmentRequest& AddAddSubnetIds(const char* value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(value); return *this; }
135 
136 
140  inline const Aws::Vector<Aws::String>& GetRemoveSubnetIds() const{ return m_removeSubnetIds; }
141 
145  inline bool RemoveSubnetIdsHasBeenSet() const { return m_removeSubnetIdsHasBeenSet; }
146 
150  inline void SetRemoveSubnetIds(const Aws::Vector<Aws::String>& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds = value; }
151 
155  inline void SetRemoveSubnetIds(Aws::Vector<Aws::String>&& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds = std::move(value); }
156 
160  inline ModifyTransitGatewayVpcAttachmentRequest& WithRemoveSubnetIds(const Aws::Vector<Aws::String>& value) { SetRemoveSubnetIds(value); return *this;}
161 
165  inline ModifyTransitGatewayVpcAttachmentRequest& WithRemoveSubnetIds(Aws::Vector<Aws::String>&& value) { SetRemoveSubnetIds(std::move(value)); return *this;}
166 
170  inline ModifyTransitGatewayVpcAttachmentRequest& AddRemoveSubnetIds(const Aws::String& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(value); return *this; }
171 
175  inline ModifyTransitGatewayVpcAttachmentRequest& AddRemoveSubnetIds(Aws::String&& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(std::move(value)); return *this; }
176 
180  inline ModifyTransitGatewayVpcAttachmentRequest& AddRemoveSubnetIds(const char* value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(value); return *this; }
181 
182 
187  inline const ModifyTransitGatewayVpcAttachmentRequestOptions& GetOptions() const{ return m_options; }
188 
193  inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
194 
199  inline void SetOptions(const ModifyTransitGatewayVpcAttachmentRequestOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
200 
205  inline void SetOptions(ModifyTransitGatewayVpcAttachmentRequestOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
206 
212 
217  inline ModifyTransitGatewayVpcAttachmentRequest& WithOptions(ModifyTransitGatewayVpcAttachmentRequestOptions&& value) { SetOptions(std::move(value)); return *this;}
218 
219 
226  inline bool GetDryRun() const{ return m_dryRun; }
227 
234  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
235 
242  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
243 
250  inline ModifyTransitGatewayVpcAttachmentRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
251 
252  private:
253 
254  Aws::String m_transitGatewayAttachmentId;
255  bool m_transitGatewayAttachmentIdHasBeenSet;
256 
257  Aws::Vector<Aws::String> m_addSubnetIds;
258  bool m_addSubnetIdsHasBeenSet;
259 
260  Aws::Vector<Aws::String> m_removeSubnetIds;
261  bool m_removeSubnetIdsHasBeenSet;
262 
264  bool m_optionsHasBeenSet;
265 
266  bool m_dryRun;
267  bool m_dryRunHasBeenSet;
268  };
269 
270 } // namespace Model
271 } // namespace EC2
272 } // namespace Aws
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::SetRemoveSubnetIds
void SetRemoveSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:150
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::GetRemoveSubnetIds
const Aws::Vector< Aws::String > & GetRemoveSubnetIds() const
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:140
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:226
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::AddRemoveSubnetIds
ModifyTransitGatewayVpcAttachmentRequest & AddRemoveSubnetIds(const char *value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:180
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:234
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const char *value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:64
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::SetRemoveSubnetIds
void SetRemoveSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:155
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::WithOptions
ModifyTransitGatewayVpcAttachmentRequest & WithOptions(const ModifyTransitGatewayVpcAttachmentRequestOptions &value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:211
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::TransitGatewayAttachmentIdHasBeenSet
bool TransitGatewayAttachmentIdHasBeenSet() const
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:49
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::SetOptions
void SetOptions(const ModifyTransitGatewayVpcAttachmentRequestOptions &value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:199
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::RemoveSubnetIdsHasBeenSet
bool RemoveSubnetIdsHasBeenSet() const
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:145
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequestOptions
Definition: ModifyTransitGatewayVpcAttachmentRequestOptions.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::SetAddSubnetIds
void SetAddSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:104
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::AddRemoveSubnetIds
ModifyTransitGatewayVpcAttachmentRequest & AddRemoveSubnetIds(const Aws::String &value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:170
AWSVector.h
ModifyTransitGatewayVpcAttachmentRequestOptions.h
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::WithAddSubnetIds
ModifyTransitGatewayVpcAttachmentRequest & WithAddSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:116
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::OptionsHasBeenSet
bool OptionsHasBeenSet() const
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:193
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::WithOptions
ModifyTransitGatewayVpcAttachmentRequest & WithOptions(ModifyTransitGatewayVpcAttachmentRequestOptions &&value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:217
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::WithRemoveSubnetIds
ModifyTransitGatewayVpcAttachmentRequest & WithRemoveSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:160
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:32
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::SetOptions
void SetOptions(ModifyTransitGatewayVpcAttachmentRequestOptions &&value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:205
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::AddAddSubnetIds
ModifyTransitGatewayVpcAttachmentRequest & AddAddSubnetIds(Aws::String &&value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:128
EC2Request.h
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::SetAddSubnetIds
void SetAddSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:98
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::AddAddSubnetIds
ModifyTransitGatewayVpcAttachmentRequest & AddAddSubnetIds(const char *value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:134
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::GetAddSubnetIds
const Aws::Vector< Aws::String > & GetAddSubnetIds() const
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:86
AWSString.h
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::AddRemoveSubnetIds
ModifyTransitGatewayVpcAttachmentRequest & AddRemoveSubnetIds(Aws::String &&value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:175
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:24
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::WithRemoveSubnetIds
ModifyTransitGatewayVpcAttachmentRequest & WithRemoveSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:165
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::WithTransitGatewayAttachmentId
ModifyTransitGatewayVpcAttachmentRequest & WithTransitGatewayAttachmentId(Aws::String &&value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:74
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::WithTransitGatewayAttachmentId
ModifyTransitGatewayVpcAttachmentRequest & WithTransitGatewayAttachmentId(const char *value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:79
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::GetTransitGatewayAttachmentId
const Aws::String & GetTransitGatewayAttachmentId() const
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:44
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::WithAddSubnetIds
ModifyTransitGatewayVpcAttachmentRequest & WithAddSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:110
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(Aws::String &&value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::ModifyTransitGatewayVpcAttachmentRequest
ModifyTransitGatewayVpcAttachmentRequest()
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const Aws::String &value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:54
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::AddAddSubnetIds
ModifyTransitGatewayVpcAttachmentRequest & AddAddSubnetIds(const Aws::String &value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:122
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::ModifyTransitGatewayVpcAttachmentRequest::GetOptions
const ModifyTransitGatewayVpcAttachmentRequestOptions & GetOptions() const
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:187
EC2_EXPORTS.h
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::WithTransitGatewayAttachmentId
ModifyTransitGatewayVpcAttachmentRequest & WithTransitGatewayAttachmentId(const Aws::String &value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:69
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::AddSubnetIdsHasBeenSet
bool AddSubnetIdsHasBeenSet() const
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:92
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::WithDryRun
ModifyTransitGatewayVpcAttachmentRequest & WithDryRun(bool value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:250
Aws::EC2::Model::ModifyTransitGatewayVpcAttachmentRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyTransitGatewayVpcAttachmentRequest.h:242