/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
namespace Aws
{
namespace MediaConnect
{
namespace Model
{
/**
* Creates a new flow. The request must include one source. The request optionally
* can include outputs (up to 50) and entitlements (up to 50).See Also:
* AWS
* API Reference
*/
class CreateFlowRequest : public MediaConnectRequest
{
public:
AWS_MEDIACONNECT_API CreateFlowRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateFlow"; }
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
/**
* The Availability Zone that you want to create the flow in. These options are
* limited to the Availability Zones within the current AWS Region.
*/
inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
/**
* The Availability Zone that you want to create the flow in. These options are
* limited to the Availability Zones within the current AWS Region.
*/
inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
/**
* The Availability Zone that you want to create the flow in. These options are
* limited to the Availability Zones within the current AWS Region.
*/
inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
/**
* The Availability Zone that you want to create the flow in. These options are
* limited to the Availability Zones within the current AWS Region.
*/
inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
/**
* The Availability Zone that you want to create the flow in. These options are
* limited to the Availability Zones within the current AWS Region.
*/
inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
/**
* The Availability Zone that you want to create the flow in. These options are
* limited to the Availability Zones within the current AWS Region.
*/
inline CreateFlowRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
/**
* The Availability Zone that you want to create the flow in. These options are
* limited to the Availability Zones within the current AWS Region.
*/
inline CreateFlowRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
/**
* The Availability Zone that you want to create the flow in. These options are
* limited to the Availability Zones within the current AWS Region.
*/
inline CreateFlowRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
/**
* The entitlements that you want to grant on a flow.
*/
inline const Aws::Vector& GetEntitlements() const{ return m_entitlements; }
/**
* The entitlements that you want to grant on a flow.
*/
inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
/**
* The entitlements that you want to grant on a flow.
*/
inline void SetEntitlements(const Aws::Vector& value) { m_entitlementsHasBeenSet = true; m_entitlements = value; }
/**
* The entitlements that you want to grant on a flow.
*/
inline void SetEntitlements(Aws::Vector&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::move(value); }
/**
* The entitlements that you want to grant on a flow.
*/
inline CreateFlowRequest& WithEntitlements(const Aws::Vector& value) { SetEntitlements(value); return *this;}
/**
* The entitlements that you want to grant on a flow.
*/
inline CreateFlowRequest& WithEntitlements(Aws::Vector&& value) { SetEntitlements(std::move(value)); return *this;}
/**
* The entitlements that you want to grant on a flow.
*/
inline CreateFlowRequest& AddEntitlements(const GrantEntitlementRequest& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(value); return *this; }
/**
* The entitlements that you want to grant on a flow.
*/
inline CreateFlowRequest& AddEntitlements(GrantEntitlementRequest&& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(std::move(value)); return *this; }
/**
* The media streams that you want to add to the flow. You can associate these
* media streams with sources and outputs on the flow.
*/
inline const Aws::Vector& GetMediaStreams() const{ return m_mediaStreams; }
/**
* The media streams that you want to add to the flow. You can associate these
* media streams with sources and outputs on the flow.
*/
inline bool MediaStreamsHasBeenSet() const { return m_mediaStreamsHasBeenSet; }
/**
* The media streams that you want to add to the flow. You can associate these
* media streams with sources and outputs on the flow.
*/
inline void SetMediaStreams(const Aws::Vector& value) { m_mediaStreamsHasBeenSet = true; m_mediaStreams = value; }
/**
* The media streams that you want to add to the flow. You can associate these
* media streams with sources and outputs on the flow.
*/
inline void SetMediaStreams(Aws::Vector&& value) { m_mediaStreamsHasBeenSet = true; m_mediaStreams = std::move(value); }
/**
* The media streams that you want to add to the flow. You can associate these
* media streams with sources and outputs on the flow.
*/
inline CreateFlowRequest& WithMediaStreams(const Aws::Vector& value) { SetMediaStreams(value); return *this;}
/**
* The media streams that you want to add to the flow. You can associate these
* media streams with sources and outputs on the flow.
*/
inline CreateFlowRequest& WithMediaStreams(Aws::Vector&& value) { SetMediaStreams(std::move(value)); return *this;}
/**
* The media streams that you want to add to the flow. You can associate these
* media streams with sources and outputs on the flow.
*/
inline CreateFlowRequest& AddMediaStreams(const AddMediaStreamRequest& value) { m_mediaStreamsHasBeenSet = true; m_mediaStreams.push_back(value); return *this; }
/**
* The media streams that you want to add to the flow. You can associate these
* media streams with sources and outputs on the flow.
*/
inline CreateFlowRequest& AddMediaStreams(AddMediaStreamRequest&& value) { m_mediaStreamsHasBeenSet = true; m_mediaStreams.push_back(std::move(value)); return *this; }
/**
* The name of the flow.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the flow.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name of the flow.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name of the flow.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name of the flow.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* The name of the flow.
*/
inline CreateFlowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the flow.
*/
inline CreateFlowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the flow.
*/
inline CreateFlowRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* The outputs that you want to add to this flow.
*/
inline const Aws::Vector& GetOutputs() const{ return m_outputs; }
/**
* The outputs that you want to add to this flow.
*/
inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
/**
* The outputs that you want to add to this flow.
*/
inline void SetOutputs(const Aws::Vector& value) { m_outputsHasBeenSet = true; m_outputs = value; }
/**
* The outputs that you want to add to this flow.
*/
inline void SetOutputs(Aws::Vector&& value) { m_outputsHasBeenSet = true; m_outputs = std::move(value); }
/**
* The outputs that you want to add to this flow.
*/
inline CreateFlowRequest& WithOutputs(const Aws::Vector& value) { SetOutputs(value); return *this;}
/**
* The outputs that you want to add to this flow.
*/
inline CreateFlowRequest& WithOutputs(Aws::Vector&& value) { SetOutputs(std::move(value)); return *this;}
/**
* The outputs that you want to add to this flow.
*/
inline CreateFlowRequest& AddOutputs(const AddOutputRequest& value) { m_outputsHasBeenSet = true; m_outputs.push_back(value); return *this; }
/**
* The outputs that you want to add to this flow.
*/
inline CreateFlowRequest& AddOutputs(AddOutputRequest&& value) { m_outputsHasBeenSet = true; m_outputs.push_back(std::move(value)); return *this; }
inline const SetSourceRequest& GetSource() const{ return m_source; }
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
inline void SetSource(const SetSourceRequest& value) { m_sourceHasBeenSet = true; m_source = value; }
inline void SetSource(SetSourceRequest&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
inline CreateFlowRequest& WithSource(const SetSourceRequest& value) { SetSource(value); return *this;}
inline CreateFlowRequest& WithSource(SetSourceRequest&& value) { SetSource(std::move(value)); return *this;}
inline const FailoverConfig& GetSourceFailoverConfig() const{ return m_sourceFailoverConfig; }
inline bool SourceFailoverConfigHasBeenSet() const { return m_sourceFailoverConfigHasBeenSet; }
inline void SetSourceFailoverConfig(const FailoverConfig& value) { m_sourceFailoverConfigHasBeenSet = true; m_sourceFailoverConfig = value; }
inline void SetSourceFailoverConfig(FailoverConfig&& value) { m_sourceFailoverConfigHasBeenSet = true; m_sourceFailoverConfig = std::move(value); }
inline CreateFlowRequest& WithSourceFailoverConfig(const FailoverConfig& value) { SetSourceFailoverConfig(value); return *this;}
inline CreateFlowRequest& WithSourceFailoverConfig(FailoverConfig&& value) { SetSourceFailoverConfig(std::move(value)); return *this;}
inline const Aws::Vector& GetSources() const{ return m_sources; }
inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
inline void SetSources(const Aws::Vector& value) { m_sourcesHasBeenSet = true; m_sources = value; }
inline void SetSources(Aws::Vector&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
inline CreateFlowRequest& WithSources(const Aws::Vector& value) { SetSources(value); return *this;}
inline CreateFlowRequest& WithSources(Aws::Vector&& value) { SetSources(std::move(value)); return *this;}
inline CreateFlowRequest& AddSources(const SetSourceRequest& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
inline CreateFlowRequest& AddSources(SetSourceRequest&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
/**
* The VPC interfaces you want on the flow.
*/
inline const Aws::Vector& GetVpcInterfaces() const{ return m_vpcInterfaces; }
/**
* The VPC interfaces you want on the flow.
*/
inline bool VpcInterfacesHasBeenSet() const { return m_vpcInterfacesHasBeenSet; }
/**
* The VPC interfaces you want on the flow.
*/
inline void SetVpcInterfaces(const Aws::Vector& value) { m_vpcInterfacesHasBeenSet = true; m_vpcInterfaces = value; }
/**
* The VPC interfaces you want on the flow.
*/
inline void SetVpcInterfaces(Aws::Vector&& value) { m_vpcInterfacesHasBeenSet = true; m_vpcInterfaces = std::move(value); }
/**
* The VPC interfaces you want on the flow.
*/
inline CreateFlowRequest& WithVpcInterfaces(const Aws::Vector& value) { SetVpcInterfaces(value); return *this;}
/**
* The VPC interfaces you want on the flow.
*/
inline CreateFlowRequest& WithVpcInterfaces(Aws::Vector&& value) { SetVpcInterfaces(std::move(value)); return *this;}
/**
* The VPC interfaces you want on the flow.
*/
inline CreateFlowRequest& AddVpcInterfaces(const VpcInterfaceRequest& value) { m_vpcInterfacesHasBeenSet = true; m_vpcInterfaces.push_back(value); return *this; }
/**
* The VPC interfaces you want on the flow.
*/
inline CreateFlowRequest& AddVpcInterfaces(VpcInterfaceRequest&& value) { m_vpcInterfacesHasBeenSet = true; m_vpcInterfaces.push_back(std::move(value)); return *this; }
inline const AddMaintenance& GetMaintenance() const{ return m_maintenance; }
inline bool MaintenanceHasBeenSet() const { return m_maintenanceHasBeenSet; }
inline void SetMaintenance(const AddMaintenance& value) { m_maintenanceHasBeenSet = true; m_maintenance = value; }
inline void SetMaintenance(AddMaintenance&& value) { m_maintenanceHasBeenSet = true; m_maintenance = std::move(value); }
inline CreateFlowRequest& WithMaintenance(const AddMaintenance& value) { SetMaintenance(value); return *this;}
inline CreateFlowRequest& WithMaintenance(AddMaintenance&& value) { SetMaintenance(std::move(value)); return *this;}
private:
Aws::String m_availabilityZone;
bool m_availabilityZoneHasBeenSet = false;
Aws::Vector m_entitlements;
bool m_entitlementsHasBeenSet = false;
Aws::Vector m_mediaStreams;
bool m_mediaStreamsHasBeenSet = false;
Aws::String m_name;
bool m_nameHasBeenSet = false;
Aws::Vector m_outputs;
bool m_outputsHasBeenSet = false;
SetSourceRequest m_source;
bool m_sourceHasBeenSet = false;
FailoverConfig m_sourceFailoverConfig;
bool m_sourceFailoverConfigHasBeenSet = false;
Aws::Vector m_sources;
bool m_sourcesHasBeenSet = false;
Aws::Vector m_vpcInterfaces;
bool m_vpcInterfacesHasBeenSet = false;
AddMaintenance m_maintenance;
bool m_maintenanceHasBeenSet = false;
};
} // namespace Model
} // namespace MediaConnect
} // namespace Aws