/**
* 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 Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaConnect
{
namespace Model
{
/**
* The settings for a flow, including its source, outputs, and
* entitlements.
*/
class Flow
{
public:
AWS_MEDIACONNECT_API Flow();
AWS_MEDIACONNECT_API Flow(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIACONNECT_API Flow& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The Availability Zone that you want to create the flow in. These options are
* limited to the Availability Zones within the current AWS.
*/
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.
*/
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.
*/
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.
*/
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.
*/
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.
*/
inline Flow& 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.
*/
inline Flow& 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.
*/
inline Flow& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
/**
* A description of the flow. This value is not used or seen outside of the current
* AWS Elemental MediaConnect account.
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* A description of the flow. This value is not used or seen outside of the current
* AWS Elemental MediaConnect account.
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* A description of the flow. This value is not used or seen outside of the current
* AWS Elemental MediaConnect account.
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* A description of the flow. This value is not used or seen outside of the current
* AWS Elemental MediaConnect account.
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* A description of the flow. This value is not used or seen outside of the current
* AWS Elemental MediaConnect account.
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* A description of the flow. This value is not used or seen outside of the current
* AWS Elemental MediaConnect account.
*/
inline Flow& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* A description of the flow. This value is not used or seen outside of the current
* AWS Elemental MediaConnect account.
*/
inline Flow& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* A description of the flow. This value is not used or seen outside of the current
* AWS Elemental MediaConnect account.
*/
inline Flow& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* The IP address from which video will be sent to output destinations.
*/
inline const Aws::String& GetEgressIp() const{ return m_egressIp; }
/**
* The IP address from which video will be sent to output destinations.
*/
inline bool EgressIpHasBeenSet() const { return m_egressIpHasBeenSet; }
/**
* The IP address from which video will be sent to output destinations.
*/
inline void SetEgressIp(const Aws::String& value) { m_egressIpHasBeenSet = true; m_egressIp = value; }
/**
* The IP address from which video will be sent to output destinations.
*/
inline void SetEgressIp(Aws::String&& value) { m_egressIpHasBeenSet = true; m_egressIp = std::move(value); }
/**
* The IP address from which video will be sent to output destinations.
*/
inline void SetEgressIp(const char* value) { m_egressIpHasBeenSet = true; m_egressIp.assign(value); }
/**
* The IP address from which video will be sent to output destinations.
*/
inline Flow& WithEgressIp(const Aws::String& value) { SetEgressIp(value); return *this;}
/**
* The IP address from which video will be sent to output destinations.
*/
inline Flow& WithEgressIp(Aws::String&& value) { SetEgressIp(std::move(value)); return *this;}
/**
* The IP address from which video will be sent to output destinations.
*/
inline Flow& WithEgressIp(const char* value) { SetEgressIp(value); return *this;}
/**
* The entitlements in this flow.
*/
inline const Aws::Vector& GetEntitlements() const{ return m_entitlements; }
/**
* The entitlements in this flow.
*/
inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
/**
* The entitlements in this flow.
*/
inline void SetEntitlements(const Aws::Vector& value) { m_entitlementsHasBeenSet = true; m_entitlements = value; }
/**
* The entitlements in this flow.
*/
inline void SetEntitlements(Aws::Vector&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::move(value); }
/**
* The entitlements in this flow.
*/
inline Flow& WithEntitlements(const Aws::Vector& value) { SetEntitlements(value); return *this;}
/**
* The entitlements in this flow.
*/
inline Flow& WithEntitlements(Aws::Vector&& value) { SetEntitlements(std::move(value)); return *this;}
/**
* The entitlements in this flow.
*/
inline Flow& AddEntitlements(const Entitlement& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(value); return *this; }
/**
* The entitlements in this flow.
*/
inline Flow& AddEntitlements(Entitlement&& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(std::move(value)); return *this; }
/**
* The Amazon Resource Name (ARN) of the flow.
*/
inline const Aws::String& GetFlowArn() const{ return m_flowArn; }
/**
* The Amazon Resource Name (ARN) of the flow.
*/
inline bool FlowArnHasBeenSet() const { return m_flowArnHasBeenSet; }
/**
* The Amazon Resource Name (ARN) of the flow.
*/
inline void SetFlowArn(const Aws::String& value) { m_flowArnHasBeenSet = true; m_flowArn = value; }
/**
* The Amazon Resource Name (ARN) of the flow.
*/
inline void SetFlowArn(Aws::String&& value) { m_flowArnHasBeenSet = true; m_flowArn = std::move(value); }
/**
* The Amazon Resource Name (ARN) of the flow.
*/
inline void SetFlowArn(const char* value) { m_flowArnHasBeenSet = true; m_flowArn.assign(value); }
/**
* The Amazon Resource Name (ARN) of the flow.
*/
inline Flow& WithFlowArn(const Aws::String& value) { SetFlowArn(value); return *this;}
/**
* The Amazon Resource Name (ARN) of the flow.
*/
inline Flow& WithFlowArn(Aws::String&& value) { SetFlowArn(std::move(value)); return *this;}
/**
* The Amazon Resource Name (ARN) of the flow.
*/
inline Flow& WithFlowArn(const char* value) { SetFlowArn(value); return *this;}
/**
* The media streams that are associated with the flow. After you associate a media
* stream with a source, you can also associate it with outputs on the flow.
*/
inline const Aws::Vector& GetMediaStreams() const{ return m_mediaStreams; }
/**
* The media streams that are associated with the flow. After you associate a media
* stream with a source, you can also associate it with outputs on the flow.
*/
inline bool MediaStreamsHasBeenSet() const { return m_mediaStreamsHasBeenSet; }
/**
* The media streams that are associated with the flow. After you associate a media
* stream with a source, you can also associate it with outputs on the flow.
*/
inline void SetMediaStreams(const Aws::Vector& value) { m_mediaStreamsHasBeenSet = true; m_mediaStreams = value; }
/**
* The media streams that are associated with the flow. After you associate a media
* stream with a source, you can also associate it with outputs on the flow.
*/
inline void SetMediaStreams(Aws::Vector&& value) { m_mediaStreamsHasBeenSet = true; m_mediaStreams = std::move(value); }
/**
* The media streams that are associated with the flow. After you associate a media
* stream with a source, you can also associate it with outputs on the flow.
*/
inline Flow& WithMediaStreams(const Aws::Vector& value) { SetMediaStreams(value); return *this;}
/**
* The media streams that are associated with the flow. After you associate a media
* stream with a source, you can also associate it with outputs on the flow.
*/
inline Flow& WithMediaStreams(Aws::Vector&& value) { SetMediaStreams(std::move(value)); return *this;}
/**
* The media streams that are associated with the flow. After you associate a media
* stream with a source, you can also associate it with outputs on the flow.
*/
inline Flow& AddMediaStreams(const MediaStream& value) { m_mediaStreamsHasBeenSet = true; m_mediaStreams.push_back(value); return *this; }
/**
* The media streams that are associated with the flow. After you associate a media
* stream with a source, you can also associate it with outputs on the flow.
*/
inline Flow& AddMediaStreams(MediaStream&& 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 Flow& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the flow.
*/
inline Flow& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the flow.
*/
inline Flow& WithName(const char* value) { SetName(value); return *this;}
/**
* The outputs in this flow.
*/
inline const Aws::Vector