AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTransitGatewayConnectRequest.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/ec2/model/CreateTransitGatewayConnectRequestOptions.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace 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_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
47 inline const Aws::String& GetTransportTransitGatewayAttachmentId() const{ return m_transportTransitGatewayAttachmentId; }
48 inline bool TransportTransitGatewayAttachmentIdHasBeenSet() const { return m_transportTransitGatewayAttachmentIdHasBeenSet; }
49 inline void SetTransportTransitGatewayAttachmentId(const Aws::String& value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId = value; }
50 inline void SetTransportTransitGatewayAttachmentId(Aws::String&& value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId = std::move(value); }
51 inline void SetTransportTransitGatewayAttachmentId(const char* value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId.assign(value); }
56
58
61 inline const CreateTransitGatewayConnectRequestOptions& GetOptions() const{ return m_options; }
62 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
63 inline void SetOptions(const CreateTransitGatewayConnectRequestOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
64 inline void SetOptions(CreateTransitGatewayConnectRequestOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
68
70
73 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
74 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
75 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
76 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
79 inline CreateTransitGatewayConnectRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
80 inline CreateTransitGatewayConnectRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
82
84
90 inline bool GetDryRun() const{ return m_dryRun; }
91 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
92 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
93 inline CreateTransitGatewayConnectRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
95 private:
96
97 Aws::String m_transportTransitGatewayAttachmentId;
98 bool m_transportTransitGatewayAttachmentIdHasBeenSet = false;
99
101 bool m_optionsHasBeenSet = false;
102
103 Aws::Vector<TagSpecification> m_tagSpecifications;
104 bool m_tagSpecificationsHasBeenSet = false;
105
106 bool m_dryRun;
107 bool m_dryRunHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace EC2
112} // namespace Aws
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
const CreateTransitGatewayConnectRequestOptions & GetOptions() const
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateTransitGatewayConnectRequest & AddTagSpecifications(const TagSpecification &value)
CreateTransitGatewayConnectRequest & WithTransportTransitGatewayAttachmentId(Aws::String &&value)
CreateTransitGatewayConnectRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetOptions(const CreateTransitGatewayConnectRequestOptions &value)
void SetOptions(CreateTransitGatewayConnectRequestOptions &&value)
CreateTransitGatewayConnectRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateTransitGatewayConnectRequest & AddTagSpecifications(TagSpecification &&value)
CreateTransitGatewayConnectRequest & WithOptions(const CreateTransitGatewayConnectRequestOptions &value)
CreateTransitGatewayConnectRequest & WithTransportTransitGatewayAttachmentId(const Aws::String &value)
CreateTransitGatewayConnectRequest & WithOptions(CreateTransitGatewayConnectRequestOptions &&value)
CreateTransitGatewayConnectRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateTransitGatewayConnectRequest & WithTransportTransitGatewayAttachmentId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector