/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFront { namespace Model { /** *

A streaming distribution tells CloudFront where you want RTMP content to be * delivered from, and the details about how to track and manage content * delivery.

See Also:

AWS * API Reference

*/ class StreamingDistribution { public: AWS_CLOUDFRONT_API StreamingDistribution(); AWS_CLOUDFRONT_API StreamingDistribution(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API StreamingDistribution& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The identifier for the RTMP distribution. For example: * EGTXBD79EXAMPLE.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier for the RTMP distribution. For example: * EGTXBD79EXAMPLE.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier for the RTMP distribution. For example: * EGTXBD79EXAMPLE.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier for the RTMP distribution. For example: * EGTXBD79EXAMPLE.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier for the RTMP distribution. For example: * EGTXBD79EXAMPLE.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier for the RTMP distribution. For example: * EGTXBD79EXAMPLE.

*/ inline StreamingDistribution& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier for the RTMP distribution. For example: * EGTXBD79EXAMPLE.

*/ inline StreamingDistribution& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier for the RTMP distribution. For example: * EGTXBD79EXAMPLE.

*/ inline StreamingDistribution& WithId(const char* value) { SetId(value); return *this;} /** *

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your Amazon Web Services account ID.

*/ inline const Aws::String& GetARN() const{ return m_aRN; } /** *

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your Amazon Web Services account ID.

*/ inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; } /** *

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your Amazon Web Services account ID.

*/ inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; } /** *

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your Amazon Web Services account ID.

*/ inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); } /** *

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your Amazon Web Services account ID.

*/ inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); } /** *

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your Amazon Web Services account ID.

*/ inline StreamingDistribution& WithARN(const Aws::String& value) { SetARN(value); return *this;} /** *

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your Amazon Web Services account ID.

*/ inline StreamingDistribution& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;} /** *

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your Amazon Web Services account ID.

*/ inline StreamingDistribution& WithARN(const char* value) { SetARN(value); return *this;} /** *

The current status of the RTMP distribution. When the status is * Deployed, the distribution's information is propagated to all * CloudFront edge locations.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The current status of the RTMP distribution. When the status is * Deployed, the distribution's information is propagated to all * CloudFront edge locations.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the RTMP distribution. When the status is * Deployed, the distribution's information is propagated to all * CloudFront edge locations.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the RTMP distribution. When the status is * Deployed, the distribution's information is propagated to all * CloudFront edge locations.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the RTMP distribution. When the status is * Deployed, the distribution's information is propagated to all * CloudFront edge locations.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The current status of the RTMP distribution. When the status is * Deployed, the distribution's information is propagated to all * CloudFront edge locations.

*/ inline StreamingDistribution& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The current status of the RTMP distribution. When the status is * Deployed, the distribution's information is propagated to all * CloudFront edge locations.

*/ inline StreamingDistribution& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The current status of the RTMP distribution. When the status is * Deployed, the distribution's information is propagated to all * CloudFront edge locations.

*/ inline StreamingDistribution& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The date and time that the distribution was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The date and time that the distribution was last modified.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

The date and time that the distribution was last modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *

The date and time that the distribution was last modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *

The date and time that the distribution was last modified.

*/ inline StreamingDistribution& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The date and time that the distribution was last modified.

*/ inline StreamingDistribution& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net.

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net.

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net.

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net.

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net.

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net.

*/ inline StreamingDistribution& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net.

*/ inline StreamingDistribution& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net.

*/ inline StreamingDistribution& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

A complex type that lists the Amazon Web Services accounts, if any, that you * included in the TrustedSigners complex type for this distribution. * These are the accounts that you want to allow to create signed URLs for private * content.

The Signer complex type lists the Amazon Web * Services account number of the trusted signer or self if the signer * is the Amazon Web Services account that created the distribution. The * Signer element also includes the IDs of any active CloudFront key * pairs that are associated with the trusted signer's Amazon Web Services account. * If no KeyPairId element appears for a Signer, that * signer can't create signed URLs.

For more information, see Serving * Private Content through CloudFront in the Amazon CloudFront Developer * Guide.

*/ inline const ActiveTrustedSigners& GetActiveTrustedSigners() const{ return m_activeTrustedSigners; } /** *

A complex type that lists the Amazon Web Services accounts, if any, that you * included in the TrustedSigners complex type for this distribution. * These are the accounts that you want to allow to create signed URLs for private * content.

The Signer complex type lists the Amazon Web * Services account number of the trusted signer or self if the signer * is the Amazon Web Services account that created the distribution. The * Signer element also includes the IDs of any active CloudFront key * pairs that are associated with the trusted signer's Amazon Web Services account. * If no KeyPairId element appears for a Signer, that * signer can't create signed URLs.

For more information, see Serving * Private Content through CloudFront in the Amazon CloudFront Developer * Guide.

*/ inline bool ActiveTrustedSignersHasBeenSet() const { return m_activeTrustedSignersHasBeenSet; } /** *

A complex type that lists the Amazon Web Services accounts, if any, that you * included in the TrustedSigners complex type for this distribution. * These are the accounts that you want to allow to create signed URLs for private * content.

The Signer complex type lists the Amazon Web * Services account number of the trusted signer or self if the signer * is the Amazon Web Services account that created the distribution. The * Signer element also includes the IDs of any active CloudFront key * pairs that are associated with the trusted signer's Amazon Web Services account. * If no KeyPairId element appears for a Signer, that * signer can't create signed URLs.

For more information, see Serving * Private Content through CloudFront in the Amazon CloudFront Developer * Guide.

*/ inline void SetActiveTrustedSigners(const ActiveTrustedSigners& value) { m_activeTrustedSignersHasBeenSet = true; m_activeTrustedSigners = value; } /** *

A complex type that lists the Amazon Web Services accounts, if any, that you * included in the TrustedSigners complex type for this distribution. * These are the accounts that you want to allow to create signed URLs for private * content.

The Signer complex type lists the Amazon Web * Services account number of the trusted signer or self if the signer * is the Amazon Web Services account that created the distribution. The * Signer element also includes the IDs of any active CloudFront key * pairs that are associated with the trusted signer's Amazon Web Services account. * If no KeyPairId element appears for a Signer, that * signer can't create signed URLs.

For more information, see Serving * Private Content through CloudFront in the Amazon CloudFront Developer * Guide.

*/ inline void SetActiveTrustedSigners(ActiveTrustedSigners&& value) { m_activeTrustedSignersHasBeenSet = true; m_activeTrustedSigners = std::move(value); } /** *

A complex type that lists the Amazon Web Services accounts, if any, that you * included in the TrustedSigners complex type for this distribution. * These are the accounts that you want to allow to create signed URLs for private * content.

The Signer complex type lists the Amazon Web * Services account number of the trusted signer or self if the signer * is the Amazon Web Services account that created the distribution. The * Signer element also includes the IDs of any active CloudFront key * pairs that are associated with the trusted signer's Amazon Web Services account. * If no KeyPairId element appears for a Signer, that * signer can't create signed URLs.

For more information, see Serving * Private Content through CloudFront in the Amazon CloudFront Developer * Guide.

*/ inline StreamingDistribution& WithActiveTrustedSigners(const ActiveTrustedSigners& value) { SetActiveTrustedSigners(value); return *this;} /** *

A complex type that lists the Amazon Web Services accounts, if any, that you * included in the TrustedSigners complex type for this distribution. * These are the accounts that you want to allow to create signed URLs for private * content.

The Signer complex type lists the Amazon Web * Services account number of the trusted signer or self if the signer * is the Amazon Web Services account that created the distribution. The * Signer element also includes the IDs of any active CloudFront key * pairs that are associated with the trusted signer's Amazon Web Services account. * If no KeyPairId element appears for a Signer, that * signer can't create signed URLs.

For more information, see Serving * Private Content through CloudFront in the Amazon CloudFront Developer * Guide.

*/ inline StreamingDistribution& WithActiveTrustedSigners(ActiveTrustedSigners&& value) { SetActiveTrustedSigners(std::move(value)); return *this;} /** *

The current configuration information for the RTMP distribution.

*/ inline const StreamingDistributionConfig& GetStreamingDistributionConfig() const{ return m_streamingDistributionConfig; } /** *

The current configuration information for the RTMP distribution.

*/ inline bool StreamingDistributionConfigHasBeenSet() const { return m_streamingDistributionConfigHasBeenSet; } /** *

The current configuration information for the RTMP distribution.

*/ inline void SetStreamingDistributionConfig(const StreamingDistributionConfig& value) { m_streamingDistributionConfigHasBeenSet = true; m_streamingDistributionConfig = value; } /** *

The current configuration information for the RTMP distribution.

*/ inline void SetStreamingDistributionConfig(StreamingDistributionConfig&& value) { m_streamingDistributionConfigHasBeenSet = true; m_streamingDistributionConfig = std::move(value); } /** *

The current configuration information for the RTMP distribution.

*/ inline StreamingDistribution& WithStreamingDistributionConfig(const StreamingDistributionConfig& value) { SetStreamingDistributionConfig(value); return *this;} /** *

The current configuration information for the RTMP distribution.

*/ inline StreamingDistribution& WithStreamingDistributionConfig(StreamingDistributionConfig&& value) { SetStreamingDistributionConfig(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_aRN; bool m_aRNHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; Aws::String m_domainName; bool m_domainNameHasBeenSet = false; ActiveTrustedSigners m_activeTrustedSigners; bool m_activeTrustedSignersHasBeenSet = false; StreamingDistributionConfig m_streamingDistributionConfig; bool m_streamingDistributionConfigHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws