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

The configuration for DASH PUT operations.

See Also:

AWS * API Reference

*/ class DashConfigurationForPut { public: AWS_MEDIATAILOR_API DashConfigurationForPut(); AWS_MEDIATAILOR_API DashConfigurationForPut(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIATAILOR_API DashConfigurationForPut& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The setting that controls whether MediaTailor includes the Location tag in * DASH manifests. MediaTailor populates the Location tag with the URL for manifest * update requests, to be used by players that don't support sticky redirects. * Disable this if you have CDN routing rules set up for accessing MediaTailor * manifests, and you are either using client-side reporting or your players * support sticky HTTP redirects. Valid values are DISABLED and * EMT_DEFAULT. The EMT_DEFAULT setting enables the * inclusion of the tag and is the default value.

*/ inline const Aws::String& GetMpdLocation() const{ return m_mpdLocation; } /** *

The setting that controls whether MediaTailor includes the Location tag in * DASH manifests. MediaTailor populates the Location tag with the URL for manifest * update requests, to be used by players that don't support sticky redirects. * Disable this if you have CDN routing rules set up for accessing MediaTailor * manifests, and you are either using client-side reporting or your players * support sticky HTTP redirects. Valid values are DISABLED and * EMT_DEFAULT. The EMT_DEFAULT setting enables the * inclusion of the tag and is the default value.

*/ inline bool MpdLocationHasBeenSet() const { return m_mpdLocationHasBeenSet; } /** *

The setting that controls whether MediaTailor includes the Location tag in * DASH manifests. MediaTailor populates the Location tag with the URL for manifest * update requests, to be used by players that don't support sticky redirects. * Disable this if you have CDN routing rules set up for accessing MediaTailor * manifests, and you are either using client-side reporting or your players * support sticky HTTP redirects. Valid values are DISABLED and * EMT_DEFAULT. The EMT_DEFAULT setting enables the * inclusion of the tag and is the default value.

*/ inline void SetMpdLocation(const Aws::String& value) { m_mpdLocationHasBeenSet = true; m_mpdLocation = value; } /** *

The setting that controls whether MediaTailor includes the Location tag in * DASH manifests. MediaTailor populates the Location tag with the URL for manifest * update requests, to be used by players that don't support sticky redirects. * Disable this if you have CDN routing rules set up for accessing MediaTailor * manifests, and you are either using client-side reporting or your players * support sticky HTTP redirects. Valid values are DISABLED and * EMT_DEFAULT. The EMT_DEFAULT setting enables the * inclusion of the tag and is the default value.

*/ inline void SetMpdLocation(Aws::String&& value) { m_mpdLocationHasBeenSet = true; m_mpdLocation = std::move(value); } /** *

The setting that controls whether MediaTailor includes the Location tag in * DASH manifests. MediaTailor populates the Location tag with the URL for manifest * update requests, to be used by players that don't support sticky redirects. * Disable this if you have CDN routing rules set up for accessing MediaTailor * manifests, and you are either using client-side reporting or your players * support sticky HTTP redirects. Valid values are DISABLED and * EMT_DEFAULT. The EMT_DEFAULT setting enables the * inclusion of the tag and is the default value.

*/ inline void SetMpdLocation(const char* value) { m_mpdLocationHasBeenSet = true; m_mpdLocation.assign(value); } /** *

The setting that controls whether MediaTailor includes the Location tag in * DASH manifests. MediaTailor populates the Location tag with the URL for manifest * update requests, to be used by players that don't support sticky redirects. * Disable this if you have CDN routing rules set up for accessing MediaTailor * manifests, and you are either using client-side reporting or your players * support sticky HTTP redirects. Valid values are DISABLED and * EMT_DEFAULT. The EMT_DEFAULT setting enables the * inclusion of the tag and is the default value.

*/ inline DashConfigurationForPut& WithMpdLocation(const Aws::String& value) { SetMpdLocation(value); return *this;} /** *

The setting that controls whether MediaTailor includes the Location tag in * DASH manifests. MediaTailor populates the Location tag with the URL for manifest * update requests, to be used by players that don't support sticky redirects. * Disable this if you have CDN routing rules set up for accessing MediaTailor * manifests, and you are either using client-side reporting or your players * support sticky HTTP redirects. Valid values are DISABLED and * EMT_DEFAULT. The EMT_DEFAULT setting enables the * inclusion of the tag and is the default value.

*/ inline DashConfigurationForPut& WithMpdLocation(Aws::String&& value) { SetMpdLocation(std::move(value)); return *this;} /** *

The setting that controls whether MediaTailor includes the Location tag in * DASH manifests. MediaTailor populates the Location tag with the URL for manifest * update requests, to be used by players that don't support sticky redirects. * Disable this if you have CDN routing rules set up for accessing MediaTailor * manifests, and you are either using client-side reporting or your players * support sticky HTTP redirects. Valid values are DISABLED and * EMT_DEFAULT. The EMT_DEFAULT setting enables the * inclusion of the tag and is the default value.

*/ inline DashConfigurationForPut& WithMpdLocation(const char* value) { SetMpdLocation(value); return *this;} /** *

The setting that controls whether MediaTailor handles manifests from the * origin server as multi-period manifests or single-period manifests. If your * origin server produces single-period manifests, set this to * SINGLE_PERIOD. The default setting is MULTI_PERIOD. * For multi-period manifests, omit this setting or set it to * MULTI_PERIOD.

*/ inline const OriginManifestType& GetOriginManifestType() const{ return m_originManifestType; } /** *

The setting that controls whether MediaTailor handles manifests from the * origin server as multi-period manifests or single-period manifests. If your * origin server produces single-period manifests, set this to * SINGLE_PERIOD. The default setting is MULTI_PERIOD. * For multi-period manifests, omit this setting or set it to * MULTI_PERIOD.

*/ inline bool OriginManifestTypeHasBeenSet() const { return m_originManifestTypeHasBeenSet; } /** *

The setting that controls whether MediaTailor handles manifests from the * origin server as multi-period manifests or single-period manifests. If your * origin server produces single-period manifests, set this to * SINGLE_PERIOD. The default setting is MULTI_PERIOD. * For multi-period manifests, omit this setting or set it to * MULTI_PERIOD.

*/ inline void SetOriginManifestType(const OriginManifestType& value) { m_originManifestTypeHasBeenSet = true; m_originManifestType = value; } /** *

The setting that controls whether MediaTailor handles manifests from the * origin server as multi-period manifests or single-period manifests. If your * origin server produces single-period manifests, set this to * SINGLE_PERIOD. The default setting is MULTI_PERIOD. * For multi-period manifests, omit this setting or set it to * MULTI_PERIOD.

*/ inline void SetOriginManifestType(OriginManifestType&& value) { m_originManifestTypeHasBeenSet = true; m_originManifestType = std::move(value); } /** *

The setting that controls whether MediaTailor handles manifests from the * origin server as multi-period manifests or single-period manifests. If your * origin server produces single-period manifests, set this to * SINGLE_PERIOD. The default setting is MULTI_PERIOD. * For multi-period manifests, omit this setting or set it to * MULTI_PERIOD.

*/ inline DashConfigurationForPut& WithOriginManifestType(const OriginManifestType& value) { SetOriginManifestType(value); return *this;} /** *

The setting that controls whether MediaTailor handles manifests from the * origin server as multi-period manifests or single-period manifests. If your * origin server produces single-period manifests, set this to * SINGLE_PERIOD. The default setting is MULTI_PERIOD. * For multi-period manifests, omit this setting or set it to * MULTI_PERIOD.

*/ inline DashConfigurationForPut& WithOriginManifestType(OriginManifestType&& value) { SetOriginManifestType(std::move(value)); return *this;} private: Aws::String m_mpdLocation; bool m_mpdLocationHasBeenSet = false; OriginManifestType m_originManifestType; bool m_originManifestTypeHasBeenSet = false; }; } // namespace Model } // namespace MediaTailor } // namespace Aws