AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetSourceIp(const Aws::String& value) { m_sourceIpHasBeenSet = true; m_sourceIp = value; }
51 inline void SetSourceIp(Aws::String&& value) { m_sourceIpHasBeenSet = true; m_sourceIp = std::move(value); }
52 inline void SetSourceIp(const char* value) { m_sourceIpHasBeenSet = true; m_sourceIp.assign(value); }
53 inline CreateNetworkInsightsPathRequest& WithSourceIp(const Aws::String& value) { SetSourceIp(value); return *this;}
54 inline CreateNetworkInsightsPathRequest& WithSourceIp(Aws::String&& value) { SetSourceIp(std::move(value)); return *this;}
55 inline CreateNetworkInsightsPathRequest& WithSourceIp(const char* value) { SetSourceIp(value); return *this;}
57
59
62 inline const Aws::String& GetDestinationIp() const{ return m_destinationIp; }
63 inline bool DestinationIpHasBeenSet() const { return m_destinationIpHasBeenSet; }
64 inline void SetDestinationIp(const Aws::String& value) { m_destinationIpHasBeenSet = true; m_destinationIp = value; }
65 inline void SetDestinationIp(Aws::String&& value) { m_destinationIpHasBeenSet = true; m_destinationIp = std::move(value); }
66 inline void SetDestinationIp(const char* value) { m_destinationIpHasBeenSet = true; m_destinationIp.assign(value); }
68 inline CreateNetworkInsightsPathRequest& WithDestinationIp(Aws::String&& value) { SetDestinationIp(std::move(value)); return *this;}
69 inline CreateNetworkInsightsPathRequest& WithDestinationIp(const char* value) { SetDestinationIp(value); return *this;}
71
73
77 inline const Aws::String& GetSource() const{ return m_source; }
78 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
79 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
80 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
81 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
82 inline CreateNetworkInsightsPathRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
83 inline CreateNetworkInsightsPathRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
84 inline CreateNetworkInsightsPathRequest& WithSource(const char* value) { SetSource(value); return *this;}
86
88
92 inline const Aws::String& GetDestination() const{ return m_destination; }
93 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
94 inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
95 inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
96 inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
97 inline CreateNetworkInsightsPathRequest& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
98 inline CreateNetworkInsightsPathRequest& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
99 inline CreateNetworkInsightsPathRequest& WithDestination(const char* value) { SetDestination(value); return *this;}
101
103
106 inline const Protocol& GetProtocol() const{ return m_protocol; }
107 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
108 inline void SetProtocol(const Protocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
109 inline void SetProtocol(Protocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
110 inline CreateNetworkInsightsPathRequest& WithProtocol(const Protocol& value) { SetProtocol(value); return *this;}
111 inline CreateNetworkInsightsPathRequest& WithProtocol(Protocol&& value) { SetProtocol(std::move(value)); return *this;}
113
115
118 inline int GetDestinationPort() const{ return m_destinationPort; }
119 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
120 inline void SetDestinationPort(int value) { m_destinationPortHasBeenSet = true; m_destinationPort = value; }
123
125
128 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
129 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
130 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
131 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
134 inline CreateNetworkInsightsPathRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
135 inline CreateNetworkInsightsPathRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
137
139
145 inline bool GetDryRun() const{ return m_dryRun; }
146 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
147 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
148 inline CreateNetworkInsightsPathRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
150
152
158 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
159 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
160 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
161 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
162 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
163 inline CreateNetworkInsightsPathRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
164 inline CreateNetworkInsightsPathRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
165 inline CreateNetworkInsightsPathRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
167
169
174 inline const PathRequestFilter& GetFilterAtSource() const{ return m_filterAtSource; }
175 inline bool FilterAtSourceHasBeenSet() const { return m_filterAtSourceHasBeenSet; }
176 inline void SetFilterAtSource(const PathRequestFilter& value) { m_filterAtSourceHasBeenSet = true; m_filterAtSource = value; }
177 inline void SetFilterAtSource(PathRequestFilter&& value) { m_filterAtSourceHasBeenSet = true; m_filterAtSource = std::move(value); }
181
183
188 inline const PathRequestFilter& GetFilterAtDestination() const{ return m_filterAtDestination; }
189 inline bool FilterAtDestinationHasBeenSet() const { return m_filterAtDestinationHasBeenSet; }
190 inline void SetFilterAtDestination(const PathRequestFilter& value) { m_filterAtDestinationHasBeenSet = true; m_filterAtDestination = value; }
191 inline void SetFilterAtDestination(PathRequestFilter&& value) { m_filterAtDestinationHasBeenSet = true; m_filterAtDestination = std::move(value); }
195 private:
196
197 Aws::String m_sourceIp;
198 bool m_sourceIpHasBeenSet = false;
199
200 Aws::String m_destinationIp;
201 bool m_destinationIpHasBeenSet = false;
202
203 Aws::String m_source;
204 bool m_sourceHasBeenSet = false;
205
206 Aws::String m_destination;
207 bool m_destinationHasBeenSet = false;
208
209 Protocol m_protocol;
210 bool m_protocolHasBeenSet = false;
211
212 int m_destinationPort;
213 bool m_destinationPortHasBeenSet = false;
214
215 Aws::Vector<TagSpecification> m_tagSpecifications;
216 bool m_tagSpecificationsHasBeenSet = false;
217
218 bool m_dryRun;
219 bool m_dryRunHasBeenSet = false;
220
221 Aws::String m_clientToken;
222 bool m_clientTokenHasBeenSet = false;
223
224 PathRequestFilter m_filterAtSource;
225 bool m_filterAtSourceHasBeenSet = false;
226
227 PathRequestFilter m_filterAtDestination;
228 bool m_filterAtDestinationHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace EC2
233} // namespace Aws
CreateNetworkInsightsPathRequest & WithDestinationIp(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateNetworkInsightsPathRequest & WithSource(Aws::String &&value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateNetworkInsightsPathRequest & WithDestinationIp(const char *value)
CreateNetworkInsightsPathRequest & WithProtocol(const Protocol &value)
CreateNetworkInsightsPathRequest & WithDestinationPort(int value)
CreateNetworkInsightsPathRequest & WithClientToken(const char *value)
CreateNetworkInsightsPathRequest & WithSourceIp(const char *value)
CreateNetworkInsightsPathRequest & AddTagSpecifications(TagSpecification &&value)
CreateNetworkInsightsPathRequest & AddTagSpecifications(const TagSpecification &value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateNetworkInsightsPathRequest & WithDestination(const Aws::String &value)
CreateNetworkInsightsPathRequest & WithFilterAtSource(PathRequestFilter &&value)
CreateNetworkInsightsPathRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateNetworkInsightsPathRequest & WithFilterAtDestination(const PathRequestFilter &value)
CreateNetworkInsightsPathRequest & WithDestination(const char *value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateNetworkInsightsPathRequest & WithSourceIp(Aws::String &&value)
CreateNetworkInsightsPathRequest & WithFilterAtSource(const PathRequestFilter &value)
CreateNetworkInsightsPathRequest & WithSource(const char *value)
CreateNetworkInsightsPathRequest & WithClientToken(const Aws::String &value)
CreateNetworkInsightsPathRequest & WithSource(const Aws::String &value)
CreateNetworkInsightsPathRequest & WithClientToken(Aws::String &&value)
CreateNetworkInsightsPathRequest & WithDestinationIp(Aws::String &&value)
CreateNetworkInsightsPathRequest & WithDestination(Aws::String &&value)
CreateNetworkInsightsPathRequest & WithProtocol(Protocol &&value)
CreateNetworkInsightsPathRequest & WithFilterAtDestination(PathRequestFilter &&value)
CreateNetworkInsightsPathRequest & WithDryRun(bool value)
CreateNetworkInsightsPathRequest & WithSourceIp(const Aws::String &value)
CreateNetworkInsightsPathRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector