/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace TranscribeStreamingService
{
namespace Model
{
/**
* The Result
associated with a
.
Contains a set of
* transcription results from one or more audio segments, along with additional
* information per your request parameters. This can include information relating
* to alternative transcriptions, channel identification, partial result
* stabilization, language identification, and other transcription-related
* data.
See Also:
AWS
* API Reference
*/
class MedicalResult
{
public:
AWS_TRANSCRIBESTREAMINGSERVICE_API MedicalResult();
AWS_TRANSCRIBESTREAMINGSERVICE_API MedicalResult(Aws::Utils::Json::JsonView jsonValue);
AWS_TRANSCRIBESTREAMINGSERVICE_API MedicalResult& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Provides a unique identifier for the Result
.
*/
inline const Aws::String& GetResultId() const{ return m_resultId; }
/**
* Provides a unique identifier for the Result
.
*/
inline bool ResultIdHasBeenSet() const { return m_resultIdHasBeenSet; }
/**
* Provides a unique identifier for the Result
.
*/
inline void SetResultId(const Aws::String& value) { m_resultIdHasBeenSet = true; m_resultId = value; }
/**
* Provides a unique identifier for the Result
.
*/
inline void SetResultId(Aws::String&& value) { m_resultIdHasBeenSet = true; m_resultId = std::move(value); }
/**
* Provides a unique identifier for the Result
.
*/
inline void SetResultId(const char* value) { m_resultIdHasBeenSet = true; m_resultId.assign(value); }
/**
* Provides a unique identifier for the Result
.
*/
inline MedicalResult& WithResultId(const Aws::String& value) { SetResultId(value); return *this;}
/**
* Provides a unique identifier for the Result
.
*/
inline MedicalResult& WithResultId(Aws::String&& value) { SetResultId(std::move(value)); return *this;}
/**
* Provides a unique identifier for the Result
.
*/
inline MedicalResult& WithResultId(const char* value) { SetResultId(value); return *this;}
/**
* The start time, in milliseconds, of the Result
.
*/
inline double GetStartTime() const{ return m_startTime; }
/**
* The start time, in milliseconds, of the Result
.
*/
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
/**
* The start time, in milliseconds, of the Result
.
*/
inline void SetStartTime(double value) { m_startTimeHasBeenSet = true; m_startTime = value; }
/**
* The start time, in milliseconds, of the Result
.
*/
inline MedicalResult& WithStartTime(double value) { SetStartTime(value); return *this;}
/**
* The end time, in milliseconds, of the Result
.
*/
inline double GetEndTime() const{ return m_endTime; }
/**
* The end time, in milliseconds, of the Result
.
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* The end time, in milliseconds, of the Result
.
*/
inline void SetEndTime(double value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* The end time, in milliseconds, of the Result
.
*/
inline MedicalResult& WithEndTime(double value) { SetEndTime(value); return *this;}
/**
* Indicates if the segment is complete.
If IsPartial
is
* true
, the segment is not complete. If IsPartial
is
* false
, the segment is complete.
*/
inline bool GetIsPartial() const{ return m_isPartial; }
/**
* Indicates if the segment is complete.
If IsPartial
is
* true
, the segment is not complete. If IsPartial
is
* false
, the segment is complete.
*/
inline bool IsPartialHasBeenSet() const { return m_isPartialHasBeenSet; }
/**
* Indicates if the segment is complete.
If IsPartial
is
* true
, the segment is not complete. If IsPartial
is
* false
, the segment is complete.
*/
inline void SetIsPartial(bool value) { m_isPartialHasBeenSet = true; m_isPartial = value; }
/**
* Indicates if the segment is complete.
If IsPartial
is
* true
, the segment is not complete. If IsPartial
is
* false
, the segment is complete.
*/
inline MedicalResult& WithIsPartial(bool value) { SetIsPartial(value); return *this;}
/**
* A list of possible alternative transcriptions for the input audio. Each
* alternative may contain one or more of Items
,
* Entities
, or Transcript
.
*/
inline const Aws::Vector& GetAlternatives() const{ return m_alternatives; }
/**
* A list of possible alternative transcriptions for the input audio. Each
* alternative may contain one or more of Items
,
* Entities
, or Transcript
.
*/
inline bool AlternativesHasBeenSet() const { return m_alternativesHasBeenSet; }
/**
* A list of possible alternative transcriptions for the input audio. Each
* alternative may contain one or more of Items
,
* Entities
, or Transcript
.
*/
inline void SetAlternatives(const Aws::Vector& value) { m_alternativesHasBeenSet = true; m_alternatives = value; }
/**
* A list of possible alternative transcriptions for the input audio. Each
* alternative may contain one or more of Items
,
* Entities
, or Transcript
.
*/
inline void SetAlternatives(Aws::Vector&& value) { m_alternativesHasBeenSet = true; m_alternatives = std::move(value); }
/**
* A list of possible alternative transcriptions for the input audio. Each
* alternative may contain one or more of Items
,
* Entities
, or Transcript
.
*/
inline MedicalResult& WithAlternatives(const Aws::Vector& value) { SetAlternatives(value); return *this;}
/**
* A list of possible alternative transcriptions for the input audio. Each
* alternative may contain one or more of Items
,
* Entities
, or Transcript
.
*/
inline MedicalResult& WithAlternatives(Aws::Vector&& value) { SetAlternatives(std::move(value)); return *this;}
/**
* A list of possible alternative transcriptions for the input audio. Each
* alternative may contain one or more of Items
,
* Entities
, or Transcript
.
*/
inline MedicalResult& AddAlternatives(const MedicalAlternative& value) { m_alternativesHasBeenSet = true; m_alternatives.push_back(value); return *this; }
/**
* A list of possible alternative transcriptions for the input audio. Each
* alternative may contain one or more of Items
,
* Entities
, or Transcript
.
*/
inline MedicalResult& AddAlternatives(MedicalAlternative&& value) { m_alternativesHasBeenSet = true; m_alternatives.push_back(std::move(value)); return *this; }
/**
* Indicates the channel identified for the Result
.
*/
inline const Aws::String& GetChannelId() const{ return m_channelId; }
/**
* Indicates the channel identified for the Result
.
*/
inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
/**
* Indicates the channel identified for the Result
.
*/
inline void SetChannelId(const Aws::String& value) { m_channelIdHasBeenSet = true; m_channelId = value; }
/**
* Indicates the channel identified for the Result
.
*/
inline void SetChannelId(Aws::String&& value) { m_channelIdHasBeenSet = true; m_channelId = std::move(value); }
/**
* Indicates the channel identified for the Result
.
*/
inline void SetChannelId(const char* value) { m_channelIdHasBeenSet = true; m_channelId.assign(value); }
/**
* Indicates the channel identified for the Result
.
*/
inline MedicalResult& WithChannelId(const Aws::String& value) { SetChannelId(value); return *this;}
/**
* Indicates the channel identified for the Result
.
*/
inline MedicalResult& WithChannelId(Aws::String&& value) { SetChannelId(std::move(value)); return *this;}
/**
* Indicates the channel identified for the Result
.
*/
inline MedicalResult& WithChannelId(const char* value) { SetChannelId(value); return *this;}
private:
Aws::String m_resultId;
bool m_resultIdHasBeenSet = false;
double m_startTime;
bool m_startTimeHasBeenSet = false;
double m_endTime;
bool m_endTimeHasBeenSet = false;
bool m_isPartial;
bool m_isPartialHasBeenSet = false;
Aws::Vector m_alternatives;
bool m_alternativesHasBeenSet = false;
Aws::String m_channelId;
bool m_channelIdHasBeenSet = false;
};
} // namespace Model
} // namespace TranscribeStreamingService
} // namespace Aws