AWS SDK for C++  1.9.72
AWS SDK for C++
ModifyTrafficMirrorFilterNetworkServicesRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace 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 "ModifyTrafficMirrorFilterNetworkServices"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetTrafficMirrorFilterId() const{ return m_trafficMirrorFilterId; }
45 
49  inline bool TrafficMirrorFilterIdHasBeenSet() const { return m_trafficMirrorFilterIdHasBeenSet; }
50 
54  inline void SetTrafficMirrorFilterId(const Aws::String& value) { m_trafficMirrorFilterIdHasBeenSet = true; m_trafficMirrorFilterId = value; }
55 
59  inline void SetTrafficMirrorFilterId(Aws::String&& value) { m_trafficMirrorFilterIdHasBeenSet = true; m_trafficMirrorFilterId = std::move(value); }
60 
64  inline void SetTrafficMirrorFilterId(const char* value) { m_trafficMirrorFilterIdHasBeenSet = true; m_trafficMirrorFilterId.assign(value); }
65 
69  inline ModifyTrafficMirrorFilterNetworkServicesRequest& WithTrafficMirrorFilterId(const Aws::String& value) { SetTrafficMirrorFilterId(value); return *this;}
70 
74  inline ModifyTrafficMirrorFilterNetworkServicesRequest& WithTrafficMirrorFilterId(Aws::String&& value) { SetTrafficMirrorFilterId(std::move(value)); return *this;}
75 
79  inline ModifyTrafficMirrorFilterNetworkServicesRequest& WithTrafficMirrorFilterId(const char* value) { SetTrafficMirrorFilterId(value); return *this;}
80 
81 
85  inline const Aws::Vector<TrafficMirrorNetworkService>& GetAddNetworkServices() const{ return m_addNetworkServices; }
86 
90  inline bool AddNetworkServicesHasBeenSet() const { return m_addNetworkServicesHasBeenSet; }
91 
95  inline void SetAddNetworkServices(const Aws::Vector<TrafficMirrorNetworkService>& value) { m_addNetworkServicesHasBeenSet = true; m_addNetworkServices = value; }
96 
100  inline void SetAddNetworkServices(Aws::Vector<TrafficMirrorNetworkService>&& value) { m_addNetworkServicesHasBeenSet = true; m_addNetworkServices = std::move(value); }
101 
106 
110  inline ModifyTrafficMirrorFilterNetworkServicesRequest& WithAddNetworkServices(Aws::Vector<TrafficMirrorNetworkService>&& value) { SetAddNetworkServices(std::move(value)); return *this;}
111 
115  inline ModifyTrafficMirrorFilterNetworkServicesRequest& AddAddNetworkServices(const TrafficMirrorNetworkService& value) { m_addNetworkServicesHasBeenSet = true; m_addNetworkServices.push_back(value); return *this; }
116 
120  inline ModifyTrafficMirrorFilterNetworkServicesRequest& AddAddNetworkServices(TrafficMirrorNetworkService&& value) { m_addNetworkServicesHasBeenSet = true; m_addNetworkServices.push_back(std::move(value)); return *this; }
121 
122 
127  inline const Aws::Vector<TrafficMirrorNetworkService>& GetRemoveNetworkServices() const{ return m_removeNetworkServices; }
128 
133  inline bool RemoveNetworkServicesHasBeenSet() const { return m_removeNetworkServicesHasBeenSet; }
134 
139  inline void SetRemoveNetworkServices(const Aws::Vector<TrafficMirrorNetworkService>& value) { m_removeNetworkServicesHasBeenSet = true; m_removeNetworkServices = value; }
140 
145  inline void SetRemoveNetworkServices(Aws::Vector<TrafficMirrorNetworkService>&& value) { m_removeNetworkServicesHasBeenSet = true; m_removeNetworkServices = std::move(value); }
146 
152 
157  inline ModifyTrafficMirrorFilterNetworkServicesRequest& WithRemoveNetworkServices(Aws::Vector<TrafficMirrorNetworkService>&& value) { SetRemoveNetworkServices(std::move(value)); return *this;}
158 
163  inline ModifyTrafficMirrorFilterNetworkServicesRequest& AddRemoveNetworkServices(const TrafficMirrorNetworkService& value) { m_removeNetworkServicesHasBeenSet = true; m_removeNetworkServices.push_back(value); return *this; }
164 
169  inline ModifyTrafficMirrorFilterNetworkServicesRequest& AddRemoveNetworkServices(TrafficMirrorNetworkService&& value) { m_removeNetworkServicesHasBeenSet = true; m_removeNetworkServices.push_back(std::move(value)); return *this; }
170 
171 
178  inline bool GetDryRun() const{ return m_dryRun; }
179 
186  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
187 
194  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
195 
202  inline ModifyTrafficMirrorFilterNetworkServicesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
203 
204  private:
205 
206  Aws::String m_trafficMirrorFilterId;
207  bool m_trafficMirrorFilterIdHasBeenSet;
208 
209  Aws::Vector<TrafficMirrorNetworkService> m_addNetworkServices;
210  bool m_addNetworkServicesHasBeenSet;
211 
212  Aws::Vector<TrafficMirrorNetworkService> m_removeNetworkServices;
213  bool m_removeNetworkServicesHasBeenSet;
214 
215  bool m_dryRun;
216  bool m_dryRunHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace EC2
221 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::WithAddNetworkServices
ModifyTrafficMirrorFilterNetworkServicesRequest & WithAddNetworkServices(Aws::Vector< TrafficMirrorNetworkService > &&value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:110
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:186
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::SetTrafficMirrorFilterId
void SetTrafficMirrorFilterId(Aws::String &&value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:59
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::SetTrafficMirrorFilterId
void SetTrafficMirrorFilterId(const Aws::String &value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:54
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:32
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::GetAddNetworkServices
const Aws::Vector< TrafficMirrorNetworkService > & GetAddNetworkServices() const
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:85
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::WithDryRun
ModifyTrafficMirrorFilterNetworkServicesRequest & WithDryRun(bool value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:202
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::AddRemoveNetworkServices
ModifyTrafficMirrorFilterNetworkServicesRequest & AddRemoveNetworkServices(TrafficMirrorNetworkService &&value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:169
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::SetRemoveNetworkServices
void SetRemoveNetworkServices(Aws::Vector< TrafficMirrorNetworkService > &&value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:145
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::SetTrafficMirrorFilterId
void SetTrafficMirrorFilterId(const char *value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:64
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::GetTrafficMirrorFilterId
const Aws::String & GetTrafficMirrorFilterId() const
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:44
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::WithAddNetworkServices
ModifyTrafficMirrorFilterNetworkServicesRequest & WithAddNetworkServices(const Aws::Vector< TrafficMirrorNetworkService > &value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:105
AWSVector.h
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::AddRemoveNetworkServices
ModifyTrafficMirrorFilterNetworkServicesRequest & AddRemoveNetworkServices(const TrafficMirrorNetworkService &value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:163
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::GetRemoveNetworkServices
const Aws::Vector< TrafficMirrorNetworkService > & GetRemoveNetworkServices() const
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:127
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:194
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::TrafficMirrorFilterIdHasBeenSet
bool TrafficMirrorFilterIdHasBeenSet() const
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:49
Aws::EC2::Model::TrafficMirrorNetworkService
TrafficMirrorNetworkService
Definition: TrafficMirrorNetworkService.h:17
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::WithTrafficMirrorFilterId
ModifyTrafficMirrorFilterNetworkServicesRequest & WithTrafficMirrorFilterId(Aws::String &&value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:74
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::AddAddNetworkServices
ModifyTrafficMirrorFilterNetworkServicesRequest & AddAddNetworkServices(TrafficMirrorNetworkService &&value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:120
EC2Request.h
AWSString.h
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::WithRemoveNetworkServices
ModifyTrafficMirrorFilterNetworkServicesRequest & WithRemoveNetworkServices(const Aws::Vector< TrafficMirrorNetworkService > &value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:151
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:24
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::SetAddNetworkServices
void SetAddNetworkServices(const Aws::Vector< TrafficMirrorNetworkService > &value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:95
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::WithRemoveNetworkServices
ModifyTrafficMirrorFilterNetworkServicesRequest & WithRemoveNetworkServices(Aws::Vector< TrafficMirrorNetworkService > &&value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:157
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::RemoveNetworkServicesHasBeenSet
bool RemoveNetworkServicesHasBeenSet() const
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:133
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:178
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::SetAddNetworkServices
void SetAddNetworkServices(Aws::Vector< TrafficMirrorNetworkService > &&value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:100
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::AddNetworkServicesHasBeenSet
bool AddNetworkServicesHasBeenSet() const
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:90
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::SetRemoveNetworkServices
void SetRemoveNetworkServices(const Aws::Vector< TrafficMirrorNetworkService > &value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:139
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::AddAddNetworkServices
ModifyTrafficMirrorFilterNetworkServicesRequest & AddAddNetworkServices(const TrafficMirrorNetworkService &value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:115
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::WithTrafficMirrorFilterId
ModifyTrafficMirrorFilterNetworkServicesRequest & WithTrafficMirrorFilterId(const char *value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:79
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::WithTrafficMirrorFilterId
ModifyTrafficMirrorFilterNetworkServicesRequest & WithTrafficMirrorFilterId(const Aws::String &value)
Definition: ModifyTrafficMirrorFilterNetworkServicesRequest.h:69
Aws::EC2::Model::ModifyTrafficMirrorFilterNetworkServicesRequest::ModifyTrafficMirrorFilterNetworkServicesRequest
ModifyTrafficMirrorFilterNetworkServicesRequest()
EC2_EXPORTS.h
TrafficMirrorNetworkService.h