AWS SDK for C++  1.9.123
AWS SDK for C++
CreateNetworkInsightsPathRequest.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>
10 #include <aws/ec2/model/Protocol.h>
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace EC2
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateNetworkInsightsPath"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
47  inline const Aws::String& GetSourceIp() const{ return m_sourceIp; }
48 
53  inline bool SourceIpHasBeenSet() const { return m_sourceIpHasBeenSet; }
54 
59  inline void SetSourceIp(const Aws::String& value) { m_sourceIpHasBeenSet = true; m_sourceIp = value; }
60 
65  inline void SetSourceIp(Aws::String&& value) { m_sourceIpHasBeenSet = true; m_sourceIp = std::move(value); }
66 
71  inline void SetSourceIp(const char* value) { m_sourceIpHasBeenSet = true; m_sourceIp.assign(value); }
72 
77  inline CreateNetworkInsightsPathRequest& WithSourceIp(const Aws::String& value) { SetSourceIp(value); return *this;}
78 
83  inline CreateNetworkInsightsPathRequest& WithSourceIp(Aws::String&& value) { SetSourceIp(std::move(value)); return *this;}
84 
89  inline CreateNetworkInsightsPathRequest& WithSourceIp(const char* value) { SetSourceIp(value); return *this;}
90 
91 
96  inline const Aws::String& GetDestinationIp() const{ return m_destinationIp; }
97 
102  inline bool DestinationIpHasBeenSet() const { return m_destinationIpHasBeenSet; }
103 
108  inline void SetDestinationIp(const Aws::String& value) { m_destinationIpHasBeenSet = true; m_destinationIp = value; }
109 
114  inline void SetDestinationIp(Aws::String&& value) { m_destinationIpHasBeenSet = true; m_destinationIp = std::move(value); }
115 
120  inline void SetDestinationIp(const char* value) { m_destinationIpHasBeenSet = true; m_destinationIp.assign(value); }
121 
126  inline CreateNetworkInsightsPathRequest& WithDestinationIp(const Aws::String& value) { SetDestinationIp(value); return *this;}
127 
132  inline CreateNetworkInsightsPathRequest& WithDestinationIp(Aws::String&& value) { SetDestinationIp(std::move(value)); return *this;}
133 
138  inline CreateNetworkInsightsPathRequest& WithDestinationIp(const char* value) { SetDestinationIp(value); return *this;}
139 
140 
144  inline const Aws::String& GetSource() const{ return m_source; }
145 
149  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
150 
154  inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
155 
159  inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
160 
164  inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
165 
169  inline CreateNetworkInsightsPathRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
170 
174  inline CreateNetworkInsightsPathRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
175 
179  inline CreateNetworkInsightsPathRequest& WithSource(const char* value) { SetSource(value); return *this;}
180 
181 
185  inline const Aws::String& GetDestination() const{ return m_destination; }
186 
190  inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
191 
195  inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
196 
200  inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
201 
205  inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
206 
210  inline CreateNetworkInsightsPathRequest& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
211 
215  inline CreateNetworkInsightsPathRequest& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
216 
220  inline CreateNetworkInsightsPathRequest& WithDestination(const char* value) { SetDestination(value); return *this;}
221 
222 
226  inline const Protocol& GetProtocol() const{ return m_protocol; }
227 
231  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
232 
236  inline void SetProtocol(const Protocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
237 
241  inline void SetProtocol(Protocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
242 
246  inline CreateNetworkInsightsPathRequest& WithProtocol(const Protocol& value) { SetProtocol(value); return *this;}
247 
251  inline CreateNetworkInsightsPathRequest& WithProtocol(Protocol&& value) { SetProtocol(std::move(value)); return *this;}
252 
253 
257  inline int GetDestinationPort() const{ return m_destinationPort; }
258 
262  inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
263 
267  inline void SetDestinationPort(int value) { m_destinationPortHasBeenSet = true; m_destinationPort = value; }
268 
272  inline CreateNetworkInsightsPathRequest& WithDestinationPort(int value) { SetDestinationPort(value); return *this;}
273 
274 
278  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
279 
283  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
284 
288  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
289 
293  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
294 
298  inline CreateNetworkInsightsPathRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
299 
303  inline CreateNetworkInsightsPathRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
304 
308  inline CreateNetworkInsightsPathRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
309 
313  inline CreateNetworkInsightsPathRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
314 
315 
322  inline bool GetDryRun() const{ return m_dryRun; }
323 
330  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
331 
338  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
339 
346  inline CreateNetworkInsightsPathRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
347 
348 
355  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
356 
363  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
364 
371  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
372 
379  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
380 
387  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
388 
395  inline CreateNetworkInsightsPathRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
396 
403  inline CreateNetworkInsightsPathRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
404 
411  inline CreateNetworkInsightsPathRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
412 
413  private:
414 
415  Aws::String m_sourceIp;
416  bool m_sourceIpHasBeenSet;
417 
418  Aws::String m_destinationIp;
419  bool m_destinationIpHasBeenSet;
420 
421  Aws::String m_source;
422  bool m_sourceHasBeenSet;
423 
424  Aws::String m_destination;
425  bool m_destinationHasBeenSet;
426 
427  Protocol m_protocol;
428  bool m_protocolHasBeenSet;
429 
430  int m_destinationPort;
431  bool m_destinationPortHasBeenSet;
432 
433  Aws::Vector<TagSpecification> m_tagSpecifications;
434  bool m_tagSpecificationsHasBeenSet;
435 
436  bool m_dryRun;
437  bool m_dryRunHasBeenSet;
438 
439  Aws::String m_clientToken;
440  bool m_clientTokenHasBeenSet;
441  };
442 
443 } // namespace Model
444 } // namespace EC2
445 } // namespace Aws
Aws::EC2::Model::CreateNetworkInsightsPathRequest::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:231
TagSpecification.h
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetDestinationPort
int GetDestinationPort() const
Definition: CreateNetworkInsightsPathRequest.h:257
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithSourceIp
CreateNetworkInsightsPathRequest & WithSourceIp(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:77
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetSource
void SetSource(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:154
Aws::EC2::Model::CreateNetworkInsightsPathRequest::DestinationIpHasBeenSet
bool DestinationIpHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:102
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDestinationIp
void SetDestinationIp(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:120
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithSource
CreateNetworkInsightsPathRequest & WithSource(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:179
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithClientToken
CreateNetworkInsightsPathRequest & WithClientToken(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:403
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDestination
CreateNetworkInsightsPathRequest & WithDestination(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:215
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:379
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDestinationIp
void SetDestinationIp(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:108
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetProtocol
const Protocol & GetProtocol() const
Definition: CreateNetworkInsightsPathRequest.h:226
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateNetworkInsightsPathRequest.h:34
Protocol.h
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SourceIpHasBeenSet
bool SourceIpHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:53
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateNetworkInsightsPathRequest::DestinationPortHasBeenSet
bool DestinationPortHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:262
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDestinationPort
CreateNetworkInsightsPathRequest & WithDestinationPort(int value)
Definition: CreateNetworkInsightsPathRequest.h:272
Aws::EC2::Model::CreateNetworkInsightsPathRequest::DestinationHasBeenSet
bool DestinationHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:190
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithClientToken
CreateNetworkInsightsPathRequest & WithClientToken(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:411
Aws::EC2::Model::Protocol
Protocol
Definition: Protocol.h:17
AWSVector.h
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetSource
const Aws::String & GetSource() const
Definition: CreateNetworkInsightsPathRequest.h:144
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateNetworkInsightsPathRequest.h:355
Aws::EC2::Model::CreateNetworkInsightsPathRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:330
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetSourceIp
void SetSourceIp(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:71
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithSourceIp
CreateNetworkInsightsPathRequest & WithSourceIp(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:89
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetSource
void SetSource(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:159
Aws::EC2::Model::CreateNetworkInsightsPathRequest::AddTagSpecifications
CreateNetworkInsightsPathRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateNetworkInsightsPathRequest.h:308
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDestination
CreateNetworkInsightsPathRequest & WithDestination(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:220
Aws::EC2::Model::CreateNetworkInsightsPathRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetSourceIp
void SetSourceIp(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:65
EC2Request.h
Aws::EC2::Model::CreateNetworkInsightsPathRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:283
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateNetworkInsightsPathRequest.h:293
AWSString.h
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithProtocol
CreateNetworkInsightsPathRequest & WithProtocol(Protocol &&value)
Definition: CreateNetworkInsightsPathRequest.h:251
Aws::EC2::Model::CreateNetworkInsightsPathRequest::AddTagSpecifications
CreateNetworkInsightsPathRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateNetworkInsightsPathRequest.h:313
Aws::EC2::Model::CreateNetworkInsightsPathRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:363
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateNetworkInsightsPathRequest.h:278
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetSource
void SetSource(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:164
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDestinationPort
void SetDestinationPort(int value)
Definition: CreateNetworkInsightsPathRequest.h:267
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDestinationIp
CreateNetworkInsightsPathRequest & WithDestinationIp(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:132
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetDestinationIp
const Aws::String & GetDestinationIp() const
Definition: CreateNetworkInsightsPathRequest.h:96
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:371
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDestination
void SetDestination(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:195
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithSource
CreateNetworkInsightsPathRequest & WithSource(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:169
Aws::EC2::Model::CreateNetworkInsightsPathRequest::CreateNetworkInsightsPathRequest
CreateNetworkInsightsPathRequest()
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:387
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithTagSpecifications
CreateNetworkInsightsPathRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateNetworkInsightsPathRequest.h:303
Aws::EC2::Model::CreateNetworkInsightsPathRequest
Definition: CreateNetworkInsightsPathRequest.h:26
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithSourceIp
CreateNetworkInsightsPathRequest & WithSourceIp(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:83
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDestination
CreateNetworkInsightsPathRequest & WithDestination(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:210
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDestination
void SetDestination(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:205
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetProtocol
void SetProtocol(const Protocol &value)
Definition: CreateNetworkInsightsPathRequest.h:236
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDryRun
CreateNetworkInsightsPathRequest & WithDryRun(bool value)
Definition: CreateNetworkInsightsPathRequest.h:346
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateNetworkInsightsPathRequest.h:288
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetProtocol
void SetProtocol(Protocol &&value)
Definition: CreateNetworkInsightsPathRequest.h:241
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetDestination
const Aws::String & GetDestination() const
Definition: CreateNetworkInsightsPathRequest.h:185
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithClientToken
CreateNetworkInsightsPathRequest & WithClientToken(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:395
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDestinationIp
CreateNetworkInsightsPathRequest & WithDestinationIp(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:126
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetDryRun
bool GetDryRun() const
Definition: CreateNetworkInsightsPathRequest.h:322
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithSource
CreateNetworkInsightsPathRequest & WithSource(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:174
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDestinationIp
CreateNetworkInsightsPathRequest & WithDestinationIp(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:138
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetSourceIp
void SetSourceIp(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:59
UUID.h
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithTagSpecifications
CreateNetworkInsightsPathRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateNetworkInsightsPathRequest.h:298
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithProtocol
CreateNetworkInsightsPathRequest & WithProtocol(const Protocol &value)
Definition: CreateNetworkInsightsPathRequest.h:246
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:149
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDestination
void SetDestination(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:200
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateNetworkInsightsPathRequest.h:338
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDestinationIp
void SetDestinationIp(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:114
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetSourceIp
const Aws::String & GetSourceIp() const
Definition: CreateNetworkInsightsPathRequest.h:47