/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the mediaconnect-2018-11-14.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.MediaConnect.Model
{
///
/// The settings for the source of the flow.
///
public partial class Source
{
private int? _dataTransferSubscriberFeePercent;
private Encryption _decryption;
private string _description;
private string _entitlementArn;
private GatewayBridgeSource _gatewayBridgeSource;
private string _ingestIp;
private int? _ingestPort;
private List _mediaStreamSourceConfigurations = new List();
private string _name;
private int? _senderControlPort;
private string _senderIpAddress;
private string _sourceArn;
private Transport _transport;
private string _vpcInterfaceName;
private string _whitelistCidr;
///
/// Gets and sets the property DataTransferSubscriberFeePercent. Percentage from 0-100
/// of the data transfer cost to be billed to the subscriber.
///
public int DataTransferSubscriberFeePercent
{
get { return this._dataTransferSubscriberFeePercent.GetValueOrDefault(); }
set { this._dataTransferSubscriberFeePercent = value; }
}
// Check to see if DataTransferSubscriberFeePercent property is set
internal bool IsSetDataTransferSubscriberFeePercent()
{
return this._dataTransferSubscriberFeePercent.HasValue;
}
///
/// Gets and sets the property Decryption. The type of encryption that is used on the
/// content ingested from this source.
///
public Encryption Decryption
{
get { return this._decryption; }
set { this._decryption = value; }
}
// Check to see if Decryption property is set
internal bool IsSetDecryption()
{
return this._decryption != null;
}
///
/// Gets and sets the property Description. A description for the source. This value is
/// not used or seen outside of the current AWS Elemental MediaConnect account.
///
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property EntitlementArn. The ARN of the entitlement that allows
/// you to subscribe to content that comes from another AWS account. The entitlement is
/// set by the content originator and the ARN is generated as part of the originator's
/// flow.
///
public string EntitlementArn
{
get { return this._entitlementArn; }
set { this._entitlementArn = value; }
}
// Check to see if EntitlementArn property is set
internal bool IsSetEntitlementArn()
{
return this._entitlementArn != null;
}
///
/// Gets and sets the property GatewayBridgeSource. The source configuration for cloud
/// flows receiving a stream from a bridge.
///
public GatewayBridgeSource GatewayBridgeSource
{
get { return this._gatewayBridgeSource; }
set { this._gatewayBridgeSource = value; }
}
// Check to see if GatewayBridgeSource property is set
internal bool IsSetGatewayBridgeSource()
{
return this._gatewayBridgeSource != null;
}
///
/// Gets and sets the property IngestIp. The IP address that the flow will be listening
/// on for incoming content.
///
public string IngestIp
{
get { return this._ingestIp; }
set { this._ingestIp = value; }
}
// Check to see if IngestIp property is set
internal bool IsSetIngestIp()
{
return this._ingestIp != null;
}
///
/// Gets and sets the property IngestPort. The port that the flow will be listening on
/// for incoming content.
///
public int IngestPort
{
get { return this._ingestPort.GetValueOrDefault(); }
set { this._ingestPort = value; }
}
// Check to see if IngestPort property is set
internal bool IsSetIngestPort()
{
return this._ingestPort.HasValue;
}
///
/// Gets and sets the property MediaStreamSourceConfigurations. The media streams that
/// are associated with the source, and the parameters for those associations.
///
public List MediaStreamSourceConfigurations
{
get { return this._mediaStreamSourceConfigurations; }
set { this._mediaStreamSourceConfigurations = value; }
}
// Check to see if MediaStreamSourceConfigurations property is set
internal bool IsSetMediaStreamSourceConfigurations()
{
return this._mediaStreamSourceConfigurations != null && this._mediaStreamSourceConfigurations.Count > 0;
}
///
/// Gets and sets the property Name. The name of the source.
///
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property SenderControlPort. The port that the flow uses to send
/// outbound requests to initiate connection with the sender.
///
public int SenderControlPort
{
get { return this._senderControlPort.GetValueOrDefault(); }
set { this._senderControlPort = value; }
}
// Check to see if SenderControlPort property is set
internal bool IsSetSenderControlPort()
{
return this._senderControlPort.HasValue;
}
///
/// Gets and sets the property SenderIpAddress. The IP address that the flow communicates
/// with to initiate connection with the sender.
///
public string SenderIpAddress
{
get { return this._senderIpAddress; }
set { this._senderIpAddress = value; }
}
// Check to see if SenderIpAddress property is set
internal bool IsSetSenderIpAddress()
{
return this._senderIpAddress != null;
}
///
/// Gets and sets the property SourceArn. The ARN of the source.
///
[AWSProperty(Required=true)]
public string SourceArn
{
get { return this._sourceArn; }
set { this._sourceArn = value; }
}
// Check to see if SourceArn property is set
internal bool IsSetSourceArn()
{
return this._sourceArn != null;
}
///
/// Gets and sets the property Transport. Attributes related to the transport stream that
/// are used in the source.
///
public Transport Transport
{
get { return this._transport; }
set { this._transport = value; }
}
// Check to see if Transport property is set
internal bool IsSetTransport()
{
return this._transport != null;
}
///
/// Gets and sets the property VpcInterfaceName. The name of the VPC interface that is
/// used for this source.
///
public string VpcInterfaceName
{
get { return this._vpcInterfaceName; }
set { this._vpcInterfaceName = value; }
}
// Check to see if VpcInterfaceName property is set
internal bool IsSetVpcInterfaceName()
{
return this._vpcInterfaceName != null;
}
///
/// Gets and sets the property WhitelistCidr. The range of IP addresses that should be
/// allowed to contribute content to your source. These IP addresses should be in the
/// form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
///
public string WhitelistCidr
{
get { return this._whitelistCidr; }
set { this._whitelistCidr = value; }
}
// Check to see if WhitelistCidr property is set
internal bool IsSetWhitelistCidr()
{
return this._whitelistCidr != null;
}
}
}