/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::IVS::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateChannelRequest::UpdateChannelRequest() : m_arnHasBeenSet(false), m_authorized(false), m_authorizedHasBeenSet(false), m_insecureIngest(false), m_insecureIngestHasBeenSet(false), m_latencyMode(ChannelLatencyMode::NOT_SET), m_latencyModeHasBeenSet(false), m_nameHasBeenSet(false), m_preset(TranscodePreset::NOT_SET), m_presetHasBeenSet(false), m_recordingConfigurationArnHasBeenSet(false), m_type(ChannelType::NOT_SET), m_typeHasBeenSet(false) { } Aws::String UpdateChannelRequest::SerializePayload() const { JsonValue payload; if(m_arnHasBeenSet) { payload.WithString("arn", m_arn); } if(m_authorizedHasBeenSet) { payload.WithBool("authorized", m_authorized); } if(m_insecureIngestHasBeenSet) { payload.WithBool("insecureIngest", m_insecureIngest); } if(m_latencyModeHasBeenSet) { payload.WithString("latencyMode", ChannelLatencyModeMapper::GetNameForChannelLatencyMode(m_latencyMode)); } if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_presetHasBeenSet) { payload.WithString("preset", TranscodePresetMapper::GetNameForTranscodePreset(m_preset)); } if(m_recordingConfigurationArnHasBeenSet) { payload.WithString("recordingConfigurationArn", m_recordingConfigurationArn); } if(m_typeHasBeenSet) { payload.WithString("type", ChannelTypeMapper::GetNameForChannelType(m_type)); } return payload.View().WriteReadable(); }