AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInstanceConnectEndpointRequest.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/TagSpecification.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
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 "CreateInstanceConnectEndpoint"; }
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
49 inline bool GetDryRun() const{ return m_dryRun; }
50 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
51 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 inline CreateInstanceConnectEndpointRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
54
56
60 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
61 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
62 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
63 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
64 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
65 inline CreateInstanceConnectEndpointRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
66 inline CreateInstanceConnectEndpointRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
67 inline CreateInstanceConnectEndpointRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
69
71
76 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
77 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
78 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
79 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
82 inline CreateInstanceConnectEndpointRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
83 inline CreateInstanceConnectEndpointRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
84 inline CreateInstanceConnectEndpointRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
86
88
95 inline bool GetPreserveClientIp() const{ return m_preserveClientIp; }
96 inline bool PreserveClientIpHasBeenSet() const { return m_preserveClientIpHasBeenSet; }
97 inline void SetPreserveClientIp(bool value) { m_preserveClientIpHasBeenSet = true; m_preserveClientIp = value; }
100
102
106 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
107 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
108 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
109 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
110 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
112 inline CreateInstanceConnectEndpointRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
113 inline CreateInstanceConnectEndpointRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
115
117
120 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
121 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
122 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
123 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
126 inline CreateInstanceConnectEndpointRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
127 inline CreateInstanceConnectEndpointRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
129 private:
130
131 bool m_dryRun;
132 bool m_dryRunHasBeenSet = false;
133
134 Aws::String m_subnetId;
135 bool m_subnetIdHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_securityGroupIds;
138 bool m_securityGroupIdsHasBeenSet = false;
139
140 bool m_preserveClientIp;
141 bool m_preserveClientIpHasBeenSet = false;
142
143 Aws::String m_clientToken;
144 bool m_clientTokenHasBeenSet = false;
145
146 Aws::Vector<TagSpecification> m_tagSpecifications;
147 bool m_tagSpecificationsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace EC2
152} // namespace Aws
CreateInstanceConnectEndpointRequest & WithSubnetId(const char *value)
CreateInstanceConnectEndpointRequest & WithPreserveClientIp(bool value)
CreateInstanceConnectEndpointRequest & WithSubnetId(const Aws::String &value)
CreateInstanceConnectEndpointRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateInstanceConnectEndpointRequest & AddSecurityGroupIds(Aws::String &&value)
CreateInstanceConnectEndpointRequest & AddTagSpecifications(TagSpecification &&value)
CreateInstanceConnectEndpointRequest & WithClientToken(const Aws::String &value)
CreateInstanceConnectEndpointRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateInstanceConnectEndpointRequest & AddSecurityGroupIds(const Aws::String &value)
CreateInstanceConnectEndpointRequest & WithClientToken(Aws::String &&value)
CreateInstanceConnectEndpointRequest & AddTagSpecifications(const TagSpecification &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
CreateInstanceConnectEndpointRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateInstanceConnectEndpointRequest & AddSecurityGroupIds(const char *value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateInstanceConnectEndpointRequest & WithClientToken(const char *value)
CreateInstanceConnectEndpointRequest & WithSubnetId(Aws::String &&value)
CreateInstanceConnectEndpointRequest & WithDryRun(bool value)
CreateInstanceConnectEndpointRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector