AWS SDK for C++  1.8.7
AWS SDK for C++
CreateVpcEndpointConnectionNotificationRequest.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 "CreateVpcEndpointConnectionNotification"; }
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 CreateVpcEndpointConnectionNotificationRequest& 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 CreateVpcEndpointConnectionNotificationRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
102 
106  inline CreateVpcEndpointConnectionNotificationRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
107 
111  inline CreateVpcEndpointConnectionNotificationRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;}
112 
113 
117  inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; }
118 
122  inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
123 
127  inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; }
128 
132  inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); }
133 
137  inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); }
138 
142  inline CreateVpcEndpointConnectionNotificationRequest& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;}
143 
147  inline CreateVpcEndpointConnectionNotificationRequest& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;}
148 
152  inline CreateVpcEndpointConnectionNotificationRequest& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;}
153 
154 
158  inline const Aws::String& GetConnectionNotificationArn() const{ return m_connectionNotificationArn; }
159 
163  inline bool ConnectionNotificationArnHasBeenSet() const { return m_connectionNotificationArnHasBeenSet; }
164 
168  inline void SetConnectionNotificationArn(const Aws::String& value) { m_connectionNotificationArnHasBeenSet = true; m_connectionNotificationArn = value; }
169 
173  inline void SetConnectionNotificationArn(Aws::String&& value) { m_connectionNotificationArnHasBeenSet = true; m_connectionNotificationArn = std::move(value); }
174 
178  inline void SetConnectionNotificationArn(const char* value) { m_connectionNotificationArnHasBeenSet = true; m_connectionNotificationArn.assign(value); }
179 
183  inline CreateVpcEndpointConnectionNotificationRequest& WithConnectionNotificationArn(const Aws::String& value) { SetConnectionNotificationArn(value); return *this;}
184 
188  inline CreateVpcEndpointConnectionNotificationRequest& WithConnectionNotificationArn(Aws::String&& value) { SetConnectionNotificationArn(std::move(value)); return *this;}
189 
193  inline CreateVpcEndpointConnectionNotificationRequest& WithConnectionNotificationArn(const char* value) { SetConnectionNotificationArn(value); return *this;}
194 
195 
201  inline const Aws::Vector<Aws::String>& GetConnectionEvents() const{ return m_connectionEvents; }
202 
208  inline bool ConnectionEventsHasBeenSet() const { return m_connectionEventsHasBeenSet; }
209 
215  inline void SetConnectionEvents(const Aws::Vector<Aws::String>& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents = value; }
216 
222  inline void SetConnectionEvents(Aws::Vector<Aws::String>&& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents = std::move(value); }
223 
229  inline CreateVpcEndpointConnectionNotificationRequest& WithConnectionEvents(const Aws::Vector<Aws::String>& value) { SetConnectionEvents(value); return *this;}
230 
236  inline CreateVpcEndpointConnectionNotificationRequest& WithConnectionEvents(Aws::Vector<Aws::String>&& value) { SetConnectionEvents(std::move(value)); return *this;}
237 
243  inline CreateVpcEndpointConnectionNotificationRequest& AddConnectionEvents(const Aws::String& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.push_back(value); return *this; }
244 
250  inline CreateVpcEndpointConnectionNotificationRequest& AddConnectionEvents(Aws::String&& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.push_back(std::move(value)); return *this; }
251 
257  inline CreateVpcEndpointConnectionNotificationRequest& AddConnectionEvents(const char* value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.push_back(value); return *this; }
258 
259 
266  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
267 
274  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
275 
282  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
283 
290  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
291 
298  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
299 
306  inline CreateVpcEndpointConnectionNotificationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
307 
314  inline CreateVpcEndpointConnectionNotificationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
315 
322  inline CreateVpcEndpointConnectionNotificationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
323 
324  private:
325 
326  bool m_dryRun;
327  bool m_dryRunHasBeenSet;
328 
329  Aws::String m_serviceId;
330  bool m_serviceIdHasBeenSet;
331 
332  Aws::String m_vpcEndpointId;
333  bool m_vpcEndpointIdHasBeenSet;
334 
335  Aws::String m_connectionNotificationArn;
336  bool m_connectionNotificationArnHasBeenSet;
337 
338  Aws::Vector<Aws::String> m_connectionEvents;
339  bool m_connectionEventsHasBeenSet;
340 
341  Aws::String m_clientToken;
342  bool m_clientTokenHasBeenSet;
343  };
344 
345 } // namespace Model
346 } // namespace EC2
347 } // namespace Aws
CreateVpcEndpointConnectionNotificationRequest & WithConnectionEvents(const Aws::Vector< Aws::String > &value)
CreateVpcEndpointConnectionNotificationRequest & WithConnectionNotificationArn(const Aws::String &value)
CreateVpcEndpointConnectionNotificationRequest & WithConnectionNotificationArn(Aws::String &&value)
CreateVpcEndpointConnectionNotificationRequest & WithConnectionNotificationArn(const char *value)
CreateVpcEndpointConnectionNotificationRequest & AddConnectionEvents(const char *value)
CreateVpcEndpointConnectionNotificationRequest & WithVpcEndpointId(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateVpcEndpointConnectionNotificationRequest & WithClientToken(const char *value)
CreateVpcEndpointConnectionNotificationRequest & WithVpcEndpointId(const Aws::String &value)
CreateVpcEndpointConnectionNotificationRequest & AddConnectionEvents(const Aws::String &value)
CreateVpcEndpointConnectionNotificationRequest & AddConnectionEvents(Aws::String &&value)
CreateVpcEndpointConnectionNotificationRequest & WithClientToken(const Aws::String &value)
CreateVpcEndpointConnectionNotificationRequest & WithConnectionEvents(Aws::Vector< Aws::String > &&value)
CreateVpcEndpointConnectionNotificationRequest & WithServiceId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateVpcEndpointConnectionNotificationRequest & WithServiceId(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
CreateVpcEndpointConnectionNotificationRequest & WithServiceId(const Aws::String &value)
CreateVpcEndpointConnectionNotificationRequest & WithClientToken(Aws::String &&value)
CreateVpcEndpointConnectionNotificationRequest & WithVpcEndpointId(const char *value)