AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateTransitGatewayConnectRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/CreateTransitGatewayConnectRequestOptions.h>
12#include <aws/ec2/model/TagSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
23 public:
24 AWS_EC2_API CreateTransitGatewayConnectRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateTransitGatewayConnect"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
43 inline const Aws::String& GetTransportTransitGatewayAttachmentId() const { return m_transportTransitGatewayAttachmentId; }
44 inline bool TransportTransitGatewayAttachmentIdHasBeenSet() const { return m_transportTransitGatewayAttachmentIdHasBeenSet; }
45 template <typename TransportTransitGatewayAttachmentIdT = Aws::String>
46 void SetTransportTransitGatewayAttachmentId(TransportTransitGatewayAttachmentIdT&& value) {
47 m_transportTransitGatewayAttachmentIdHasBeenSet = true;
48 m_transportTransitGatewayAttachmentId = std::forward<TransportTransitGatewayAttachmentIdT>(value);
49 }
50 template <typename TransportTransitGatewayAttachmentIdT = Aws::String>
51 CreateTransitGatewayConnectRequest& WithTransportTransitGatewayAttachmentId(TransportTransitGatewayAttachmentIdT&& value) {
52 SetTransportTransitGatewayAttachmentId(std::forward<TransportTransitGatewayAttachmentIdT>(value));
53 return *this;
54 }
56
58
61 inline const CreateTransitGatewayConnectRequestOptions& GetOptions() const { return m_options; }
62 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
63 template <typename OptionsT = CreateTransitGatewayConnectRequestOptions>
64 void SetOptions(OptionsT&& value) {
65 m_optionsHasBeenSet = true;
66 m_options = std::forward<OptionsT>(value);
67 }
68 template <typename OptionsT = CreateTransitGatewayConnectRequestOptions>
70 SetOptions(std::forward<OptionsT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
80 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
81 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
82 void SetTagSpecifications(TagSpecificationsT&& value) {
83 m_tagSpecificationsHasBeenSet = true;
84 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
85 }
86 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
88 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
89 return *this;
90 }
91 template <typename TagSpecificationsT = TagSpecification>
93 m_tagSpecificationsHasBeenSet = true;
94 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
95 return *this;
96 }
98
100
106 inline bool GetDryRun() const { return m_dryRun; }
107 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
108 inline void SetDryRun(bool value) {
109 m_dryRunHasBeenSet = true;
110 m_dryRun = value;
111 }
113 SetDryRun(value);
114 return *this;
115 }
117 private:
118 Aws::String m_transportTransitGatewayAttachmentId;
119
121
122 Aws::Vector<TagSpecification> m_tagSpecifications;
123
124 bool m_dryRun{false};
125 bool m_transportTransitGatewayAttachmentIdHasBeenSet = false;
126 bool m_optionsHasBeenSet = false;
127 bool m_tagSpecificationsHasBeenSet = false;
128 bool m_dryRunHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace EC2
133} // namespace Aws
CreateTransitGatewayConnectRequest & AddTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
const CreateTransitGatewayConnectRequestOptions & GetOptions() const
AWS_EC2_API Aws::String SerializePayload() const override
void SetTransportTransitGatewayAttachmentId(TransportTransitGatewayAttachmentIdT &&value)
CreateTransitGatewayConnectRequest & WithTransportTransitGatewayAttachmentId(TransportTransitGatewayAttachmentIdT &&value)
CreateTransitGatewayConnectRequest & WithOptions(OptionsT &&value)
CreateTransitGatewayConnectRequest & WithTagSpecifications(TagSpecificationsT &&value)
CreateTransitGatewayConnectRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector