AWS SDK for C++  1.9.70
AWS SDK for C++
RejectVpcEndpointConnectionsRequest.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 "RejectVpcEndpointConnections"; }
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 RejectVpcEndpointConnectionsRequest& 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 RejectVpcEndpointConnectionsRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
102 
106  inline RejectVpcEndpointConnectionsRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
107 
111  inline RejectVpcEndpointConnectionsRequest& 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 RejectVpcEndpointConnectionsRequest& WithVpcEndpointIds(const Aws::Vector<Aws::String>& value) { SetVpcEndpointIds(value); return *this;}
138 
142  inline RejectVpcEndpointConnectionsRequest& WithVpcEndpointIds(Aws::Vector<Aws::String>&& value) { SetVpcEndpointIds(std::move(value)); return *this;}
143 
147  inline RejectVpcEndpointConnectionsRequest& AddVpcEndpointIds(const Aws::String& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(value); return *this; }
148 
152  inline RejectVpcEndpointConnectionsRequest& AddVpcEndpointIds(Aws::String&& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(std::move(value)); return *this; }
153 
157  inline RejectVpcEndpointConnectionsRequest& 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::RejectVpcEndpointConnectionsRequest
Definition: RejectVpcEndpointConnectionsRequest.h:23
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: RejectVpcEndpointConnectionsRequest.h:54
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::WithServiceId
RejectVpcEndpointConnectionsRequest & WithServiceId(const Aws::String &value)
Definition: RejectVpcEndpointConnectionsRequest.h:101
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::AddVpcEndpointIds
RejectVpcEndpointConnectionsRequest & AddVpcEndpointIds(Aws::String &&value)
Definition: RejectVpcEndpointConnectionsRequest.h:152
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::WithDryRun
RejectVpcEndpointConnectionsRequest & WithDryRun(bool value)
Definition: RejectVpcEndpointConnectionsRequest.h:70
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::WithServiceId
RejectVpcEndpointConnectionsRequest & WithServiceId(Aws::String &&value)
Definition: RejectVpcEndpointConnectionsRequest.h:106
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::WithServiceId
RejectVpcEndpointConnectionsRequest & WithServiceId(const char *value)
Definition: RejectVpcEndpointConnectionsRequest.h:111
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::SetServiceId
void SetServiceId(const Aws::String &value)
Definition: RejectVpcEndpointConnectionsRequest.h:86
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::SetVpcEndpointIds
void SetVpcEndpointIds(const Aws::Vector< Aws::String > &value)
Definition: RejectVpcEndpointConnectionsRequest.h:127
AWSVector.h
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::ServiceIdHasBeenSet
bool ServiceIdHasBeenSet() const
Definition: RejectVpcEndpointConnectionsRequest.h:81
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RejectVpcEndpointConnectionsRequest.h:31
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::WithVpcEndpointIds
RejectVpcEndpointConnectionsRequest & WithVpcEndpointIds(const Aws::Vector< Aws::String > &value)
Definition: RejectVpcEndpointConnectionsRequest.h:137
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::SetDryRun
void SetDryRun(bool value)
Definition: RejectVpcEndpointConnectionsRequest.h:62
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::WithVpcEndpointIds
RejectVpcEndpointConnectionsRequest & WithVpcEndpointIds(Aws::Vector< Aws::String > &&value)
Definition: RejectVpcEndpointConnectionsRequest.h:142
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::AddVpcEndpointIds
RejectVpcEndpointConnectionsRequest & AddVpcEndpointIds(const Aws::String &value)
Definition: RejectVpcEndpointConnectionsRequest.h:147
EC2Request.h
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::SetVpcEndpointIds
void SetVpcEndpointIds(Aws::Vector< Aws::String > &&value)
Definition: RejectVpcEndpointConnectionsRequest.h:132
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::GetVpcEndpointIds
const Aws::Vector< Aws::String > & GetVpcEndpointIds() const
Definition: RejectVpcEndpointConnectionsRequest.h:117
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::SetServiceId
void SetServiceId(Aws::String &&value)
Definition: RejectVpcEndpointConnectionsRequest.h:91
AWSString.h
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::GetDryRun
bool GetDryRun() const
Definition: RejectVpcEndpointConnectionsRequest.h:46
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::VpcEndpointIdsHasBeenSet
bool VpcEndpointIdsHasBeenSet() const
Definition: RejectVpcEndpointConnectionsRequest.h:122
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::AddVpcEndpointIds
RejectVpcEndpointConnectionsRequest & AddVpcEndpointIds(const char *value)
Definition: RejectVpcEndpointConnectionsRequest.h:157
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::SetServiceId
void SetServiceId(const char *value)
Definition: RejectVpcEndpointConnectionsRequest.h:96
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::GetServiceId
const Aws::String & GetServiceId() const
Definition: RejectVpcEndpointConnectionsRequest.h:76
EC2_EXPORTS.h
Aws::EC2::Model::RejectVpcEndpointConnectionsRequest::RejectVpcEndpointConnectionsRequest
RejectVpcEndpointConnectionsRequest()