AWS SDK for C++  1.9.15
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 
46  inline const Aws::String& GetSourceIp() const{ return m_sourceIp; }
47 
51  inline bool SourceIpHasBeenSet() const { return m_sourceIpHasBeenSet; }
52 
56  inline void SetSourceIp(const Aws::String& value) { m_sourceIpHasBeenSet = true; m_sourceIp = value; }
57 
61  inline void SetSourceIp(Aws::String&& value) { m_sourceIpHasBeenSet = true; m_sourceIp = std::move(value); }
62 
66  inline void SetSourceIp(const char* value) { m_sourceIpHasBeenSet = true; m_sourceIp.assign(value); }
67 
71  inline CreateNetworkInsightsPathRequest& WithSourceIp(const Aws::String& value) { SetSourceIp(value); return *this;}
72 
76  inline CreateNetworkInsightsPathRequest& WithSourceIp(Aws::String&& value) { SetSourceIp(std::move(value)); return *this;}
77 
81  inline CreateNetworkInsightsPathRequest& WithSourceIp(const char* value) { SetSourceIp(value); return *this;}
82 
83 
87  inline const Aws::String& GetDestinationIp() const{ return m_destinationIp; }
88 
92  inline bool DestinationIpHasBeenSet() const { return m_destinationIpHasBeenSet; }
93 
97  inline void SetDestinationIp(const Aws::String& value) { m_destinationIpHasBeenSet = true; m_destinationIp = value; }
98 
102  inline void SetDestinationIp(Aws::String&& value) { m_destinationIpHasBeenSet = true; m_destinationIp = std::move(value); }
103 
107  inline void SetDestinationIp(const char* value) { m_destinationIpHasBeenSet = true; m_destinationIp.assign(value); }
108 
112  inline CreateNetworkInsightsPathRequest& WithDestinationIp(const Aws::String& value) { SetDestinationIp(value); return *this;}
113 
117  inline CreateNetworkInsightsPathRequest& WithDestinationIp(Aws::String&& value) { SetDestinationIp(std::move(value)); return *this;}
118 
122  inline CreateNetworkInsightsPathRequest& WithDestinationIp(const char* value) { SetDestinationIp(value); return *this;}
123 
124 
128  inline const Aws::String& GetSource() const{ return m_source; }
129 
133  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
134 
138  inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
139 
143  inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
144 
148  inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
149 
153  inline CreateNetworkInsightsPathRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
154 
158  inline CreateNetworkInsightsPathRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
159 
163  inline CreateNetworkInsightsPathRequest& WithSource(const char* value) { SetSource(value); return *this;}
164 
165 
169  inline const Aws::String& GetDestination() const{ return m_destination; }
170 
174  inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
175 
179  inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
180 
184  inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
185 
189  inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
190 
194  inline CreateNetworkInsightsPathRequest& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
195 
199  inline CreateNetworkInsightsPathRequest& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
200 
204  inline CreateNetworkInsightsPathRequest& WithDestination(const char* value) { SetDestination(value); return *this;}
205 
206 
210  inline const Protocol& GetProtocol() const{ return m_protocol; }
211 
215  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
216 
220  inline void SetProtocol(const Protocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
221 
225  inline void SetProtocol(Protocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
226 
230  inline CreateNetworkInsightsPathRequest& WithProtocol(const Protocol& value) { SetProtocol(value); return *this;}
231 
235  inline CreateNetworkInsightsPathRequest& WithProtocol(Protocol&& value) { SetProtocol(std::move(value)); return *this;}
236 
237 
241  inline int GetDestinationPort() const{ return m_destinationPort; }
242 
246  inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
247 
251  inline void SetDestinationPort(int value) { m_destinationPortHasBeenSet = true; m_destinationPort = value; }
252 
256  inline CreateNetworkInsightsPathRequest& WithDestinationPort(int value) { SetDestinationPort(value); return *this;}
257 
258 
262  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
263 
267  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
268 
272  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
273 
277  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
278 
282  inline CreateNetworkInsightsPathRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
283 
287  inline CreateNetworkInsightsPathRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
288 
292  inline CreateNetworkInsightsPathRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
293 
297  inline CreateNetworkInsightsPathRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
298 
299 
306  inline bool GetDryRun() const{ return m_dryRun; }
307 
314  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
315 
322  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
323 
330  inline CreateNetworkInsightsPathRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
331 
332 
339  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
340 
347  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
348 
355  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
356 
363  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
364 
371  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
372 
379  inline CreateNetworkInsightsPathRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
380 
387  inline CreateNetworkInsightsPathRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
388 
395  inline CreateNetworkInsightsPathRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
396 
397  private:
398 
399  Aws::String m_sourceIp;
400  bool m_sourceIpHasBeenSet;
401 
402  Aws::String m_destinationIp;
403  bool m_destinationIpHasBeenSet;
404 
405  Aws::String m_source;
406  bool m_sourceHasBeenSet;
407 
408  Aws::String m_destination;
409  bool m_destinationHasBeenSet;
410 
411  Protocol m_protocol;
412  bool m_protocolHasBeenSet;
413 
414  int m_destinationPort;
415  bool m_destinationPortHasBeenSet;
416 
417  Aws::Vector<TagSpecification> m_tagSpecifications;
418  bool m_tagSpecificationsHasBeenSet;
419 
420  bool m_dryRun;
421  bool m_dryRunHasBeenSet;
422 
423  Aws::String m_clientToken;
424  bool m_clientTokenHasBeenSet;
425  };
426 
427 } // namespace Model
428 } // namespace EC2
429 } // namespace Aws
Aws::EC2::Model::CreateNetworkInsightsPathRequest::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:215
TagSpecification.h
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetDestinationPort
int GetDestinationPort() const
Definition: CreateNetworkInsightsPathRequest.h:241
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithSourceIp
CreateNetworkInsightsPathRequest & WithSourceIp(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:71
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetSource
void SetSource(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:138
Aws::EC2::Model::CreateNetworkInsightsPathRequest::DestinationIpHasBeenSet
bool DestinationIpHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:92
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDestinationIp
void SetDestinationIp(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:107
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithSource
CreateNetworkInsightsPathRequest & WithSource(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:163
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithClientToken
CreateNetworkInsightsPathRequest & WithClientToken(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:387
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDestination
CreateNetworkInsightsPathRequest & WithDestination(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:199
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:363
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDestinationIp
void SetDestinationIp(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:97
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:210
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:51
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateNetworkInsightsPathRequest::DestinationPortHasBeenSet
bool DestinationPortHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:246
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDestinationPort
CreateNetworkInsightsPathRequest & WithDestinationPort(int value)
Definition: CreateNetworkInsightsPathRequest.h:256
Aws::EC2::Model::CreateNetworkInsightsPathRequest::DestinationHasBeenSet
bool DestinationHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:174
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithClientToken
CreateNetworkInsightsPathRequest & WithClientToken(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:395
Aws::EC2::Model::Protocol
Protocol
Definition: Protocol.h:17
AWSVector.h
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetSource
const Aws::String & GetSource() const
Definition: CreateNetworkInsightsPathRequest.h:128
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateNetworkInsightsPathRequest.h:339
Aws::EC2::Model::CreateNetworkInsightsPathRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:314
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetSourceIp
void SetSourceIp(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:66
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithSourceIp
CreateNetworkInsightsPathRequest & WithSourceIp(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:81
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetSource
void SetSource(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:143
Aws::EC2::Model::CreateNetworkInsightsPathRequest::AddTagSpecifications
CreateNetworkInsightsPathRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateNetworkInsightsPathRequest.h:292
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDestination
CreateNetworkInsightsPathRequest & WithDestination(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:204
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:61
EC2Request.h
Aws::EC2::Model::CreateNetworkInsightsPathRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:267
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateNetworkInsightsPathRequest.h:277
AWSString.h
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithProtocol
CreateNetworkInsightsPathRequest & WithProtocol(Protocol &&value)
Definition: CreateNetworkInsightsPathRequest.h:235
Aws::EC2::Model::CreateNetworkInsightsPathRequest::AddTagSpecifications
CreateNetworkInsightsPathRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateNetworkInsightsPathRequest.h:297
Aws::EC2::Model::CreateNetworkInsightsPathRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:347
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateNetworkInsightsPathRequest.h:262
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetSource
void SetSource(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:148
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDestinationPort
void SetDestinationPort(int value)
Definition: CreateNetworkInsightsPathRequest.h:251
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDestinationIp
CreateNetworkInsightsPathRequest & WithDestinationIp(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:117
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetDestinationIp
const Aws::String & GetDestinationIp() const
Definition: CreateNetworkInsightsPathRequest.h:87
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:355
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDestination
void SetDestination(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:179
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithSource
CreateNetworkInsightsPathRequest & WithSource(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:153
Aws::EC2::Model::CreateNetworkInsightsPathRequest::CreateNetworkInsightsPathRequest
CreateNetworkInsightsPathRequest()
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:371
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithTagSpecifications
CreateNetworkInsightsPathRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateNetworkInsightsPathRequest.h:287
Aws::EC2::Model::CreateNetworkInsightsPathRequest
Definition: CreateNetworkInsightsPathRequest.h:26
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithSourceIp
CreateNetworkInsightsPathRequest & WithSourceIp(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:76
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDestination
CreateNetworkInsightsPathRequest & WithDestination(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:194
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDestination
void SetDestination(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:189
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetProtocol
void SetProtocol(const Protocol &value)
Definition: CreateNetworkInsightsPathRequest.h:220
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDryRun
CreateNetworkInsightsPathRequest & WithDryRun(bool value)
Definition: CreateNetworkInsightsPathRequest.h:330
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateNetworkInsightsPathRequest.h:272
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetProtocol
void SetProtocol(Protocol &&value)
Definition: CreateNetworkInsightsPathRequest.h:225
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetDestination
const Aws::String & GetDestination() const
Definition: CreateNetworkInsightsPathRequest.h:169
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithClientToken
CreateNetworkInsightsPathRequest & WithClientToken(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:379
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:112
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetDryRun
bool GetDryRun() const
Definition: CreateNetworkInsightsPathRequest.h:306
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithSource
CreateNetworkInsightsPathRequest & WithSource(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:158
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithDestinationIp
CreateNetworkInsightsPathRequest & WithDestinationIp(const char *value)
Definition: CreateNetworkInsightsPathRequest.h:122
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetSourceIp
void SetSourceIp(const Aws::String &value)
Definition: CreateNetworkInsightsPathRequest.h:56
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:282
Aws::EC2::Model::CreateNetworkInsightsPathRequest::WithProtocol
CreateNetworkInsightsPathRequest & WithProtocol(const Protocol &value)
Definition: CreateNetworkInsightsPathRequest.h:230
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: CreateNetworkInsightsPathRequest.h:133
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDestination
void SetDestination(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:184
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateNetworkInsightsPathRequest.h:322
Aws::EC2::Model::CreateNetworkInsightsPathRequest::SetDestinationIp
void SetDestinationIp(Aws::String &&value)
Definition: CreateNetworkInsightsPathRequest.h:102
Aws::EC2::Model::CreateNetworkInsightsPathRequest::GetSourceIp
const Aws::String & GetSourceIp() const
Definition: CreateNetworkInsightsPathRequest.h:46