AWS SDK for C++  1.7.243
AWS SDK for C++
CreateVpcEndpointConnectionNotificationRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 
16 #pragma once
17 #include <aws/ec2/EC2_EXPORTS.h>
18 #include <aws/ec2/EC2Request.h>
21 #include <utility>
22 
23 namespace Aws
24 {
25 namespace EC2
26 {
27 namespace Model
28 {
29 
33  {
34  public:
36 
37  // Service request name is the Operation name which will send this request out,
38  // each operation should has unique request name, so that we can get operation's name from this request.
39  // Note: this is not true for response, multiple operations may have the same response name,
40  // so we can not get operation's name from response.
41  inline virtual const char* GetServiceRequestName() const override { return "CreateVpcEndpointConnectionNotification"; }
42 
43  Aws::String SerializePayload() const override;
44 
45  protected:
46  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
47 
48  public:
49 
56  inline bool GetDryRun() const{ return m_dryRun; }
57 
64  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
65 
72  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
73 
80  inline CreateVpcEndpointConnectionNotificationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
81 
82 
86  inline const Aws::String& GetServiceId() const{ return m_serviceId; }
87 
91  inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
92 
96  inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
97 
101  inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
102 
106  inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
107 
111  inline CreateVpcEndpointConnectionNotificationRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
112 
116  inline CreateVpcEndpointConnectionNotificationRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
117 
121  inline CreateVpcEndpointConnectionNotificationRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;}
122 
123 
127  inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; }
128 
132  inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
133 
137  inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; }
138 
142  inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); }
143 
147  inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); }
148 
152  inline CreateVpcEndpointConnectionNotificationRequest& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;}
153 
157  inline CreateVpcEndpointConnectionNotificationRequest& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;}
158 
162  inline CreateVpcEndpointConnectionNotificationRequest& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;}
163 
164 
168  inline const Aws::String& GetConnectionNotificationArn() const{ return m_connectionNotificationArn; }
169 
173  inline bool ConnectionNotificationArnHasBeenSet() const { return m_connectionNotificationArnHasBeenSet; }
174 
178  inline void SetConnectionNotificationArn(const Aws::String& value) { m_connectionNotificationArnHasBeenSet = true; m_connectionNotificationArn = value; }
179 
183  inline void SetConnectionNotificationArn(Aws::String&& value) { m_connectionNotificationArnHasBeenSet = true; m_connectionNotificationArn = std::move(value); }
184 
188  inline void SetConnectionNotificationArn(const char* value) { m_connectionNotificationArnHasBeenSet = true; m_connectionNotificationArn.assign(value); }
189 
193  inline CreateVpcEndpointConnectionNotificationRequest& WithConnectionNotificationArn(const Aws::String& value) { SetConnectionNotificationArn(value); return *this;}
194 
198  inline CreateVpcEndpointConnectionNotificationRequest& WithConnectionNotificationArn(Aws::String&& value) { SetConnectionNotificationArn(std::move(value)); return *this;}
199 
203  inline CreateVpcEndpointConnectionNotificationRequest& WithConnectionNotificationArn(const char* value) { SetConnectionNotificationArn(value); return *this;}
204 
205 
211  inline const Aws::Vector<Aws::String>& GetConnectionEvents() const{ return m_connectionEvents; }
212 
218  inline bool ConnectionEventsHasBeenSet() const { return m_connectionEventsHasBeenSet; }
219 
225  inline void SetConnectionEvents(const Aws::Vector<Aws::String>& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents = value; }
226 
232  inline void SetConnectionEvents(Aws::Vector<Aws::String>&& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents = std::move(value); }
233 
239  inline CreateVpcEndpointConnectionNotificationRequest& WithConnectionEvents(const Aws::Vector<Aws::String>& value) { SetConnectionEvents(value); return *this;}
240 
246  inline CreateVpcEndpointConnectionNotificationRequest& WithConnectionEvents(Aws::Vector<Aws::String>&& value) { SetConnectionEvents(std::move(value)); return *this;}
247 
253  inline CreateVpcEndpointConnectionNotificationRequest& AddConnectionEvents(const Aws::String& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.push_back(value); return *this; }
254 
260  inline CreateVpcEndpointConnectionNotificationRequest& AddConnectionEvents(Aws::String&& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.push_back(std::move(value)); return *this; }
261 
267  inline CreateVpcEndpointConnectionNotificationRequest& AddConnectionEvents(const char* value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.push_back(value); return *this; }
268 
269 
276  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
277 
284  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
285 
292  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
293 
300  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
301 
308  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
309 
316  inline CreateVpcEndpointConnectionNotificationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
317 
324  inline CreateVpcEndpointConnectionNotificationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
325 
332  inline CreateVpcEndpointConnectionNotificationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
333 
334  private:
335 
336  bool m_dryRun;
337  bool m_dryRunHasBeenSet;
338 
339  Aws::String m_serviceId;
340  bool m_serviceIdHasBeenSet;
341 
342  Aws::String m_vpcEndpointId;
343  bool m_vpcEndpointIdHasBeenSet;
344 
345  Aws::String m_connectionNotificationArn;
346  bool m_connectionNotificationArnHasBeenSet;
347 
348  Aws::Vector<Aws::String> m_connectionEvents;
349  bool m_connectionEventsHasBeenSet;
350 
351  Aws::String m_clientToken;
352  bool m_clientTokenHasBeenSet;
353  };
354 
355 } // namespace Model
356 } // namespace EC2
357 } // 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:27
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:107
CreateVpcEndpointConnectionNotificationRequest & WithServiceId(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:38
CreateVpcEndpointConnectionNotificationRequest & WithServiceId(const Aws::String &value)
CreateVpcEndpointConnectionNotificationRequest & WithClientToken(Aws::String &&value)
CreateVpcEndpointConnectionNotificationRequest & WithVpcEndpointId(const char *value)