AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyTrafficMirrorSessionRequest.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/TrafficMirrorSessionField.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ModifyTrafficMirrorSession"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetTrafficMirrorSessionId() const{ return m_trafficMirrorSessionId; }
46 inline bool TrafficMirrorSessionIdHasBeenSet() const { return m_trafficMirrorSessionIdHasBeenSet; }
47 inline void SetTrafficMirrorSessionId(const Aws::String& value) { m_trafficMirrorSessionIdHasBeenSet = true; m_trafficMirrorSessionId = value; }
48 inline void SetTrafficMirrorSessionId(Aws::String&& value) { m_trafficMirrorSessionIdHasBeenSet = true; m_trafficMirrorSessionId = std::move(value); }
49 inline void SetTrafficMirrorSessionId(const char* value) { m_trafficMirrorSessionIdHasBeenSet = true; m_trafficMirrorSessionId.assign(value); }
54
56
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
95 inline int GetPacketLength() const{ return m_packetLength; }
96 inline bool PacketLengthHasBeenSet() const { return m_packetLengthHasBeenSet; }
97 inline void SetPacketLength(int value) { m_packetLengthHasBeenSet = true; m_packetLength = value; }
98 inline ModifyTrafficMirrorSessionRequest& WithPacketLength(int value) { SetPacketLength(value); return *this;}
100
102
107 inline int GetSessionNumber() const{ return m_sessionNumber; }
108 inline bool SessionNumberHasBeenSet() const { return m_sessionNumberHasBeenSet; }
109 inline void SetSessionNumber(int value) { m_sessionNumberHasBeenSet = true; m_sessionNumber = value; }
110 inline ModifyTrafficMirrorSessionRequest& WithSessionNumber(int value) { SetSessionNumber(value); return *this;}
112
114
117 inline int GetVirtualNetworkId() const{ return m_virtualNetworkId; }
118 inline bool VirtualNetworkIdHasBeenSet() const { return m_virtualNetworkIdHasBeenSet; }
119 inline void SetVirtualNetworkId(int value) { m_virtualNetworkIdHasBeenSet = true; m_virtualNetworkId = value; }
122
124
127 inline const Aws::String& GetDescription() const{ return m_description; }
128 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
129 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
130 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
131 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
133 inline ModifyTrafficMirrorSessionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
134 inline ModifyTrafficMirrorSessionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
136
138
143 inline const Aws::Vector<TrafficMirrorSessionField>& GetRemoveFields() const{ return m_removeFields; }
144 inline bool RemoveFieldsHasBeenSet() const { return m_removeFieldsHasBeenSet; }
145 inline void SetRemoveFields(const Aws::Vector<TrafficMirrorSessionField>& value) { m_removeFieldsHasBeenSet = true; m_removeFields = value; }
146 inline void SetRemoveFields(Aws::Vector<TrafficMirrorSessionField>&& value) { m_removeFieldsHasBeenSet = true; m_removeFields = std::move(value); }
149 inline ModifyTrafficMirrorSessionRequest& AddRemoveFields(const TrafficMirrorSessionField& value) { m_removeFieldsHasBeenSet = true; m_removeFields.push_back(value); return *this; }
150 inline ModifyTrafficMirrorSessionRequest& AddRemoveFields(TrafficMirrorSessionField&& value) { m_removeFieldsHasBeenSet = true; m_removeFields.push_back(std::move(value)); return *this; }
152
154
160 inline bool GetDryRun() const{ return m_dryRun; }
161 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
162 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
163 inline ModifyTrafficMirrorSessionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
165 private:
166
167 Aws::String m_trafficMirrorSessionId;
168 bool m_trafficMirrorSessionIdHasBeenSet = false;
169
170 Aws::String m_trafficMirrorTargetId;
171 bool m_trafficMirrorTargetIdHasBeenSet = false;
172
173 Aws::String m_trafficMirrorFilterId;
174 bool m_trafficMirrorFilterIdHasBeenSet = false;
175
176 int m_packetLength;
177 bool m_packetLengthHasBeenSet = false;
178
179 int m_sessionNumber;
180 bool m_sessionNumberHasBeenSet = false;
181
182 int m_virtualNetworkId;
183 bool m_virtualNetworkIdHasBeenSet = false;
184
185 Aws::String m_description;
186 bool m_descriptionHasBeenSet = false;
187
189 bool m_removeFieldsHasBeenSet = false;
190
191 bool m_dryRun;
192 bool m_dryRunHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace EC2
197} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
ModifyTrafficMirrorSessionRequest & WithTrafficMirrorFilterId(const char *value)
ModifyTrafficMirrorSessionRequest & AddRemoveFields(const TrafficMirrorSessionField &value)
ModifyTrafficMirrorSessionRequest & AddRemoveFields(TrafficMirrorSessionField &&value)
ModifyTrafficMirrorSessionRequest & WithSessionNumber(int value)
void SetRemoveFields(const Aws::Vector< TrafficMirrorSessionField > &value)
ModifyTrafficMirrorSessionRequest & WithTrafficMirrorSessionId(const Aws::String &value)
ModifyTrafficMirrorSessionRequest & WithTrafficMirrorTargetId(const Aws::String &value)
ModifyTrafficMirrorSessionRequest & WithDescription(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyTrafficMirrorSessionRequest & WithTrafficMirrorTargetId(const char *value)
ModifyTrafficMirrorSessionRequest & WithTrafficMirrorFilterId(Aws::String &&value)
ModifyTrafficMirrorSessionRequest & WithTrafficMirrorSessionId(const char *value)
ModifyTrafficMirrorSessionRequest & WithDryRun(bool value)
ModifyTrafficMirrorSessionRequest & WithTrafficMirrorTargetId(Aws::String &&value)
ModifyTrafficMirrorSessionRequest & WithDescription(const Aws::String &value)
ModifyTrafficMirrorSessionRequest & WithRemoveFields(Aws::Vector< TrafficMirrorSessionField > &&value)
ModifyTrafficMirrorSessionRequest & WithTrafficMirrorSessionId(Aws::String &&value)
ModifyTrafficMirrorSessionRequest & WithVirtualNetworkId(int value)
ModifyTrafficMirrorSessionRequest & WithTrafficMirrorFilterId(const Aws::String &value)
ModifyTrafficMirrorSessionRequest & WithDescription(Aws::String &&value)
ModifyTrafficMirrorSessionRequest & WithPacketLength(int value)
const Aws::Vector< TrafficMirrorSessionField > & GetRemoveFields() const
void SetRemoveFields(Aws::Vector< TrafficMirrorSessionField > &&value)
ModifyTrafficMirrorSessionRequest & WithRemoveFields(const Aws::Vector< TrafficMirrorSessionField > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector