AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/GrantEntitlementRequest.h>
16#include <aws/mediaconnect/model/AddMediaStreamRequest.h>
17#include <aws/mediaconnect/model/AddOutputRequest.h>
18#include <aws/mediaconnect/model/VpcInterfaceRequest.h>
19#include <utility>
20
21namespace Aws
22{
23namespace MediaConnect
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_MEDIACONNECT_API CreateFlowRequest();
39
40 // Service request name is the Operation name which will send this request out,
41 // each operation should has unique request name, so that we can get operation's name from this request.
42 // Note: this is not true for response, multiple operations may have the same response name,
43 // so we can not get operation's name from response.
44 inline virtual const char* GetServiceRequestName() const override { return "CreateFlow"; }
45
46 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
47
48
50
54 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
55 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
56 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
57 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
58 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
59 inline CreateFlowRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
60 inline CreateFlowRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
61 inline CreateFlowRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
63
65
68 inline const Aws::Vector<GrantEntitlementRequest>& GetEntitlements() const{ return m_entitlements; }
69 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
70 inline void SetEntitlements(const Aws::Vector<GrantEntitlementRequest>& value) { m_entitlementsHasBeenSet = true; m_entitlements = value; }
71 inline void SetEntitlements(Aws::Vector<GrantEntitlementRequest>&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::move(value); }
74 inline CreateFlowRequest& AddEntitlements(const GrantEntitlementRequest& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(value); return *this; }
75 inline CreateFlowRequest& AddEntitlements(GrantEntitlementRequest&& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(std::move(value)); return *this; }
77
79
83 inline const Aws::Vector<AddMediaStreamRequest>& GetMediaStreams() const{ return m_mediaStreams; }
84 inline bool MediaStreamsHasBeenSet() const { return m_mediaStreamsHasBeenSet; }
85 inline void SetMediaStreams(const Aws::Vector<AddMediaStreamRequest>& value) { m_mediaStreamsHasBeenSet = true; m_mediaStreams = value; }
86 inline void SetMediaStreams(Aws::Vector<AddMediaStreamRequest>&& value) { m_mediaStreamsHasBeenSet = true; m_mediaStreams = std::move(value); }
88 inline CreateFlowRequest& WithMediaStreams(Aws::Vector<AddMediaStreamRequest>&& value) { SetMediaStreams(std::move(value)); return *this;}
89 inline CreateFlowRequest& AddMediaStreams(const AddMediaStreamRequest& value) { m_mediaStreamsHasBeenSet = true; m_mediaStreams.push_back(value); return *this; }
90 inline CreateFlowRequest& AddMediaStreams(AddMediaStreamRequest&& value) { m_mediaStreamsHasBeenSet = true; m_mediaStreams.push_back(std::move(value)); return *this; }
92
94
97 inline const Aws::String& GetName() const{ return m_name; }
98 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
100 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
101 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
102 inline CreateFlowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
103 inline CreateFlowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
104 inline CreateFlowRequest& WithName(const char* value) { SetName(value); return *this;}
106
108
111 inline const Aws::Vector<AddOutputRequest>& GetOutputs() const{ return m_outputs; }
112 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
113 inline void SetOutputs(const Aws::Vector<AddOutputRequest>& value) { m_outputsHasBeenSet = true; m_outputs = value; }
114 inline void SetOutputs(Aws::Vector<AddOutputRequest>&& value) { m_outputsHasBeenSet = true; m_outputs = std::move(value); }
115 inline CreateFlowRequest& WithOutputs(const Aws::Vector<AddOutputRequest>& value) { SetOutputs(value); return *this;}
116 inline CreateFlowRequest& WithOutputs(Aws::Vector<AddOutputRequest>&& value) { SetOutputs(std::move(value)); return *this;}
117 inline CreateFlowRequest& AddOutputs(const AddOutputRequest& value) { m_outputsHasBeenSet = true; m_outputs.push_back(value); return *this; }
118 inline CreateFlowRequest& AddOutputs(AddOutputRequest&& value) { m_outputsHasBeenSet = true; m_outputs.push_back(std::move(value)); return *this; }
120
122
123 inline const SetSourceRequest& GetSource() const{ return m_source; }
124 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
125 inline void SetSource(const SetSourceRequest& value) { m_sourceHasBeenSet = true; m_source = value; }
126 inline void SetSource(SetSourceRequest&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
127 inline CreateFlowRequest& WithSource(const SetSourceRequest& value) { SetSource(value); return *this;}
128 inline CreateFlowRequest& WithSource(SetSourceRequest&& value) { SetSource(std::move(value)); return *this;}
130
132
133 inline const FailoverConfig& GetSourceFailoverConfig() const{ return m_sourceFailoverConfig; }
134 inline bool SourceFailoverConfigHasBeenSet() const { return m_sourceFailoverConfigHasBeenSet; }
135 inline void SetSourceFailoverConfig(const FailoverConfig& value) { m_sourceFailoverConfigHasBeenSet = true; m_sourceFailoverConfig = value; }
136 inline void SetSourceFailoverConfig(FailoverConfig&& value) { m_sourceFailoverConfigHasBeenSet = true; m_sourceFailoverConfig = std::move(value); }
138 inline CreateFlowRequest& WithSourceFailoverConfig(FailoverConfig&& value) { SetSourceFailoverConfig(std::move(value)); return *this;}
140
142
143 inline const Aws::Vector<SetSourceRequest>& GetSources() const{ return m_sources; }
144 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
145 inline void SetSources(const Aws::Vector<SetSourceRequest>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
146 inline void SetSources(Aws::Vector<SetSourceRequest>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
147 inline CreateFlowRequest& WithSources(const Aws::Vector<SetSourceRequest>& value) { SetSources(value); return *this;}
148 inline CreateFlowRequest& WithSources(Aws::Vector<SetSourceRequest>&& value) { SetSources(std::move(value)); return *this;}
149 inline CreateFlowRequest& AddSources(const SetSourceRequest& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
150 inline CreateFlowRequest& AddSources(SetSourceRequest&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(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 inline void SetVpcInterfaces(const Aws::Vector<VpcInterfaceRequest>& value) { m_vpcInterfacesHasBeenSet = true; m_vpcInterfaces = value; }
160 inline void SetVpcInterfaces(Aws::Vector<VpcInterfaceRequest>&& value) { m_vpcInterfacesHasBeenSet = true; m_vpcInterfaces = std::move(value); }
163 inline CreateFlowRequest& AddVpcInterfaces(const VpcInterfaceRequest& value) { m_vpcInterfacesHasBeenSet = true; m_vpcInterfaces.push_back(value); return *this; }
164 inline CreateFlowRequest& AddVpcInterfaces(VpcInterfaceRequest&& value) { m_vpcInterfacesHasBeenSet = true; m_vpcInterfaces.push_back(std::move(value)); return *this; }
166
168
169 inline const AddMaintenance& GetMaintenance() const{ return m_maintenance; }
170 inline bool MaintenanceHasBeenSet() const { return m_maintenanceHasBeenSet; }
171 inline void SetMaintenance(const AddMaintenance& value) { m_maintenanceHasBeenSet = true; m_maintenance = value; }
172 inline void SetMaintenance(AddMaintenance&& value) { m_maintenanceHasBeenSet = true; m_maintenance = std::move(value); }
173 inline CreateFlowRequest& WithMaintenance(const AddMaintenance& value) { SetMaintenance(value); return *this;}
174 inline CreateFlowRequest& WithMaintenance(AddMaintenance&& value) { SetMaintenance(std::move(value)); return *this;}
176
178
179 inline const MonitoringConfig& GetSourceMonitoringConfig() const{ return m_sourceMonitoringConfig; }
180 inline bool SourceMonitoringConfigHasBeenSet() const { return m_sourceMonitoringConfigHasBeenSet; }
181 inline void SetSourceMonitoringConfig(const MonitoringConfig& value) { m_sourceMonitoringConfigHasBeenSet = true; m_sourceMonitoringConfig = value; }
182 inline void SetSourceMonitoringConfig(MonitoringConfig&& value) { m_sourceMonitoringConfigHasBeenSet = true; m_sourceMonitoringConfig = std::move(value); }
186 private:
187
188 Aws::String m_availabilityZone;
189 bool m_availabilityZoneHasBeenSet = false;
190
192 bool m_entitlementsHasBeenSet = false;
193
195 bool m_mediaStreamsHasBeenSet = false;
196
197 Aws::String m_name;
198 bool m_nameHasBeenSet = false;
199
201 bool m_outputsHasBeenSet = false;
202
203 SetSourceRequest m_source;
204 bool m_sourceHasBeenSet = false;
205
206 FailoverConfig m_sourceFailoverConfig;
207 bool m_sourceFailoverConfigHasBeenSet = false;
208
210 bool m_sourcesHasBeenSet = false;
211
212 Aws::Vector<VpcInterfaceRequest> m_vpcInterfaces;
213 bool m_vpcInterfacesHasBeenSet = false;
214
215 AddMaintenance m_maintenance;
216 bool m_maintenanceHasBeenSet = false;
217
218 MonitoringConfig m_sourceMonitoringConfig;
219 bool m_sourceMonitoringConfigHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace MediaConnect
224} // namespace Aws
void SetSourceFailoverConfig(const FailoverConfig &value)
void SetEntitlements(const Aws::Vector< GrantEntitlementRequest > &value)
CreateFlowRequest & WithEntitlements(Aws::Vector< GrantEntitlementRequest > &&value)
CreateFlowRequest & WithMaintenance(AddMaintenance &&value)
void SetEntitlements(Aws::Vector< GrantEntitlementRequest > &&value)
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
CreateFlowRequest & WithSourceFailoverConfig(FailoverConfig &&value)
const Aws::Vector< AddMediaStreamRequest > & GetMediaStreams() const
CreateFlowRequest & WithAvailabilityZone(const char *value)
const Aws::Vector< GrantEntitlementRequest > & GetEntitlements() const
void SetVpcInterfaces(const Aws::Vector< VpcInterfaceRequest > &value)
const Aws::String & GetAvailabilityZone() const
void SetMediaStreams(Aws::Vector< AddMediaStreamRequest > &&value)
virtual const char * GetServiceRequestName() const override
CreateFlowRequest & WithSource(const SetSourceRequest &value)
CreateFlowRequest & WithName(Aws::String &&value)
CreateFlowRequest & WithMaintenance(const AddMaintenance &value)
CreateFlowRequest & WithOutputs(const Aws::Vector< AddOutputRequest > &value)
CreateFlowRequest & AddMediaStreams(AddMediaStreamRequest &&value)
void SetSourceMonitoringConfig(MonitoringConfig &&value)
CreateFlowRequest & WithVpcInterfaces(Aws::Vector< VpcInterfaceRequest > &&value)
CreateFlowRequest & WithEntitlements(const Aws::Vector< GrantEntitlementRequest > &value)
void SetAvailabilityZone(const Aws::String &value)
void SetSources(Aws::Vector< SetSourceRequest > &&value)
const MonitoringConfig & GetSourceMonitoringConfig() const
void SetMediaStreams(const Aws::Vector< AddMediaStreamRequest > &value)
CreateFlowRequest & AddSources(const SetSourceRequest &value)
CreateFlowRequest & WithSourceFailoverConfig(const FailoverConfig &value)
CreateFlowRequest & WithName(const Aws::String &value)
CreateFlowRequest & AddOutputs(AddOutputRequest &&value)
void SetSourceFailoverConfig(FailoverConfig &&value)
CreateFlowRequest & AddVpcInterfaces(VpcInterfaceRequest &&value)
CreateFlowRequest & WithMediaStreams(Aws::Vector< AddMediaStreamRequest > &&value)
void SetMaintenance(const AddMaintenance &value)
CreateFlowRequest & WithVpcInterfaces(const Aws::Vector< VpcInterfaceRequest > &value)
void SetSourceMonitoringConfig(const MonitoringConfig &value)
CreateFlowRequest & AddEntitlements(const GrantEntitlementRequest &value)
const Aws::Vector< VpcInterfaceRequest > & GetVpcInterfaces() const
CreateFlowRequest & AddOutputs(const AddOutputRequest &value)
const SetSourceRequest & GetSource() const
CreateFlowRequest & AddSources(SetSourceRequest &&value)
CreateFlowRequest & AddVpcInterfaces(const VpcInterfaceRequest &value)
CreateFlowRequest & WithSource(SetSourceRequest &&value)
const FailoverConfig & GetSourceFailoverConfig() const
CreateFlowRequest & WithAvailabilityZone(Aws::String &&value)
void SetVpcInterfaces(Aws::Vector< VpcInterfaceRequest > &&value)
CreateFlowRequest & WithSources(Aws::Vector< SetSourceRequest > &&value)
CreateFlowRequest & WithName(const char *value)
const Aws::Vector< SetSourceRequest > & GetSources() const
void SetOutputs(Aws::Vector< AddOutputRequest > &&value)
const AddMaintenance & GetMaintenance() const
void SetOutputs(const Aws::Vector< AddOutputRequest > &value)
const Aws::Vector< AddOutputRequest > & GetOutputs() const
CreateFlowRequest & WithAvailabilityZone(const Aws::String &value)
CreateFlowRequest & WithMediaStreams(const Aws::Vector< AddMediaStreamRequest > &value)
CreateFlowRequest & AddMediaStreams(const AddMediaStreamRequest &value)
CreateFlowRequest & WithOutputs(Aws::Vector< AddOutputRequest > &&value)
CreateFlowRequest & AddEntitlements(GrantEntitlementRequest &&value)
CreateFlowRequest & WithSourceMonitoringConfig(const MonitoringConfig &value)
CreateFlowRequest & WithSourceMonitoringConfig(MonitoringConfig &&value)
void SetSource(const SetSourceRequest &value)
void SetSources(const Aws::Vector< SetSourceRequest > &value)
CreateFlowRequest & WithSources(const Aws::Vector< SetSourceRequest > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector