AWS SDK for C++  1.9.71
AWS SDK for C++
AcceptVpcEndpointConnectionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "AcceptVpcEndpointConnections"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
46  inline bool GetDryRun() const{ return m_dryRun; }
47 
54  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
55 
62  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
63 
70  inline AcceptVpcEndpointConnectionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
71 
72 
76  inline const Aws::String& GetServiceId() const{ return m_serviceId; }
77 
81  inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
82 
86  inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
87 
91  inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
92 
96  inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
97 
101  inline AcceptVpcEndpointConnectionsRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
102 
106  inline AcceptVpcEndpointConnectionsRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
107 
111  inline AcceptVpcEndpointConnectionsRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;}
112 
113 
117  inline const Aws::Vector<Aws::String>& GetVpcEndpointIds() const{ return m_vpcEndpointIds; }
118 
122  inline bool VpcEndpointIdsHasBeenSet() const { return m_vpcEndpointIdsHasBeenSet; }
123 
127  inline void SetVpcEndpointIds(const Aws::Vector<Aws::String>& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds = value; }
128 
132  inline void SetVpcEndpointIds(Aws::Vector<Aws::String>&& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds = std::move(value); }
133 
137  inline AcceptVpcEndpointConnectionsRequest& WithVpcEndpointIds(const Aws::Vector<Aws::String>& value) { SetVpcEndpointIds(value); return *this;}
138 
142  inline AcceptVpcEndpointConnectionsRequest& WithVpcEndpointIds(Aws::Vector<Aws::String>&& value) { SetVpcEndpointIds(std::move(value)); return *this;}
143 
147  inline AcceptVpcEndpointConnectionsRequest& AddVpcEndpointIds(const Aws::String& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(value); return *this; }
148 
152  inline AcceptVpcEndpointConnectionsRequest& AddVpcEndpointIds(Aws::String&& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(std::move(value)); return *this; }
153 
157  inline AcceptVpcEndpointConnectionsRequest& AddVpcEndpointIds(const char* value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(value); return *this; }
158 
159  private:
160 
161  bool m_dryRun;
162  bool m_dryRunHasBeenSet;
163 
164  Aws::String m_serviceId;
165  bool m_serviceIdHasBeenSet;
166 
167  Aws::Vector<Aws::String> m_vpcEndpointIds;
168  bool m_vpcEndpointIdsHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace EC2
173 } // namespace Aws
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::SetVpcEndpointIds
void SetVpcEndpointIds(const Aws::Vector< Aws::String > &value)
Definition: AcceptVpcEndpointConnectionsRequest.h:127
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::SetServiceId
void SetServiceId(Aws::String &&value)
Definition: AcceptVpcEndpointConnectionsRequest.h:91
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::GetDryRun
bool GetDryRun() const
Definition: AcceptVpcEndpointConnectionsRequest.h:46
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::WithServiceId
AcceptVpcEndpointConnectionsRequest & WithServiceId(Aws::String &&value)
Definition: AcceptVpcEndpointConnectionsRequest.h:106
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::WithVpcEndpointIds
AcceptVpcEndpointConnectionsRequest & WithVpcEndpointIds(Aws::Vector< Aws::String > &&value)
Definition: AcceptVpcEndpointConnectionsRequest.h:142
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::WithServiceId
AcceptVpcEndpointConnectionsRequest & WithServiceId(const char *value)
Definition: AcceptVpcEndpointConnectionsRequest.h:111
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::WithVpcEndpointIds
AcceptVpcEndpointConnectionsRequest & WithVpcEndpointIds(const Aws::Vector< Aws::String > &value)
Definition: AcceptVpcEndpointConnectionsRequest.h:137
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::SetServiceId
void SetServiceId(const Aws::String &value)
Definition: AcceptVpcEndpointConnectionsRequest.h:86
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::GetServiceId
const Aws::String & GetServiceId() const
Definition: AcceptVpcEndpointConnectionsRequest.h:76
AWSVector.h
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::GetVpcEndpointIds
const Aws::Vector< Aws::String > & GetVpcEndpointIds() const
Definition: AcceptVpcEndpointConnectionsRequest.h:117
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::VpcEndpointIdsHasBeenSet
bool VpcEndpointIdsHasBeenSet() const
Definition: AcceptVpcEndpointConnectionsRequest.h:122
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::AcceptVpcEndpointConnectionsRequest
AcceptVpcEndpointConnectionsRequest()
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::SetServiceId
void SetServiceId(const char *value)
Definition: AcceptVpcEndpointConnectionsRequest.h:96
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::SetVpcEndpointIds
void SetVpcEndpointIds(Aws::Vector< Aws::String > &&value)
Definition: AcceptVpcEndpointConnectionsRequest.h:132
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::ServiceIdHasBeenSet
bool ServiceIdHasBeenSet() const
Definition: AcceptVpcEndpointConnectionsRequest.h:81
EC2Request.h
AWSString.h
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: AcceptVpcEndpointConnectionsRequest.h:54
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::SetDryRun
void SetDryRun(bool value)
Definition: AcceptVpcEndpointConnectionsRequest.h:62
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::AddVpcEndpointIds
AcceptVpcEndpointConnectionsRequest & AddVpcEndpointIds(Aws::String &&value)
Definition: AcceptVpcEndpointConnectionsRequest.h:152
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AcceptVpcEndpointConnectionsRequest.h:31
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::AddVpcEndpointIds
AcceptVpcEndpointConnectionsRequest & AddVpcEndpointIds(const Aws::String &value)
Definition: AcceptVpcEndpointConnectionsRequest.h:147
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::AddVpcEndpointIds
AcceptVpcEndpointConnectionsRequest & AddVpcEndpointIds(const char *value)
Definition: AcceptVpcEndpointConnectionsRequest.h:157
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::WithServiceId
AcceptVpcEndpointConnectionsRequest & WithServiceId(const Aws::String &value)
Definition: AcceptVpcEndpointConnectionsRequest.h:101
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::WithDryRun
AcceptVpcEndpointConnectionsRequest & WithDryRun(bool value)
Definition: AcceptVpcEndpointConnectionsRequest.h:70
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest
Definition: AcceptVpcEndpointConnectionsRequest.h:23
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::AcceptVpcEndpointConnectionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2_EXPORTS.h