/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace MediaTailor { namespace Model { DashConfiguration::DashConfiguration() : m_manifestEndpointPrefixHasBeenSet(false), m_mpdLocationHasBeenSet(false), m_originManifestType(OriginManifestType::NOT_SET), m_originManifestTypeHasBeenSet(false) { } DashConfiguration::DashConfiguration(JsonView jsonValue) : m_manifestEndpointPrefixHasBeenSet(false), m_mpdLocationHasBeenSet(false), m_originManifestType(OriginManifestType::NOT_SET), m_originManifestTypeHasBeenSet(false) { *this = jsonValue; } DashConfiguration& DashConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("ManifestEndpointPrefix")) { m_manifestEndpointPrefix = jsonValue.GetString("ManifestEndpointPrefix"); m_manifestEndpointPrefixHasBeenSet = true; } if(jsonValue.ValueExists("MpdLocation")) { m_mpdLocation = jsonValue.GetString("MpdLocation"); m_mpdLocationHasBeenSet = true; } if(jsonValue.ValueExists("OriginManifestType")) { m_originManifestType = OriginManifestTypeMapper::GetOriginManifestTypeForName(jsonValue.GetString("OriginManifestType")); m_originManifestTypeHasBeenSet = true; } return *this; } JsonValue DashConfiguration::Jsonize() const { JsonValue payload; if(m_manifestEndpointPrefixHasBeenSet) { payload.WithString("ManifestEndpointPrefix", m_manifestEndpointPrefix); } if(m_mpdLocationHasBeenSet) { payload.WithString("MpdLocation", m_mpdLocation); } if(m_originManifestTypeHasBeenSet) { payload.WithString("OriginManifestType", OriginManifestTypeMapper::GetNameForOriginManifestType(m_originManifestType)); } return payload; } } // namespace Model } // namespace MediaTailor } // namespace Aws