AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
StartFlowCaptureRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/network-firewall/NetworkFirewallRequest.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
11#include <aws/network-firewall/model/FlowFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace NetworkFirewall {
17namespace Model {
18
22 public:
23 AWS_NETWORKFIREWALL_API StartFlowCaptureRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "StartFlowCapture"; }
30
31 AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override;
32
33 AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetFirewallArn() const { return m_firewallArn; }
40 inline bool FirewallArnHasBeenSet() const { return m_firewallArnHasBeenSet; }
41 template <typename FirewallArnT = Aws::String>
42 void SetFirewallArn(FirewallArnT&& value) {
43 m_firewallArnHasBeenSet = true;
44 m_firewallArn = std::forward<FirewallArnT>(value);
45 }
46 template <typename FirewallArnT = Aws::String>
48 SetFirewallArn(std::forward<FirewallArnT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
60 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
61 template <typename AvailabilityZoneT = Aws::String>
62 void SetAvailabilityZone(AvailabilityZoneT&& value) {
63 m_availabilityZoneHasBeenSet = true;
64 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
65 }
66 template <typename AvailabilityZoneT = Aws::String>
67 StartFlowCaptureRequest& WithAvailabilityZone(AvailabilityZoneT&& value) {
68 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
69 return *this;
70 }
72
74
82 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
83 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
84 template <typename AvailabilityZoneIdT = Aws::String>
85 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
86 m_availabilityZoneIdHasBeenSet = true;
87 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
88 }
89 template <typename AvailabilityZoneIdT = Aws::String>
90 StartFlowCaptureRequest& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
91 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetVpcEndpointAssociationArn() const { return m_vpcEndpointAssociationArn; }
101 inline bool VpcEndpointAssociationArnHasBeenSet() const { return m_vpcEndpointAssociationArnHasBeenSet; }
102 template <typename VpcEndpointAssociationArnT = Aws::String>
103 void SetVpcEndpointAssociationArn(VpcEndpointAssociationArnT&& value) {
104 m_vpcEndpointAssociationArnHasBeenSet = true;
105 m_vpcEndpointAssociationArn = std::forward<VpcEndpointAssociationArnT>(value);
106 }
107 template <typename VpcEndpointAssociationArnT = Aws::String>
108 StartFlowCaptureRequest& WithVpcEndpointAssociationArn(VpcEndpointAssociationArnT&& value) {
109 SetVpcEndpointAssociationArn(std::forward<VpcEndpointAssociationArnT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
119 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
120 template <typename VpcEndpointIdT = Aws::String>
121 void SetVpcEndpointId(VpcEndpointIdT&& value) {
122 m_vpcEndpointIdHasBeenSet = true;
123 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
124 }
125 template <typename VpcEndpointIdT = Aws::String>
127 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
128 return *this;
129 }
131
133
140 inline int GetMinimumFlowAgeInSeconds() const { return m_minimumFlowAgeInSeconds; }
141 inline bool MinimumFlowAgeInSecondsHasBeenSet() const { return m_minimumFlowAgeInSecondsHasBeenSet; }
142 inline void SetMinimumFlowAgeInSeconds(int value) {
143 m_minimumFlowAgeInSecondsHasBeenSet = true;
144 m_minimumFlowAgeInSeconds = value;
145 }
148 return *this;
149 }
151
153
157 inline const Aws::Vector<FlowFilter>& GetFlowFilters() const { return m_flowFilters; }
158 inline bool FlowFiltersHasBeenSet() const { return m_flowFiltersHasBeenSet; }
159 template <typename FlowFiltersT = Aws::Vector<FlowFilter>>
160 void SetFlowFilters(FlowFiltersT&& value) {
161 m_flowFiltersHasBeenSet = true;
162 m_flowFilters = std::forward<FlowFiltersT>(value);
163 }
164 template <typename FlowFiltersT = Aws::Vector<FlowFilter>>
166 SetFlowFilters(std::forward<FlowFiltersT>(value));
167 return *this;
168 }
169 template <typename FlowFiltersT = FlowFilter>
171 m_flowFiltersHasBeenSet = true;
172 m_flowFilters.emplace_back(std::forward<FlowFiltersT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_firewallArn;
178
179 Aws::String m_availabilityZone;
180
181 Aws::String m_availabilityZoneId;
182
183 Aws::String m_vpcEndpointAssociationArn;
184
185 Aws::String m_vpcEndpointId;
186
187 int m_minimumFlowAgeInSeconds{0};
188
189 Aws::Vector<FlowFilter> m_flowFilters;
190 bool m_firewallArnHasBeenSet = false;
191 bool m_availabilityZoneHasBeenSet = false;
192 bool m_availabilityZoneIdHasBeenSet = false;
193 bool m_vpcEndpointAssociationArnHasBeenSet = false;
194 bool m_vpcEndpointIdHasBeenSet = false;
195 bool m_minimumFlowAgeInSecondsHasBeenSet = false;
196 bool m_flowFiltersHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace NetworkFirewall
201} // namespace Aws
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartFlowCaptureRequest & WithVpcEndpointAssociationArn(VpcEndpointAssociationArnT &&value)
const Aws::Vector< FlowFilter > & GetFlowFilters() const
AWS_NETWORKFIREWALL_API StartFlowCaptureRequest()=default
void SetVpcEndpointAssociationArn(VpcEndpointAssociationArnT &&value)
StartFlowCaptureRequest & AddFlowFilters(FlowFiltersT &&value)
StartFlowCaptureRequest & WithAvailabilityZone(AvailabilityZoneT &&value)
virtual const char * GetServiceRequestName() const override
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
StartFlowCaptureRequest & WithMinimumFlowAgeInSeconds(int value)
StartFlowCaptureRequest & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
StartFlowCaptureRequest & WithFlowFilters(FlowFiltersT &&value)
StartFlowCaptureRequest & WithVpcEndpointId(VpcEndpointIdT &&value)
StartFlowCaptureRequest & WithFirewallArn(FirewallArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector