AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyTransitGatewayVpcAttachmentRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/ModifyTransitGatewayVpcAttachmentRequestOptions.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace 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_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetTransitGatewayAttachmentId() const { return m_transitGatewayAttachmentId; }
46 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
47 template<typename TransitGatewayAttachmentIdT = Aws::String>
48 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value); }
49 template<typename TransitGatewayAttachmentIdT = Aws::String>
50 ModifyTransitGatewayVpcAttachmentRequest& WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value)); return *this;}
52
54
58 inline const Aws::Vector<Aws::String>& GetAddSubnetIds() const { return m_addSubnetIds; }
59 inline bool AddSubnetIdsHasBeenSet() const { return m_addSubnetIdsHasBeenSet; }
60 template<typename AddSubnetIdsT = Aws::Vector<Aws::String>>
61 void SetAddSubnetIds(AddSubnetIdsT&& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds = std::forward<AddSubnetIdsT>(value); }
62 template<typename AddSubnetIdsT = Aws::Vector<Aws::String>>
63 ModifyTransitGatewayVpcAttachmentRequest& WithAddSubnetIds(AddSubnetIdsT&& value) { SetAddSubnetIds(std::forward<AddSubnetIdsT>(value)); return *this;}
64 template<typename AddSubnetIdsT = Aws::String>
65 ModifyTransitGatewayVpcAttachmentRequest& AddAddSubnetIds(AddSubnetIdsT&& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.emplace_back(std::forward<AddSubnetIdsT>(value)); return *this; }
67
69
72 inline const Aws::Vector<Aws::String>& GetRemoveSubnetIds() const { return m_removeSubnetIds; }
73 inline bool RemoveSubnetIdsHasBeenSet() const { return m_removeSubnetIdsHasBeenSet; }
74 template<typename RemoveSubnetIdsT = Aws::Vector<Aws::String>>
75 void SetRemoveSubnetIds(RemoveSubnetIdsT&& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds = std::forward<RemoveSubnetIdsT>(value); }
76 template<typename RemoveSubnetIdsT = Aws::Vector<Aws::String>>
77 ModifyTransitGatewayVpcAttachmentRequest& WithRemoveSubnetIds(RemoveSubnetIdsT&& value) { SetRemoveSubnetIds(std::forward<RemoveSubnetIdsT>(value)); return *this;}
78 template<typename RemoveSubnetIdsT = Aws::String>
79 ModifyTransitGatewayVpcAttachmentRequest& AddRemoveSubnetIds(RemoveSubnetIdsT&& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.emplace_back(std::forward<RemoveSubnetIdsT>(value)); return *this; }
81
83
86 inline const ModifyTransitGatewayVpcAttachmentRequestOptions& GetOptions() const { return m_options; }
87 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
88 template<typename OptionsT = ModifyTransitGatewayVpcAttachmentRequestOptions>
89 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
90 template<typename OptionsT = ModifyTransitGatewayVpcAttachmentRequestOptions>
91 ModifyTransitGatewayVpcAttachmentRequest& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
93
95
101 inline bool GetDryRun() const { return m_dryRun; }
102 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
103 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
104 inline ModifyTransitGatewayVpcAttachmentRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
106 private:
107
108 Aws::String m_transitGatewayAttachmentId;
109 bool m_transitGatewayAttachmentIdHasBeenSet = false;
110
111 Aws::Vector<Aws::String> m_addSubnetIds;
112 bool m_addSubnetIdsHasBeenSet = false;
113
114 Aws::Vector<Aws::String> m_removeSubnetIds;
115 bool m_removeSubnetIdsHasBeenSet = false;
116
118 bool m_optionsHasBeenSet = false;
119
120 bool m_dryRun{false};
121 bool m_dryRunHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace EC2
126} // namespace Aws
const ModifyTransitGatewayVpcAttachmentRequestOptions & GetOptions() const
ModifyTransitGatewayVpcAttachmentRequest & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
ModifyTransitGatewayVpcAttachmentRequest & WithOptions(OptionsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyTransitGatewayVpcAttachmentRequest & AddRemoveSubnetIds(RemoveSubnetIdsT &&value)
ModifyTransitGatewayVpcAttachmentRequest & WithAddSubnetIds(AddSubnetIdsT &&value)
ModifyTransitGatewayVpcAttachmentRequest & WithRemoveSubnetIds(RemoveSubnetIdsT &&value)
ModifyTransitGatewayVpcAttachmentRequest & AddAddSubnetIds(AddSubnetIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector