511 lines
18 KiB
C++
511 lines
18 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
|
|
#include <aws/mediaconnect/model/Encryption.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/mediaconnect/model/Transport.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace MediaConnect
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* The settings for the source of the flow.<p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/Source">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_MEDIACONNECT_API Source
|
|
{
|
|
public:
|
|
Source();
|
|
Source(Aws::Utils::Json::JsonView jsonValue);
|
|
Source& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
|
|
*/
|
|
inline int GetDataTransferSubscriberFeePercent() const{ return m_dataTransferSubscriberFeePercent; }
|
|
|
|
/**
|
|
* Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
|
|
*/
|
|
inline bool DataTransferSubscriberFeePercentHasBeenSet() const { return m_dataTransferSubscriberFeePercentHasBeenSet; }
|
|
|
|
/**
|
|
* Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
|
|
*/
|
|
inline void SetDataTransferSubscriberFeePercent(int value) { m_dataTransferSubscriberFeePercentHasBeenSet = true; m_dataTransferSubscriberFeePercent = value; }
|
|
|
|
/**
|
|
* Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
|
|
*/
|
|
inline Source& WithDataTransferSubscriberFeePercent(int value) { SetDataTransferSubscriberFeePercent(value); return *this;}
|
|
|
|
|
|
/**
|
|
* The type of encryption that is used on the content ingested from this source.
|
|
*/
|
|
inline const Encryption& GetDecryption() const{ return m_decryption; }
|
|
|
|
/**
|
|
* The type of encryption that is used on the content ingested from this source.
|
|
*/
|
|
inline bool DecryptionHasBeenSet() const { return m_decryptionHasBeenSet; }
|
|
|
|
/**
|
|
* The type of encryption that is used on the content ingested from this source.
|
|
*/
|
|
inline void SetDecryption(const Encryption& value) { m_decryptionHasBeenSet = true; m_decryption = value; }
|
|
|
|
/**
|
|
* The type of encryption that is used on the content ingested from this source.
|
|
*/
|
|
inline void SetDecryption(Encryption&& value) { m_decryptionHasBeenSet = true; m_decryption = std::move(value); }
|
|
|
|
/**
|
|
* The type of encryption that is used on the content ingested from this source.
|
|
*/
|
|
inline Source& WithDecryption(const Encryption& value) { SetDecryption(value); return *this;}
|
|
|
|
/**
|
|
* The type of encryption that is used on the content ingested from this source.
|
|
*/
|
|
inline Source& WithDecryption(Encryption&& value) { SetDecryption(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* A description for the source. 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 for the source. This value is not used or seen outside of the
|
|
* current AWS Elemental MediaConnect account.
|
|
*/
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|
|
|
/**
|
|
* A description for the source. 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 for the source. 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 for the source. 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 for the source. This value is not used or seen outside of the
|
|
* current AWS Elemental MediaConnect account.
|
|
*/
|
|
inline Source& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* A description for the source. This value is not used or seen outside of the
|
|
* current AWS Elemental MediaConnect account.
|
|
*/
|
|
inline Source& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* A description for the source. This value is not used or seen outside of the
|
|
* current AWS Elemental MediaConnect account.
|
|
*/
|
|
inline Source& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
inline const Aws::String& GetEntitlementArn() const{ return m_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.
|
|
*/
|
|
inline bool EntitlementArnHasBeenSet() const { return m_entitlementArnHasBeenSet; }
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
inline void SetEntitlementArn(const Aws::String& value) { m_entitlementArnHasBeenSet = true; m_entitlementArn = value; }
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
inline void SetEntitlementArn(Aws::String&& value) { m_entitlementArnHasBeenSet = true; m_entitlementArn = std::move(value); }
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
inline void SetEntitlementArn(const char* value) { m_entitlementArnHasBeenSet = true; m_entitlementArn.assign(value); }
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
inline Source& WithEntitlementArn(const Aws::String& value) { SetEntitlementArn(value); return *this;}
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
inline Source& WithEntitlementArn(Aws::String&& value) { SetEntitlementArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
inline Source& WithEntitlementArn(const char* value) { SetEntitlementArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* The IP address that the flow will be listening on for incoming content.
|
|
*/
|
|
inline const Aws::String& GetIngestIp() const{ return m_ingestIp; }
|
|
|
|
/**
|
|
* The IP address that the flow will be listening on for incoming content.
|
|
*/
|
|
inline bool IngestIpHasBeenSet() const { return m_ingestIpHasBeenSet; }
|
|
|
|
/**
|
|
* The IP address that the flow will be listening on for incoming content.
|
|
*/
|
|
inline void SetIngestIp(const Aws::String& value) { m_ingestIpHasBeenSet = true; m_ingestIp = value; }
|
|
|
|
/**
|
|
* The IP address that the flow will be listening on for incoming content.
|
|
*/
|
|
inline void SetIngestIp(Aws::String&& value) { m_ingestIpHasBeenSet = true; m_ingestIp = std::move(value); }
|
|
|
|
/**
|
|
* The IP address that the flow will be listening on for incoming content.
|
|
*/
|
|
inline void SetIngestIp(const char* value) { m_ingestIpHasBeenSet = true; m_ingestIp.assign(value); }
|
|
|
|
/**
|
|
* The IP address that the flow will be listening on for incoming content.
|
|
*/
|
|
inline Source& WithIngestIp(const Aws::String& value) { SetIngestIp(value); return *this;}
|
|
|
|
/**
|
|
* The IP address that the flow will be listening on for incoming content.
|
|
*/
|
|
inline Source& WithIngestIp(Aws::String&& value) { SetIngestIp(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* The IP address that the flow will be listening on for incoming content.
|
|
*/
|
|
inline Source& WithIngestIp(const char* value) { SetIngestIp(value); return *this;}
|
|
|
|
|
|
/**
|
|
* The port that the flow will be listening on for incoming content.
|
|
*/
|
|
inline int GetIngestPort() const{ return m_ingestPort; }
|
|
|
|
/**
|
|
* The port that the flow will be listening on for incoming content.
|
|
*/
|
|
inline bool IngestPortHasBeenSet() const { return m_ingestPortHasBeenSet; }
|
|
|
|
/**
|
|
* The port that the flow will be listening on for incoming content.
|
|
*/
|
|
inline void SetIngestPort(int value) { m_ingestPortHasBeenSet = true; m_ingestPort = value; }
|
|
|
|
/**
|
|
* The port that the flow will be listening on for incoming content.
|
|
*/
|
|
inline Source& WithIngestPort(int value) { SetIngestPort(value); return *this;}
|
|
|
|
|
|
/**
|
|
* The name of the source.
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* The name of the source.
|
|
*/
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|
|
|
/**
|
|
* The name of the source.
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|
|
|
/**
|
|
* The name of the source.
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|
|
|
/**
|
|
* The name of the source.
|
|
*/
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|
|
|
/**
|
|
* The name of the source.
|
|
*/
|
|
inline Source& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* The name of the source.
|
|
*/
|
|
inline Source& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* The name of the source.
|
|
*/
|
|
inline Source& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* The ARN of the source.
|
|
*/
|
|
inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
|
|
|
|
/**
|
|
* The ARN of the source.
|
|
*/
|
|
inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
|
|
|
|
/**
|
|
* The ARN of the source.
|
|
*/
|
|
inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
|
|
|
|
/**
|
|
* The ARN of the source.
|
|
*/
|
|
inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
|
|
|
|
/**
|
|
* The ARN of the source.
|
|
*/
|
|
inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
|
|
|
|
/**
|
|
* The ARN of the source.
|
|
*/
|
|
inline Source& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
|
|
|
|
/**
|
|
* The ARN of the source.
|
|
*/
|
|
inline Source& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* The ARN of the source.
|
|
*/
|
|
inline Source& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* Attributes related to the transport stream that are used in the source.
|
|
*/
|
|
inline const Transport& GetTransport() const{ return m_transport; }
|
|
|
|
/**
|
|
* Attributes related to the transport stream that are used in the source.
|
|
*/
|
|
inline bool TransportHasBeenSet() const { return m_transportHasBeenSet; }
|
|
|
|
/**
|
|
* Attributes related to the transport stream that are used in the source.
|
|
*/
|
|
inline void SetTransport(const Transport& value) { m_transportHasBeenSet = true; m_transport = value; }
|
|
|
|
/**
|
|
* Attributes related to the transport stream that are used in the source.
|
|
*/
|
|
inline void SetTransport(Transport&& value) { m_transportHasBeenSet = true; m_transport = std::move(value); }
|
|
|
|
/**
|
|
* Attributes related to the transport stream that are used in the source.
|
|
*/
|
|
inline Source& WithTransport(const Transport& value) { SetTransport(value); return *this;}
|
|
|
|
/**
|
|
* Attributes related to the transport stream that are used in the source.
|
|
*/
|
|
inline Source& WithTransport(Transport&& value) { SetTransport(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* The name of the VPC Interface this Source is configured with.
|
|
*/
|
|
inline const Aws::String& GetVpcInterfaceName() const{ return m_vpcInterfaceName; }
|
|
|
|
/**
|
|
* The name of the VPC Interface this Source is configured with.
|
|
*/
|
|
inline bool VpcInterfaceNameHasBeenSet() const { return m_vpcInterfaceNameHasBeenSet; }
|
|
|
|
/**
|
|
* The name of the VPC Interface this Source is configured with.
|
|
*/
|
|
inline void SetVpcInterfaceName(const Aws::String& value) { m_vpcInterfaceNameHasBeenSet = true; m_vpcInterfaceName = value; }
|
|
|
|
/**
|
|
* The name of the VPC Interface this Source is configured with.
|
|
*/
|
|
inline void SetVpcInterfaceName(Aws::String&& value) { m_vpcInterfaceNameHasBeenSet = true; m_vpcInterfaceName = std::move(value); }
|
|
|
|
/**
|
|
* The name of the VPC Interface this Source is configured with.
|
|
*/
|
|
inline void SetVpcInterfaceName(const char* value) { m_vpcInterfaceNameHasBeenSet = true; m_vpcInterfaceName.assign(value); }
|
|
|
|
/**
|
|
* The name of the VPC Interface this Source is configured with.
|
|
*/
|
|
inline Source& WithVpcInterfaceName(const Aws::String& value) { SetVpcInterfaceName(value); return *this;}
|
|
|
|
/**
|
|
* The name of the VPC Interface this Source is configured with.
|
|
*/
|
|
inline Source& WithVpcInterfaceName(Aws::String&& value) { SetVpcInterfaceName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* The name of the VPC Interface this Source is configured with.
|
|
*/
|
|
inline Source& WithVpcInterfaceName(const char* value) { SetVpcInterfaceName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
inline const Aws::String& GetWhitelistCidr() const{ return m_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.
|
|
*/
|
|
inline bool WhitelistCidrHasBeenSet() const { return m_whitelistCidrHasBeenSet; }
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
inline void SetWhitelistCidr(const Aws::String& value) { m_whitelistCidrHasBeenSet = true; m_whitelistCidr = value; }
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
inline void SetWhitelistCidr(Aws::String&& value) { m_whitelistCidrHasBeenSet = true; m_whitelistCidr = std::move(value); }
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
inline void SetWhitelistCidr(const char* value) { m_whitelistCidrHasBeenSet = true; m_whitelistCidr.assign(value); }
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
inline Source& WithWhitelistCidr(const Aws::String& value) { SetWhitelistCidr(value); return *this;}
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
inline Source& WithWhitelistCidr(Aws::String&& value) { SetWhitelistCidr(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
inline Source& WithWhitelistCidr(const char* value) { SetWhitelistCidr(value); return *this;}
|
|
|
|
private:
|
|
|
|
int m_dataTransferSubscriberFeePercent;
|
|
bool m_dataTransferSubscriberFeePercentHasBeenSet;
|
|
|
|
Encryption m_decryption;
|
|
bool m_decryptionHasBeenSet;
|
|
|
|
Aws::String m_description;
|
|
bool m_descriptionHasBeenSet;
|
|
|
|
Aws::String m_entitlementArn;
|
|
bool m_entitlementArnHasBeenSet;
|
|
|
|
Aws::String m_ingestIp;
|
|
bool m_ingestIpHasBeenSet;
|
|
|
|
int m_ingestPort;
|
|
bool m_ingestPortHasBeenSet;
|
|
|
|
Aws::String m_name;
|
|
bool m_nameHasBeenSet;
|
|
|
|
Aws::String m_sourceArn;
|
|
bool m_sourceArnHasBeenSet;
|
|
|
|
Transport m_transport;
|
|
bool m_transportHasBeenSet;
|
|
|
|
Aws::String m_vpcInterfaceName;
|
|
bool m_vpcInterfaceNameHasBeenSet;
|
|
|
|
Aws::String m_whitelistCidr;
|
|
bool m_whitelistCidrHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace MediaConnect
|
|
} // namespace Aws
|