/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::TranscribeService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; StartTranscriptionJobRequest::StartTranscriptionJobRequest() : m_transcriptionJobNameHasBeenSet(false), m_languageCode(LanguageCode::NOT_SET), m_languageCodeHasBeenSet(false), m_mediaSampleRateHertz(0), m_mediaSampleRateHertzHasBeenSet(false), m_mediaFormat(MediaFormat::NOT_SET), m_mediaFormatHasBeenSet(false), m_mediaHasBeenSet(false), m_outputBucketNameHasBeenSet(false), m_outputEncryptionKMSKeyIdHasBeenSet(false), m_settingsHasBeenSet(false), m_modelSettingsHasBeenSet(false), m_jobExecutionSettingsHasBeenSet(false), m_contentRedactionHasBeenSet(false) { } Aws::String StartTranscriptionJobRequest::SerializePayload() const { JsonValue payload; if(m_transcriptionJobNameHasBeenSet) { payload.WithString("TranscriptionJobName", m_transcriptionJobName); } if(m_languageCodeHasBeenSet) { payload.WithString("LanguageCode", LanguageCodeMapper::GetNameForLanguageCode(m_languageCode)); } if(m_mediaSampleRateHertzHasBeenSet) { payload.WithInteger("MediaSampleRateHertz", m_mediaSampleRateHertz); } if(m_mediaFormatHasBeenSet) { payload.WithString("MediaFormat", MediaFormatMapper::GetNameForMediaFormat(m_mediaFormat)); } if(m_mediaHasBeenSet) { payload.WithObject("Media", m_media.Jsonize()); } if(m_outputBucketNameHasBeenSet) { payload.WithString("OutputBucketName", m_outputBucketName); } if(m_outputEncryptionKMSKeyIdHasBeenSet) { payload.WithString("OutputEncryptionKMSKeyId", m_outputEncryptionKMSKeyId); } if(m_settingsHasBeenSet) { payload.WithObject("Settings", m_settings.Jsonize()); } if(m_modelSettingsHasBeenSet) { payload.WithObject("ModelSettings", m_modelSettings.Jsonize()); } if(m_jobExecutionSettingsHasBeenSet) { payload.WithObject("JobExecutionSettings", m_jobExecutionSettings.Jsonize()); } if(m_contentRedactionHasBeenSet) { payload.WithObject("ContentRedaction", m_contentRedaction.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection StartTranscriptionJobRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Transcribe.StartTranscriptionJob")); return headers; }