/** * 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 namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFront { namespace Model { /** *

The RTMP distribution's configuration information.

See Also:

* AWS * API Reference

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

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the StreamingDistributionConfig * object), CloudFront creates a new distribution.

If * CallerReference is a value that you already sent in a previous * request to create a distribution, CloudFront returns a * DistributionAlreadyExists error.

*/ inline const Aws::String& GetCallerReference() const{ return m_callerReference; } /** *

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the StreamingDistributionConfig * object), CloudFront creates a new distribution.

If * CallerReference is a value that you already sent in a previous * request to create a distribution, CloudFront returns a * DistributionAlreadyExists error.

*/ inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; } /** *

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the StreamingDistributionConfig * object), CloudFront creates a new distribution.

If * CallerReference is a value that you already sent in a previous * request to create a distribution, CloudFront returns a * DistributionAlreadyExists error.

*/ inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; } /** *

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the StreamingDistributionConfig * object), CloudFront creates a new distribution.

If * CallerReference is a value that you already sent in a previous * request to create a distribution, CloudFront returns a * DistributionAlreadyExists error.

*/ inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::move(value); } /** *

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the StreamingDistributionConfig * object), CloudFront creates a new distribution.

If * CallerReference is a value that you already sent in a previous * request to create a distribution, CloudFront returns a * DistributionAlreadyExists error.

*/ inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); } /** *

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the StreamingDistributionConfig * object), CloudFront creates a new distribution.

If * CallerReference is a value that you already sent in a previous * request to create a distribution, CloudFront returns a * DistributionAlreadyExists error.

*/ inline StreamingDistributionConfig& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;} /** *

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the StreamingDistributionConfig * object), CloudFront creates a new distribution.

If * CallerReference is a value that you already sent in a previous * request to create a distribution, CloudFront returns a * DistributionAlreadyExists error.

*/ inline StreamingDistributionConfig& WithCallerReference(Aws::String&& value) { SetCallerReference(std::move(value)); return *this;} /** *

A unique value (for example, a date-time stamp) that ensures that the request * can't be replayed.

If the value of CallerReference is new * (regardless of the content of the StreamingDistributionConfig * object), CloudFront creates a new distribution.

If * CallerReference is a value that you already sent in a previous * request to create a distribution, CloudFront returns a * DistributionAlreadyExists error.

*/ inline StreamingDistributionConfig& WithCallerReference(const char* value) { SetCallerReference(value); return *this;} /** *

A complex type that contains information about the Amazon S3 bucket from * which you want CloudFront to get your media files for distribution.

*/ inline const S3Origin& GetS3Origin() const{ return m_s3Origin; } /** *

A complex type that contains information about the Amazon S3 bucket from * which you want CloudFront to get your media files for distribution.

*/ inline bool S3OriginHasBeenSet() const { return m_s3OriginHasBeenSet; } /** *

A complex type that contains information about the Amazon S3 bucket from * which you want CloudFront to get your media files for distribution.

*/ inline void SetS3Origin(const S3Origin& value) { m_s3OriginHasBeenSet = true; m_s3Origin = value; } /** *

A complex type that contains information about the Amazon S3 bucket from * which you want CloudFront to get your media files for distribution.

*/ inline void SetS3Origin(S3Origin&& value) { m_s3OriginHasBeenSet = true; m_s3Origin = std::move(value); } /** *

A complex type that contains information about the Amazon S3 bucket from * which you want CloudFront to get your media files for distribution.

*/ inline StreamingDistributionConfig& WithS3Origin(const S3Origin& value) { SetS3Origin(value); return *this;} /** *

A complex type that contains information about the Amazon S3 bucket from * which you want CloudFront to get your media files for distribution.

*/ inline StreamingDistributionConfig& WithS3Origin(S3Origin&& value) { SetS3Origin(std::move(value)); return *this;} /** *

A complex type that contains information about CNAMEs (alternate domain * names), if any, for this streaming distribution.

*/ inline const Aliases& GetAliases() const{ return m_aliases; } /** *

A complex type that contains information about CNAMEs (alternate domain * names), if any, for this streaming distribution.

*/ inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; } /** *

A complex type that contains information about CNAMEs (alternate domain * names), if any, for this streaming distribution.

*/ inline void SetAliases(const Aliases& value) { m_aliasesHasBeenSet = true; m_aliases = value; } /** *

A complex type that contains information about CNAMEs (alternate domain * names), if any, for this streaming distribution.

*/ inline void SetAliases(Aliases&& value) { m_aliasesHasBeenSet = true; m_aliases = std::move(value); } /** *

A complex type that contains information about CNAMEs (alternate domain * names), if any, for this streaming distribution.

*/ inline StreamingDistributionConfig& WithAliases(const Aliases& value) { SetAliases(value); return *this;} /** *

A complex type that contains information about CNAMEs (alternate domain * names), if any, for this streaming distribution.

*/ inline StreamingDistributionConfig& WithAliases(Aliases&& value) { SetAliases(std::move(value)); return *this;} /** *

Any comments you want to include about the streaming distribution.

*/ inline const Aws::String& GetComment() const{ return m_comment; } /** *

Any comments you want to include about the streaming distribution.

*/ inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } /** *

Any comments you want to include about the streaming distribution.

*/ inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; } /** *

Any comments you want to include about the streaming distribution.

*/ inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } /** *

Any comments you want to include about the streaming distribution.

*/ inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); } /** *

Any comments you want to include about the streaming distribution.

*/ inline StreamingDistributionConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;} /** *

Any comments you want to include about the streaming distribution.

*/ inline StreamingDistributionConfig& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;} /** *

Any comments you want to include about the streaming distribution.

*/ inline StreamingDistributionConfig& WithComment(const char* value) { SetComment(value); return *this;} /** *

A complex type that controls whether access logs are written for the * streaming distribution.

*/ inline const StreamingLoggingConfig& GetLogging() const{ return m_logging; } /** *

A complex type that controls whether access logs are written for the * streaming distribution.

*/ inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; } /** *

A complex type that controls whether access logs are written for the * streaming distribution.

*/ inline void SetLogging(const StreamingLoggingConfig& value) { m_loggingHasBeenSet = true; m_logging = value; } /** *

A complex type that controls whether access logs are written for the * streaming distribution.

*/ inline void SetLogging(StreamingLoggingConfig&& value) { m_loggingHasBeenSet = true; m_logging = std::move(value); } /** *

A complex type that controls whether access logs are written for the * streaming distribution.

*/ inline StreamingDistributionConfig& WithLogging(const StreamingLoggingConfig& value) { SetLogging(value); return *this;} /** *

A complex type that controls whether access logs are written for the * streaming distribution.

*/ inline StreamingDistributionConfig& WithLogging(StreamingLoggingConfig&& value) { SetLogging(std::move(value)); return *this;} /** *

A complex type that specifies any Amazon Web Services accounts that you want * to permit to create signed URLs for private content. If you want the * distribution to use signed URLs, include this element; if you want the * distribution to use public URLs, remove this element. For more information, see * Serving * Private Content through CloudFront in the Amazon CloudFront Developer * Guide.

*/ inline const TrustedSigners& GetTrustedSigners() const{ return m_trustedSigners; } /** *

A complex type that specifies any Amazon Web Services accounts that you want * to permit to create signed URLs for private content. If you want the * distribution to use signed URLs, include this element; if you want the * distribution to use public URLs, remove this element. For more information, see * Serving * Private Content through CloudFront in the Amazon CloudFront Developer * Guide.

*/ inline bool TrustedSignersHasBeenSet() const { return m_trustedSignersHasBeenSet; } /** *

A complex type that specifies any Amazon Web Services accounts that you want * to permit to create signed URLs for private content. If you want the * distribution to use signed URLs, include this element; if you want the * distribution to use public URLs, remove this element. For more information, see * Serving * Private Content through CloudFront in the Amazon CloudFront Developer * Guide.

*/ inline void SetTrustedSigners(const TrustedSigners& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = value; } /** *

A complex type that specifies any Amazon Web Services accounts that you want * to permit to create signed URLs for private content. If you want the * distribution to use signed URLs, include this element; if you want the * distribution to use public URLs, remove this element. For more information, see * Serving * Private Content through CloudFront in the Amazon CloudFront Developer * Guide.

*/ inline void SetTrustedSigners(TrustedSigners&& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = std::move(value); } /** *

A complex type that specifies any Amazon Web Services accounts that you want * to permit to create signed URLs for private content. If you want the * distribution to use signed URLs, include this element; if you want the * distribution to use public URLs, remove this element. For more information, see * Serving * Private Content through CloudFront in the Amazon CloudFront Developer * Guide.

*/ inline StreamingDistributionConfig& WithTrustedSigners(const TrustedSigners& value) { SetTrustedSigners(value); return *this;} /** *

A complex type that specifies any Amazon Web Services accounts that you want * to permit to create signed URLs for private content. If you want the * distribution to use signed URLs, include this element; if you want the * distribution to use public URLs, remove this element. For more information, see * Serving * Private Content through CloudFront in the Amazon CloudFront Developer * Guide.

*/ inline StreamingDistributionConfig& WithTrustedSigners(TrustedSigners&& value) { SetTrustedSigners(std::move(value)); return *this;} /** *

A complex type that contains information about price class for this streaming * distribution.

*/ inline const PriceClass& GetPriceClass() const{ return m_priceClass; } /** *

A complex type that contains information about price class for this streaming * distribution.

*/ inline bool PriceClassHasBeenSet() const { return m_priceClassHasBeenSet; } /** *

A complex type that contains information about price class for this streaming * distribution.

*/ inline void SetPriceClass(const PriceClass& value) { m_priceClassHasBeenSet = true; m_priceClass = value; } /** *

A complex type that contains information about price class for this streaming * distribution.

*/ inline void SetPriceClass(PriceClass&& value) { m_priceClassHasBeenSet = true; m_priceClass = std::move(value); } /** *

A complex type that contains information about price class for this streaming * distribution.

*/ inline StreamingDistributionConfig& WithPriceClass(const PriceClass& value) { SetPriceClass(value); return *this;} /** *

A complex type that contains information about price class for this streaming * distribution.

*/ inline StreamingDistributionConfig& WithPriceClass(PriceClass&& value) { SetPriceClass(std::move(value)); return *this;} /** *

Whether the streaming distribution is enabled to accept user requests for * content.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Whether the streaming distribution is enabled to accept user requests for * content.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Whether the streaming distribution is enabled to accept user requests for * content.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Whether the streaming distribution is enabled to accept user requests for * content.

*/ inline StreamingDistributionConfig& WithEnabled(bool value) { SetEnabled(value); return *this;} private: Aws::String m_callerReference; bool m_callerReferenceHasBeenSet = false; S3Origin m_s3Origin; bool m_s3OriginHasBeenSet = false; Aliases m_aliases; bool m_aliasesHasBeenSet = false; Aws::String m_comment; bool m_commentHasBeenSet = false; StreamingLoggingConfig m_logging; bool m_loggingHasBeenSet = false; TrustedSigners m_trustedSigners; bool m_trustedSignersHasBeenSet = false; PriceClass m_priceClass; bool m_priceClassHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws