98 lines
3.2 KiB
C
98 lines
3.2 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/transcribestreaming/model/Result.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace TranscribeStreamingService
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The transcription in a <a>TranscriptEvent</a>.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Transcript">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_TRANSCRIBESTREAMINGSERVICE_API Transcript
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
Transcript();
|
|||
|
|
Transcript(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Transcript& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p> <a>Result</a> objects that contain the results of transcribing a portion of
|
|||
|
|
* the input audio stream. The array can be empty.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Result>& GetResults() const{ return m_results; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p> <a>Result</a> objects that contain the results of transcribing a portion of
|
|||
|
|
* the input audio stream. The array can be empty.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ResultsHasBeenSet() const { return m_resultsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p> <a>Result</a> objects that contain the results of transcribing a portion of
|
|||
|
|
* the input audio stream. The array can be empty.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResults(const Aws::Vector<Result>& value) { m_resultsHasBeenSet = true; m_results = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p> <a>Result</a> objects that contain the results of transcribing a portion of
|
|||
|
|
* the input audio stream. The array can be empty.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResults(Aws::Vector<Result>&& value) { m_resultsHasBeenSet = true; m_results = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p> <a>Result</a> objects that contain the results of transcribing a portion of
|
|||
|
|
* the input audio stream. The array can be empty.</p>
|
|||
|
|
*/
|
|||
|
|
inline Transcript& WithResults(const Aws::Vector<Result>& value) { SetResults(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p> <a>Result</a> objects that contain the results of transcribing a portion of
|
|||
|
|
* the input audio stream. The array can be empty.</p>
|
|||
|
|
*/
|
|||
|
|
inline Transcript& WithResults(Aws::Vector<Result>&& value) { SetResults(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p> <a>Result</a> objects that contain the results of transcribing a portion of
|
|||
|
|
* the input audio stream. The array can be empty.</p>
|
|||
|
|
*/
|
|||
|
|
inline Transcript& AddResults(const Result& value) { m_resultsHasBeenSet = true; m_results.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p> <a>Result</a> objects that contain the results of transcribing a portion of
|
|||
|
|
* the input audio stream. The array can be empty.</p>
|
|||
|
|
*/
|
|||
|
|
inline Transcript& AddResults(Result&& value) { m_resultsHasBeenSet = true; m_results.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::Vector<Result> m_results;
|
|||
|
|
bool m_resultsHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace TranscribeStreamingService
|
|||
|
|
} // namespace Aws
|