AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTrafficMirrorSessionRequest.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 <aws/ec2/model/TagSpecification.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateTrafficMirrorSession"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
47 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
48 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
49 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
50 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
53 inline CreateTrafficMirrorSessionRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
55
57
60 inline const Aws::String& GetTrafficMirrorTargetId() const{ return m_trafficMirrorTargetId; }
61 inline bool TrafficMirrorTargetIdHasBeenSet() const { return m_trafficMirrorTargetIdHasBeenSet; }
62 inline void SetTrafficMirrorTargetId(const Aws::String& value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId = value; }
63 inline void SetTrafficMirrorTargetId(Aws::String&& value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId = std::move(value); }
64 inline void SetTrafficMirrorTargetId(const char* value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId.assign(value); }
69
71
74 inline const Aws::String& GetTrafficMirrorFilterId() const{ return m_trafficMirrorFilterId; }
75 inline bool TrafficMirrorFilterIdHasBeenSet() const { return m_trafficMirrorFilterIdHasBeenSet; }
76 inline void SetTrafficMirrorFilterId(const Aws::String& value) { m_trafficMirrorFilterIdHasBeenSet = true; m_trafficMirrorFilterId = value; }
77 inline void SetTrafficMirrorFilterId(Aws::String&& value) { m_trafficMirrorFilterIdHasBeenSet = true; m_trafficMirrorFilterId = std::move(value); }
78 inline void SetTrafficMirrorFilterId(const char* value) { m_trafficMirrorFilterIdHasBeenSet = true; m_trafficMirrorFilterId.assign(value); }
83
85
98 inline int GetPacketLength() const{ return m_packetLength; }
99 inline bool PacketLengthHasBeenSet() const { return m_packetLengthHasBeenSet; }
100 inline void SetPacketLength(int value) { m_packetLengthHasBeenSet = true; m_packetLength = value; }
101 inline CreateTrafficMirrorSessionRequest& WithPacketLength(int value) { SetPacketLength(value); return *this;}
103
105
110 inline int GetSessionNumber() const{ return m_sessionNumber; }
111 inline bool SessionNumberHasBeenSet() const { return m_sessionNumberHasBeenSet; }
112 inline void SetSessionNumber(int value) { m_sessionNumberHasBeenSet = true; m_sessionNumber = value; }
113 inline CreateTrafficMirrorSessionRequest& WithSessionNumber(int value) { SetSessionNumber(value); return *this;}
115
117
123 inline int GetVirtualNetworkId() const{ return m_virtualNetworkId; }
124 inline bool VirtualNetworkIdHasBeenSet() const { return m_virtualNetworkIdHasBeenSet; }
125 inline void SetVirtualNetworkId(int value) { m_virtualNetworkIdHasBeenSet = true; m_virtualNetworkId = value; }
128
130
133 inline const Aws::String& GetDescription() const{ return m_description; }
134 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
135 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
136 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
137 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
139 inline CreateTrafficMirrorSessionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
140 inline CreateTrafficMirrorSessionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
142
144
147 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
148 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
149 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
150 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
153 inline CreateTrafficMirrorSessionRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
154 inline CreateTrafficMirrorSessionRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
156
158
164 inline bool GetDryRun() const{ return m_dryRun; }
165 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
166 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
167 inline CreateTrafficMirrorSessionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
169
171
177 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
178 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
179 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
180 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
181 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
183 inline CreateTrafficMirrorSessionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
184 inline CreateTrafficMirrorSessionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
186 private:
187
188 Aws::String m_networkInterfaceId;
189 bool m_networkInterfaceIdHasBeenSet = false;
190
191 Aws::String m_trafficMirrorTargetId;
192 bool m_trafficMirrorTargetIdHasBeenSet = false;
193
194 Aws::String m_trafficMirrorFilterId;
195 bool m_trafficMirrorFilterIdHasBeenSet = false;
196
197 int m_packetLength;
198 bool m_packetLengthHasBeenSet = false;
199
200 int m_sessionNumber;
201 bool m_sessionNumberHasBeenSet = false;
202
203 int m_virtualNetworkId;
204 bool m_virtualNetworkIdHasBeenSet = false;
205
206 Aws::String m_description;
207 bool m_descriptionHasBeenSet = false;
208
209 Aws::Vector<TagSpecification> m_tagSpecifications;
210 bool m_tagSpecificationsHasBeenSet = false;
211
212 bool m_dryRun;
213 bool m_dryRunHasBeenSet = false;
214
215 Aws::String m_clientToken;
216 bool m_clientTokenHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace EC2
221} // namespace Aws
CreateTrafficMirrorSessionRequest & WithDescription(const Aws::String &value)
CreateTrafficMirrorSessionRequest & WithTrafficMirrorTargetId(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateTrafficMirrorSessionRequest & WithPacketLength(int value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateTrafficMirrorSessionRequest & WithDescription(Aws::String &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateTrafficMirrorSessionRequest & WithClientToken(const Aws::String &value)
CreateTrafficMirrorSessionRequest & WithNetworkInterfaceId(Aws::String &&value)
CreateTrafficMirrorSessionRequest & AddTagSpecifications(TagSpecification &&value)
CreateTrafficMirrorSessionRequest & AddTagSpecifications(const TagSpecification &value)
CreateTrafficMirrorSessionRequest & WithTrafficMirrorFilterId(Aws::String &&value)
CreateTrafficMirrorSessionRequest & WithSessionNumber(int value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateTrafficMirrorSessionRequest & WithTrafficMirrorFilterId(const char *value)
CreateTrafficMirrorSessionRequest & WithTrafficMirrorTargetId(const char *value)
CreateTrafficMirrorSessionRequest & WithNetworkInterfaceId(const char *value)
CreateTrafficMirrorSessionRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateTrafficMirrorSessionRequest & WithVirtualNetworkId(int value)
CreateTrafficMirrorSessionRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateTrafficMirrorSessionRequest & WithTrafficMirrorTargetId(Aws::String &&value)
CreateTrafficMirrorSessionRequest & WithDescription(const char *value)
CreateTrafficMirrorSessionRequest & WithTrafficMirrorFilterId(const Aws::String &value)
CreateTrafficMirrorSessionRequest & WithClientToken(Aws::String &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateTrafficMirrorSessionRequest & WithClientToken(const char *value)
CreateTrafficMirrorSessionRequest & WithDryRun(bool value)
CreateTrafficMirrorSessionRequest & WithNetworkInterfaceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector