AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateNetworkInsightsPathRequest.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/ec2/model/Protocol.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/PathRequestFilter.h>
13#include <aws/ec2/model/TagSpecification.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace EC2
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_EC2_API CreateNetworkInsightsPathRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateNetworkInsightsPath"; }
36
37 AWS_EC2_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
48 inline const Aws::String& GetSourceIp() const { return m_sourceIp; }
49 inline bool SourceIpHasBeenSet() const { return m_sourceIpHasBeenSet; }
50 template<typename SourceIpT = Aws::String>
51 void SetSourceIp(SourceIpT&& value) { m_sourceIpHasBeenSet = true; m_sourceIp = std::forward<SourceIpT>(value); }
52 template<typename SourceIpT = Aws::String>
53 CreateNetworkInsightsPathRequest& WithSourceIp(SourceIpT&& value) { SetSourceIp(std::forward<SourceIpT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDestinationIp() const { return m_destinationIp; }
61 inline bool DestinationIpHasBeenSet() const { return m_destinationIpHasBeenSet; }
62 template<typename DestinationIpT = Aws::String>
63 void SetDestinationIp(DestinationIpT&& value) { m_destinationIpHasBeenSet = true; m_destinationIp = std::forward<DestinationIpT>(value); }
64 template<typename DestinationIpT = Aws::String>
65 CreateNetworkInsightsPathRequest& WithDestinationIp(DestinationIpT&& value) { SetDestinationIp(std::forward<DestinationIpT>(value)); return *this;}
67
69
73 inline const Aws::String& GetSource() const { return m_source; }
74 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
75 template<typename SourceT = Aws::String>
76 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
77 template<typename SourceT = Aws::String>
78 CreateNetworkInsightsPathRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
80
82
86 inline const Aws::String& GetDestination() const { return m_destination; }
87 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
88 template<typename DestinationT = Aws::String>
89 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
90 template<typename DestinationT = Aws::String>
91 CreateNetworkInsightsPathRequest& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
93
95
98 inline Protocol GetProtocol() const { return m_protocol; }
99 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
100 inline void SetProtocol(Protocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
103
105
108 inline int GetDestinationPort() const { return m_destinationPort; }
109 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
110 inline void SetDestinationPort(int value) { m_destinationPortHasBeenSet = true; m_destinationPort = value; }
113
115
118 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
119 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
120 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
121 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
122 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
123 CreateNetworkInsightsPathRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
124 template<typename TagSpecificationsT = TagSpecification>
125 CreateNetworkInsightsPathRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
127
129
135 inline bool GetDryRun() const { return m_dryRun; }
136 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
137 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
138 inline CreateNetworkInsightsPathRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
140
142
148 inline const Aws::String& GetClientToken() const { return m_clientToken; }
149 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
150 template<typename ClientTokenT = Aws::String>
151 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
152 template<typename ClientTokenT = Aws::String>
153 CreateNetworkInsightsPathRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
155
157
162 inline const PathRequestFilter& GetFilterAtSource() const { return m_filterAtSource; }
163 inline bool FilterAtSourceHasBeenSet() const { return m_filterAtSourceHasBeenSet; }
164 template<typename FilterAtSourceT = PathRequestFilter>
165 void SetFilterAtSource(FilterAtSourceT&& value) { m_filterAtSourceHasBeenSet = true; m_filterAtSource = std::forward<FilterAtSourceT>(value); }
166 template<typename FilterAtSourceT = PathRequestFilter>
167 CreateNetworkInsightsPathRequest& WithFilterAtSource(FilterAtSourceT&& value) { SetFilterAtSource(std::forward<FilterAtSourceT>(value)); return *this;}
169
171
176 inline const PathRequestFilter& GetFilterAtDestination() const { return m_filterAtDestination; }
177 inline bool FilterAtDestinationHasBeenSet() const { return m_filterAtDestinationHasBeenSet; }
178 template<typename FilterAtDestinationT = PathRequestFilter>
179 void SetFilterAtDestination(FilterAtDestinationT&& value) { m_filterAtDestinationHasBeenSet = true; m_filterAtDestination = std::forward<FilterAtDestinationT>(value); }
180 template<typename FilterAtDestinationT = PathRequestFilter>
181 CreateNetworkInsightsPathRequest& WithFilterAtDestination(FilterAtDestinationT&& value) { SetFilterAtDestination(std::forward<FilterAtDestinationT>(value)); return *this;}
183 private:
184
185 Aws::String m_sourceIp;
186 bool m_sourceIpHasBeenSet = false;
187
188 Aws::String m_destinationIp;
189 bool m_destinationIpHasBeenSet = false;
190
191 Aws::String m_source;
192 bool m_sourceHasBeenSet = false;
193
194 Aws::String m_destination;
195 bool m_destinationHasBeenSet = false;
196
197 Protocol m_protocol{Protocol::NOT_SET};
198 bool m_protocolHasBeenSet = false;
199
200 int m_destinationPort{0};
201 bool m_destinationPortHasBeenSet = false;
202
203 Aws::Vector<TagSpecification> m_tagSpecifications;
204 bool m_tagSpecificationsHasBeenSet = false;
205
206 bool m_dryRun{false};
207 bool m_dryRunHasBeenSet = false;
208
210 bool m_clientTokenHasBeenSet = true;
211
212 PathRequestFilter m_filterAtSource;
213 bool m_filterAtSourceHasBeenSet = false;
214
215 PathRequestFilter m_filterAtDestination;
216 bool m_filterAtDestinationHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace EC2
221} // namespace Aws
CreateNetworkInsightsPathRequest & WithFilterAtSource(FilterAtSourceT &&value)
CreateNetworkInsightsPathRequest & AddTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateNetworkInsightsPathRequest & WithSourceIp(SourceIpT &&value)
CreateNetworkInsightsPathRequest & WithDestinationPort(int value)
CreateNetworkInsightsPathRequest & WithSource(SourceT &&value)
CreateNetworkInsightsPathRequest & WithProtocol(Protocol value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateNetworkInsightsPathRequest & WithClientToken(ClientTokenT &&value)
CreateNetworkInsightsPathRequest & WithFilterAtDestination(FilterAtDestinationT &&value)
CreateNetworkInsightsPathRequest & WithDestinationIp(DestinationIpT &&value)
CreateNetworkInsightsPathRequest & WithTagSpecifications(TagSpecificationsT &&value)
CreateNetworkInsightsPathRequest & WithDryRun(bool value)
CreateNetworkInsightsPathRequest & WithDestination(DestinationT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector