AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateVpcEndpointConnectionNotificationRequest.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 <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace 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_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
47 inline bool GetDryRun() const { return m_dryRun; }
48 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
49 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
50 inline CreateVpcEndpointConnectionNotificationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
52
54
57 inline const Aws::String& GetServiceId() const { return m_serviceId; }
58 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
59 template<typename ServiceIdT = Aws::String>
60 void SetServiceId(ServiceIdT&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::forward<ServiceIdT>(value); }
61 template<typename ServiceIdT = Aws::String>
62 CreateVpcEndpointConnectionNotificationRequest& WithServiceId(ServiceIdT&& value) { SetServiceId(std::forward<ServiceIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
70 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
71 template<typename VpcEndpointIdT = Aws::String>
72 void SetVpcEndpointId(VpcEndpointIdT&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::forward<VpcEndpointIdT>(value); }
73 template<typename VpcEndpointIdT = Aws::String>
74 CreateVpcEndpointConnectionNotificationRequest& WithVpcEndpointId(VpcEndpointIdT&& value) { SetVpcEndpointId(std::forward<VpcEndpointIdT>(value)); return *this;}
76
78
81 inline const Aws::String& GetConnectionNotificationArn() const { return m_connectionNotificationArn; }
82 inline bool ConnectionNotificationArnHasBeenSet() const { return m_connectionNotificationArnHasBeenSet; }
83 template<typename ConnectionNotificationArnT = Aws::String>
84 void SetConnectionNotificationArn(ConnectionNotificationArnT&& value) { m_connectionNotificationArnHasBeenSet = true; m_connectionNotificationArn = std::forward<ConnectionNotificationArnT>(value); }
85 template<typename ConnectionNotificationArnT = Aws::String>
86 CreateVpcEndpointConnectionNotificationRequest& WithConnectionNotificationArn(ConnectionNotificationArnT&& value) { SetConnectionNotificationArn(std::forward<ConnectionNotificationArnT>(value)); return *this;}
88
90
95 inline const Aws::Vector<Aws::String>& GetConnectionEvents() const { return m_connectionEvents; }
96 inline bool ConnectionEventsHasBeenSet() const { return m_connectionEventsHasBeenSet; }
97 template<typename ConnectionEventsT = Aws::Vector<Aws::String>>
98 void SetConnectionEvents(ConnectionEventsT&& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents = std::forward<ConnectionEventsT>(value); }
99 template<typename ConnectionEventsT = Aws::Vector<Aws::String>>
100 CreateVpcEndpointConnectionNotificationRequest& WithConnectionEvents(ConnectionEventsT&& value) { SetConnectionEvents(std::forward<ConnectionEventsT>(value)); return *this;}
101 template<typename ConnectionEventsT = Aws::String>
102 CreateVpcEndpointConnectionNotificationRequest& AddConnectionEvents(ConnectionEventsT&& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.emplace_back(std::forward<ConnectionEventsT>(value)); return *this; }
104
106
112 inline const Aws::String& GetClientToken() const { return m_clientToken; }
113 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
114 template<typename ClientTokenT = Aws::String>
115 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
116 template<typename ClientTokenT = Aws::String>
117 CreateVpcEndpointConnectionNotificationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
119 private:
120
121 bool m_dryRun{false};
122 bool m_dryRunHasBeenSet = false;
123
124 Aws::String m_serviceId;
125 bool m_serviceIdHasBeenSet = false;
126
127 Aws::String m_vpcEndpointId;
128 bool m_vpcEndpointIdHasBeenSet = false;
129
130 Aws::String m_connectionNotificationArn;
131 bool m_connectionNotificationArnHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_connectionEvents;
134 bool m_connectionEventsHasBeenSet = false;
135
136 Aws::String m_clientToken;
137 bool m_clientTokenHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace EC2
142} // namespace Aws
CreateVpcEndpointConnectionNotificationRequest & WithServiceId(ServiceIdT &&value)
CreateVpcEndpointConnectionNotificationRequest & WithClientToken(ClientTokenT &&value)
CreateVpcEndpointConnectionNotificationRequest & AddConnectionEvents(ConnectionEventsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateVpcEndpointConnectionNotificationRequest & WithConnectionNotificationArn(ConnectionNotificationArnT &&value)
CreateVpcEndpointConnectionNotificationRequest & WithConnectionEvents(ConnectionEventsT &&value)
CreateVpcEndpointConnectionNotificationRequest & WithVpcEndpointId(VpcEndpointIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector