AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
48 inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
49 inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
54
56
60 inline const Aws::Vector<Aws::String>& GetAddSubnetIds() const{ return m_addSubnetIds; }
61 inline bool AddSubnetIdsHasBeenSet() const { return m_addSubnetIdsHasBeenSet; }
62 inline void SetAddSubnetIds(const Aws::Vector<Aws::String>& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds = value; }
63 inline void SetAddSubnetIds(Aws::Vector<Aws::String>&& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds = std::move(value); }
66 inline ModifyTransitGatewayVpcAttachmentRequest& AddAddSubnetIds(const Aws::String& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(value); return *this; }
67 inline ModifyTransitGatewayVpcAttachmentRequest& AddAddSubnetIds(Aws::String&& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(std::move(value)); return *this; }
68 inline ModifyTransitGatewayVpcAttachmentRequest& AddAddSubnetIds(const char* value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(value); return *this; }
70
72
75 inline const Aws::Vector<Aws::String>& GetRemoveSubnetIds() const{ return m_removeSubnetIds; }
76 inline bool RemoveSubnetIdsHasBeenSet() const { return m_removeSubnetIdsHasBeenSet; }
77 inline void SetRemoveSubnetIds(const Aws::Vector<Aws::String>& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds = value; }
78 inline void SetRemoveSubnetIds(Aws::Vector<Aws::String>&& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds = std::move(value); }
81 inline ModifyTransitGatewayVpcAttachmentRequest& AddRemoveSubnetIds(const Aws::String& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(value); return *this; }
82 inline ModifyTransitGatewayVpcAttachmentRequest& AddRemoveSubnetIds(Aws::String&& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(std::move(value)); return *this; }
83 inline ModifyTransitGatewayVpcAttachmentRequest& AddRemoveSubnetIds(const char* value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(value); return *this; }
85
87
90 inline const ModifyTransitGatewayVpcAttachmentRequestOptions& GetOptions() const{ return m_options; }
91 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
92 inline void SetOptions(const ModifyTransitGatewayVpcAttachmentRequestOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
93 inline void SetOptions(ModifyTransitGatewayVpcAttachmentRequestOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
97
99
105 inline bool GetDryRun() const{ return m_dryRun; }
106 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
107 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
108 inline ModifyTransitGatewayVpcAttachmentRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
110 private:
111
112 Aws::String m_transitGatewayAttachmentId;
113 bool m_transitGatewayAttachmentIdHasBeenSet = false;
114
115 Aws::Vector<Aws::String> m_addSubnetIds;
116 bool m_addSubnetIdsHasBeenSet = false;
117
118 Aws::Vector<Aws::String> m_removeSubnetIds;
119 bool m_removeSubnetIdsHasBeenSet = false;
120
122 bool m_optionsHasBeenSet = false;
123
124 bool m_dryRun;
125 bool m_dryRunHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace EC2
130} // namespace Aws
const ModifyTransitGatewayVpcAttachmentRequestOptions & GetOptions() const
ModifyTransitGatewayVpcAttachmentRequest & WithAddSubnetIds(const Aws::Vector< Aws::String > &value)
ModifyTransitGatewayVpcAttachmentRequest & AddAddSubnetIds(Aws::String &&value)
ModifyTransitGatewayVpcAttachmentRequest & WithRemoveSubnetIds(Aws::Vector< Aws::String > &&value)
ModifyTransitGatewayVpcAttachmentRequest & AddAddSubnetIds(const Aws::String &value)
ModifyTransitGatewayVpcAttachmentRequest & AddRemoveSubnetIds(const Aws::String &value)
void SetOptions(const ModifyTransitGatewayVpcAttachmentRequestOptions &value)
ModifyTransitGatewayVpcAttachmentRequest & WithTransitGatewayAttachmentId(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyTransitGatewayVpcAttachmentRequest & WithRemoveSubnetIds(const Aws::Vector< Aws::String > &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyTransitGatewayVpcAttachmentRequest & WithOptions(ModifyTransitGatewayVpcAttachmentRequestOptions &&value)
ModifyTransitGatewayVpcAttachmentRequest & AddAddSubnetIds(const char *value)
ModifyTransitGatewayVpcAttachmentRequest & WithOptions(const ModifyTransitGatewayVpcAttachmentRequestOptions &value)
ModifyTransitGatewayVpcAttachmentRequest & WithTransitGatewayAttachmentId(Aws::String &&value)
ModifyTransitGatewayVpcAttachmentRequest & WithAddSubnetIds(Aws::Vector< Aws::String > &&value)
ModifyTransitGatewayVpcAttachmentRequest & AddRemoveSubnetIds(const char *value)
ModifyTransitGatewayVpcAttachmentRequest & AddRemoveSubnetIds(Aws::String &&value)
ModifyTransitGatewayVpcAttachmentRequest & WithTransitGatewayAttachmentId(const char *value)
void SetOptions(ModifyTransitGatewayVpcAttachmentRequestOptions &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector