/** * 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 MediaConvert { namespace Model { DvbSdtSettings::DvbSdtSettings() : m_outputSdt(OutputSdt::NOT_SET), m_outputSdtHasBeenSet(false), m_sdtInterval(0), m_sdtIntervalHasBeenSet(false), m_serviceNameHasBeenSet(false), m_serviceProviderNameHasBeenSet(false) { } DvbSdtSettings::DvbSdtSettings(JsonView jsonValue) : m_outputSdt(OutputSdt::NOT_SET), m_outputSdtHasBeenSet(false), m_sdtInterval(0), m_sdtIntervalHasBeenSet(false), m_serviceNameHasBeenSet(false), m_serviceProviderNameHasBeenSet(false) { *this = jsonValue; } DvbSdtSettings& DvbSdtSettings::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("outputSdt")) { m_outputSdt = OutputSdtMapper::GetOutputSdtForName(jsonValue.GetString("outputSdt")); m_outputSdtHasBeenSet = true; } if(jsonValue.ValueExists("sdtInterval")) { m_sdtInterval = jsonValue.GetInteger("sdtInterval"); m_sdtIntervalHasBeenSet = true; } if(jsonValue.ValueExists("serviceName")) { m_serviceName = jsonValue.GetString("serviceName"); m_serviceNameHasBeenSet = true; } if(jsonValue.ValueExists("serviceProviderName")) { m_serviceProviderName = jsonValue.GetString("serviceProviderName"); m_serviceProviderNameHasBeenSet = true; } return *this; } JsonValue DvbSdtSettings::Jsonize() const { JsonValue payload; if(m_outputSdtHasBeenSet) { payload.WithString("outputSdt", OutputSdtMapper::GetNameForOutputSdt(m_outputSdt)); } if(m_sdtIntervalHasBeenSet) { payload.WithInteger("sdtInterval", m_sdtInterval); } if(m_serviceNameHasBeenSet) { payload.WithString("serviceName", m_serviceName); } if(m_serviceProviderNameHasBeenSet) { payload.WithString("serviceProviderName", m_serviceProviderName); } return payload; } } // namespace Model } // namespace MediaConvert } // namespace Aws