AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateFlowRequest.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/mediaconnect/MediaConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mediaconnect/model/SetSourceRequest.h>
12#include <aws/mediaconnect/model/FailoverConfig.h>
13#include <aws/mediaconnect/model/AddMaintenance.h>
14#include <aws/mediaconnect/model/MonitoringConfig.h>
15#include <aws/mediaconnect/model/FlowSize.h>
16#include <aws/mediaconnect/model/NdiConfig.h>
17#include <aws/mediaconnect/model/GrantEntitlementRequest.h>
18#include <aws/mediaconnect/model/AddMediaStreamRequest.h>
19#include <aws/mediaconnect/model/AddOutputRequest.h>
20#include <aws/mediaconnect/model/VpcInterfaceRequest.h>
21#include <utility>
22
23namespace Aws
24{
25namespace MediaConnect
26{
27namespace Model
28{
29
33 {
34 public:
35 AWS_MEDIACONNECT_API CreateFlowRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateFlow"; }
42
43 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
44
45
47
52 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
53 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
54 template<typename AvailabilityZoneT = Aws::String>
55 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
56 template<typename AvailabilityZoneT = Aws::String>
57 CreateFlowRequest& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
59
61
64 inline const Aws::Vector<GrantEntitlementRequest>& GetEntitlements() const { return m_entitlements; }
65 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
66 template<typename EntitlementsT = Aws::Vector<GrantEntitlementRequest>>
67 void SetEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::forward<EntitlementsT>(value); }
68 template<typename EntitlementsT = Aws::Vector<GrantEntitlementRequest>>
69 CreateFlowRequest& WithEntitlements(EntitlementsT&& value) { SetEntitlements(std::forward<EntitlementsT>(value)); return *this;}
70 template<typename EntitlementsT = GrantEntitlementRequest>
71 CreateFlowRequest& AddEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet = true; m_entitlements.emplace_back(std::forward<EntitlementsT>(value)); return *this; }
73
75
79 inline const Aws::Vector<AddMediaStreamRequest>& GetMediaStreams() const { return m_mediaStreams; }
80 inline bool MediaStreamsHasBeenSet() const { return m_mediaStreamsHasBeenSet; }
81 template<typename MediaStreamsT = Aws::Vector<AddMediaStreamRequest>>
82 void SetMediaStreams(MediaStreamsT&& value) { m_mediaStreamsHasBeenSet = true; m_mediaStreams = std::forward<MediaStreamsT>(value); }
83 template<typename MediaStreamsT = Aws::Vector<AddMediaStreamRequest>>
84 CreateFlowRequest& WithMediaStreams(MediaStreamsT&& value) { SetMediaStreams(std::forward<MediaStreamsT>(value)); return *this;}
85 template<typename MediaStreamsT = AddMediaStreamRequest>
86 CreateFlowRequest& AddMediaStreams(MediaStreamsT&& value) { m_mediaStreamsHasBeenSet = true; m_mediaStreams.emplace_back(std::forward<MediaStreamsT>(value)); return *this; }
88
90
93 inline const Aws::String& GetName() const { return m_name; }
94 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 template<typename NameT = Aws::String>
96 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
97 template<typename NameT = Aws::String>
98 CreateFlowRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
100
102
105 inline const Aws::Vector<AddOutputRequest>& GetOutputs() const { return m_outputs; }
106 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
107 template<typename OutputsT = Aws::Vector<AddOutputRequest>>
108 void SetOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs = std::forward<OutputsT>(value); }
109 template<typename OutputsT = Aws::Vector<AddOutputRequest>>
110 CreateFlowRequest& WithOutputs(OutputsT&& value) { SetOutputs(std::forward<OutputsT>(value)); return *this;}
111 template<typename OutputsT = AddOutputRequest>
112 CreateFlowRequest& AddOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs.emplace_back(std::forward<OutputsT>(value)); return *this; }
114
116
119 inline const SetSourceRequest& GetSource() const { return m_source; }
120 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
121 template<typename SourceT = SetSourceRequest>
122 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
123 template<typename SourceT = SetSourceRequest>
124 CreateFlowRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
126
128
131 inline const FailoverConfig& GetSourceFailoverConfig() const { return m_sourceFailoverConfig; }
132 inline bool SourceFailoverConfigHasBeenSet() const { return m_sourceFailoverConfigHasBeenSet; }
133 template<typename SourceFailoverConfigT = FailoverConfig>
134 void SetSourceFailoverConfig(SourceFailoverConfigT&& value) { m_sourceFailoverConfigHasBeenSet = true; m_sourceFailoverConfig = std::forward<SourceFailoverConfigT>(value); }
135 template<typename SourceFailoverConfigT = FailoverConfig>
136 CreateFlowRequest& WithSourceFailoverConfig(SourceFailoverConfigT&& value) { SetSourceFailoverConfig(std::forward<SourceFailoverConfigT>(value)); return *this;}
138
140
143 inline const Aws::Vector<SetSourceRequest>& GetSources() const { return m_sources; }
144 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
145 template<typename SourcesT = Aws::Vector<SetSourceRequest>>
146 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources = std::forward<SourcesT>(value); }
147 template<typename SourcesT = Aws::Vector<SetSourceRequest>>
148 CreateFlowRequest& WithSources(SourcesT&& value) { SetSources(std::forward<SourcesT>(value)); return *this;}
149 template<typename SourcesT = SetSourceRequest>
150 CreateFlowRequest& AddSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources.emplace_back(std::forward<SourcesT>(value)); return *this; }
152
154
157 inline const Aws::Vector<VpcInterfaceRequest>& GetVpcInterfaces() const { return m_vpcInterfaces; }
158 inline bool VpcInterfacesHasBeenSet() const { return m_vpcInterfacesHasBeenSet; }
159 template<typename VpcInterfacesT = Aws::Vector<VpcInterfaceRequest>>
160 void SetVpcInterfaces(VpcInterfacesT&& value) { m_vpcInterfacesHasBeenSet = true; m_vpcInterfaces = std::forward<VpcInterfacesT>(value); }
161 template<typename VpcInterfacesT = Aws::Vector<VpcInterfaceRequest>>
162 CreateFlowRequest& WithVpcInterfaces(VpcInterfacesT&& value) { SetVpcInterfaces(std::forward<VpcInterfacesT>(value)); return *this;}
163 template<typename VpcInterfacesT = VpcInterfaceRequest>
164 CreateFlowRequest& AddVpcInterfaces(VpcInterfacesT&& value) { m_vpcInterfacesHasBeenSet = true; m_vpcInterfaces.emplace_back(std::forward<VpcInterfacesT>(value)); return *this; }
166
168
171 inline const AddMaintenance& GetMaintenance() const { return m_maintenance; }
172 inline bool MaintenanceHasBeenSet() const { return m_maintenanceHasBeenSet; }
173 template<typename MaintenanceT = AddMaintenance>
174 void SetMaintenance(MaintenanceT&& value) { m_maintenanceHasBeenSet = true; m_maintenance = std::forward<MaintenanceT>(value); }
175 template<typename MaintenanceT = AddMaintenance>
176 CreateFlowRequest& WithMaintenance(MaintenanceT&& value) { SetMaintenance(std::forward<MaintenanceT>(value)); return *this;}
178
180
183 inline const MonitoringConfig& GetSourceMonitoringConfig() const { return m_sourceMonitoringConfig; }
184 inline bool SourceMonitoringConfigHasBeenSet() const { return m_sourceMonitoringConfigHasBeenSet; }
185 template<typename SourceMonitoringConfigT = MonitoringConfig>
186 void SetSourceMonitoringConfig(SourceMonitoringConfigT&& value) { m_sourceMonitoringConfigHasBeenSet = true; m_sourceMonitoringConfig = std::forward<SourceMonitoringConfigT>(value); }
187 template<typename SourceMonitoringConfigT = MonitoringConfig>
188 CreateFlowRequest& WithSourceMonitoringConfig(SourceMonitoringConfigT&& value) { SetSourceMonitoringConfig(std::forward<SourceMonitoringConfigT>(value)); return *this;}
190
192
197 inline FlowSize GetFlowSize() const { return m_flowSize; }
198 inline bool FlowSizeHasBeenSet() const { return m_flowSizeHasBeenSet; }
199 inline void SetFlowSize(FlowSize value) { m_flowSizeHasBeenSet = true; m_flowSize = value; }
200 inline CreateFlowRequest& WithFlowSize(FlowSize value) { SetFlowSize(value); return *this;}
202
204
208 inline const NdiConfig& GetNdiConfig() const { return m_ndiConfig; }
209 inline bool NdiConfigHasBeenSet() const { return m_ndiConfigHasBeenSet; }
210 template<typename NdiConfigT = NdiConfig>
211 void SetNdiConfig(NdiConfigT&& value) { m_ndiConfigHasBeenSet = true; m_ndiConfig = std::forward<NdiConfigT>(value); }
212 template<typename NdiConfigT = NdiConfig>
213 CreateFlowRequest& WithNdiConfig(NdiConfigT&& value) { SetNdiConfig(std::forward<NdiConfigT>(value)); return *this;}
215 private:
216
217 Aws::String m_availabilityZone;
218 bool m_availabilityZoneHasBeenSet = false;
219
221 bool m_entitlementsHasBeenSet = false;
222
224 bool m_mediaStreamsHasBeenSet = false;
225
226 Aws::String m_name;
227 bool m_nameHasBeenSet = false;
228
230 bool m_outputsHasBeenSet = false;
231
232 SetSourceRequest m_source;
233 bool m_sourceHasBeenSet = false;
234
235 FailoverConfig m_sourceFailoverConfig;
236 bool m_sourceFailoverConfigHasBeenSet = false;
237
239 bool m_sourcesHasBeenSet = false;
240
241 Aws::Vector<VpcInterfaceRequest> m_vpcInterfaces;
242 bool m_vpcInterfacesHasBeenSet = false;
243
244 AddMaintenance m_maintenance;
245 bool m_maintenanceHasBeenSet = false;
246
247 MonitoringConfig m_sourceMonitoringConfig;
248 bool m_sourceMonitoringConfigHasBeenSet = false;
249
250 FlowSize m_flowSize{FlowSize::NOT_SET};
251 bool m_flowSizeHasBeenSet = false;
252
253 NdiConfig m_ndiConfig;
254 bool m_ndiConfigHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace MediaConnect
259} // namespace Aws
CreateFlowRequest & AddSources(SourcesT &&value)
CreateFlowRequest & WithVpcInterfaces(VpcInterfacesT &&value)
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
const Aws::Vector< AddMediaStreamRequest > & GetMediaStreams() const
CreateFlowRequest & WithSources(SourcesT &&value)
CreateFlowRequest & WithAvailabilityZone(AvailabilityZoneT &&value)
const Aws::Vector< GrantEntitlementRequest > & GetEntitlements() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
CreateFlowRequest & WithMaintenance(MaintenanceT &&value)
const Aws::String & GetAvailabilityZone() const
CreateFlowRequest & AddEntitlements(EntitlementsT &&value)
void SetSourceMonitoringConfig(SourceMonitoringConfigT &&value)
virtual const char * GetServiceRequestName() const override
CreateFlowRequest & WithName(NameT &&value)
const MonitoringConfig & GetSourceMonitoringConfig() const
const Aws::Vector< VpcInterfaceRequest > & GetVpcInterfaces() const
CreateFlowRequest & WithMediaStreams(MediaStreamsT &&value)
CreateFlowRequest & AddMediaStreams(MediaStreamsT &&value)
CreateFlowRequest & WithSource(SourceT &&value)
CreateFlowRequest & AddOutputs(OutputsT &&value)
CreateFlowRequest & WithEntitlements(EntitlementsT &&value)
const SetSourceRequest & GetSource() const
CreateFlowRequest & WithSourceFailoverConfig(SourceFailoverConfigT &&value)
const FailoverConfig & GetSourceFailoverConfig() const
void SetVpcInterfaces(VpcInterfacesT &&value)
CreateFlowRequest & WithNdiConfig(NdiConfigT &&value)
const Aws::Vector< SetSourceRequest > & GetSources() const
CreateFlowRequest & WithSourceMonitoringConfig(SourceMonitoringConfigT &&value)
const AddMaintenance & GetMaintenance() const
void SetSourceFailoverConfig(SourceFailoverConfigT &&value)
CreateFlowRequest & AddVpcInterfaces(VpcInterfacesT &&value)
const Aws::Vector< AddOutputRequest > & GetOutputs() const
CreateFlowRequest & WithOutputs(OutputsT &&value)
CreateFlowRequest & WithFlowSize(FlowSize value)
AWS_MEDIACONNECT_API CreateFlowRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector