/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace TranscribeStreamingService { namespace Model { /** *

Represents the transcription result stream from Amazon Transcribe to your * application.

See Also:

AWS * API Reference

*/ class AWS_TRANSCRIBESTREAMINGSERVICE_API TranscriptResultStream { public: TranscriptResultStream(); TranscriptResultStream(Aws::Utils::Json::JsonView jsonValue); TranscriptResultStream& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

A portion of the transcription of the audio stream. Events are sent * periodically from Amazon Transcribe to your application. The event can be a * partial transcription of a section of the audio stream, or it can be the entire * transcription of that portion of the audio stream.

*/ inline const TranscriptEvent& GetTranscriptEvent() const{ return m_transcriptEvent; } /** *

A portion of the transcription of the audio stream. Events are sent * periodically from Amazon Transcribe to your application. The event can be a * partial transcription of a section of the audio stream, or it can be the entire * transcription of that portion of the audio stream.

*/ inline bool TranscriptEventHasBeenSet() const { return m_transcriptEventHasBeenSet; } /** *

A portion of the transcription of the audio stream. Events are sent * periodically from Amazon Transcribe to your application. The event can be a * partial transcription of a section of the audio stream, or it can be the entire * transcription of that portion of the audio stream.

*/ inline void SetTranscriptEvent(const TranscriptEvent& value) { m_transcriptEventHasBeenSet = true; m_transcriptEvent = value; } /** *

A portion of the transcription of the audio stream. Events are sent * periodically from Amazon Transcribe to your application. The event can be a * partial transcription of a section of the audio stream, or it can be the entire * transcription of that portion of the audio stream.

*/ inline void SetTranscriptEvent(TranscriptEvent&& value) { m_transcriptEventHasBeenSet = true; m_transcriptEvent = std::move(value); } /** *

A portion of the transcription of the audio stream. Events are sent * periodically from Amazon Transcribe to your application. The event can be a * partial transcription of a section of the audio stream, or it can be the entire * transcription of that portion of the audio stream.

*/ inline TranscriptResultStream& WithTranscriptEvent(const TranscriptEvent& value) { SetTranscriptEvent(value); return *this;} /** *

A portion of the transcription of the audio stream. Events are sent * periodically from Amazon Transcribe to your application. The event can be a * partial transcription of a section of the audio stream, or it can be the entire * transcription of that portion of the audio stream.

*/ inline TranscriptResultStream& WithTranscriptEvent(TranscriptEvent&& value) { SetTranscriptEvent(std::move(value)); return *this;} /** *

A client error occurred when the stream was created. Check the parameters of * the request and try your request again.

*/ inline const BadRequestException& GetBadRequestException() const{ return m_badRequestException; } /** *

A client error occurred when the stream was created. Check the parameters of * the request and try your request again.

*/ inline bool BadRequestExceptionHasBeenSet() const { return m_badRequestExceptionHasBeenSet; } /** *

A client error occurred when the stream was created. Check the parameters of * the request and try your request again.

*/ inline void SetBadRequestException(const BadRequestException& value) { m_badRequestExceptionHasBeenSet = true; m_badRequestException = value; } /** *

A client error occurred when the stream was created. Check the parameters of * the request and try your request again.

*/ inline void SetBadRequestException(BadRequestException&& value) { m_badRequestExceptionHasBeenSet = true; m_badRequestException = std::move(value); } /** *

A client error occurred when the stream was created. Check the parameters of * the request and try your request again.

*/ inline TranscriptResultStream& WithBadRequestException(const BadRequestException& value) { SetBadRequestException(value); return *this;} /** *

A client error occurred when the stream was created. Check the parameters of * the request and try your request again.

*/ inline TranscriptResultStream& WithBadRequestException(BadRequestException&& value) { SetBadRequestException(std::move(value)); return *this;} /** *

Your client has exceeded one of the Amazon Transcribe limits, typically the * limit on audio length. Break your audio stream into smaller chunks and try your * request again.

*/ inline const LimitExceededException& GetLimitExceededException() const{ return m_limitExceededException; } /** *

Your client has exceeded one of the Amazon Transcribe limits, typically the * limit on audio length. Break your audio stream into smaller chunks and try your * request again.

*/ inline bool LimitExceededExceptionHasBeenSet() const { return m_limitExceededExceptionHasBeenSet; } /** *

Your client has exceeded one of the Amazon Transcribe limits, typically the * limit on audio length. Break your audio stream into smaller chunks and try your * request again.

*/ inline void SetLimitExceededException(const LimitExceededException& value) { m_limitExceededExceptionHasBeenSet = true; m_limitExceededException = value; } /** *

Your client has exceeded one of the Amazon Transcribe limits, typically the * limit on audio length. Break your audio stream into smaller chunks and try your * request again.

*/ inline void SetLimitExceededException(LimitExceededException&& value) { m_limitExceededExceptionHasBeenSet = true; m_limitExceededException = std::move(value); } /** *

Your client has exceeded one of the Amazon Transcribe limits, typically the * limit on audio length. Break your audio stream into smaller chunks and try your * request again.

*/ inline TranscriptResultStream& WithLimitExceededException(const LimitExceededException& value) { SetLimitExceededException(value); return *this;} /** *

Your client has exceeded one of the Amazon Transcribe limits, typically the * limit on audio length. Break your audio stream into smaller chunks and try your * request again.

*/ inline TranscriptResultStream& WithLimitExceededException(LimitExceededException&& value) { SetLimitExceededException(std::move(value)); return *this;} /** *

A problem occurred while processing the audio. Amazon Transcribe terminated * processing.

*/ inline const InternalFailureException& GetInternalFailureException() const{ return m_internalFailureException; } /** *

A problem occurred while processing the audio. Amazon Transcribe terminated * processing.

*/ inline bool InternalFailureExceptionHasBeenSet() const { return m_internalFailureExceptionHasBeenSet; } /** *

A problem occurred while processing the audio. Amazon Transcribe terminated * processing.

*/ inline void SetInternalFailureException(const InternalFailureException& value) { m_internalFailureExceptionHasBeenSet = true; m_internalFailureException = value; } /** *

A problem occurred while processing the audio. Amazon Transcribe terminated * processing.

*/ inline void SetInternalFailureException(InternalFailureException&& value) { m_internalFailureExceptionHasBeenSet = true; m_internalFailureException = std::move(value); } /** *

A problem occurred while processing the audio. Amazon Transcribe terminated * processing.

*/ inline TranscriptResultStream& WithInternalFailureException(const InternalFailureException& value) { SetInternalFailureException(value); return *this;} /** *

A problem occurred while processing the audio. Amazon Transcribe terminated * processing.

*/ inline TranscriptResultStream& WithInternalFailureException(InternalFailureException&& value) { SetInternalFailureException(std::move(value)); return *this;} /** *

A new stream started with the same session ID. The current stream has been * terminated.

*/ inline const ConflictException& GetConflictException() const{ return m_conflictException; } /** *

A new stream started with the same session ID. The current stream has been * terminated.

*/ inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; } /** *

A new stream started with the same session ID. The current stream has been * terminated.

*/ inline void SetConflictException(const ConflictException& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = value; } /** *

A new stream started with the same session ID. The current stream has been * terminated.

*/ inline void SetConflictException(ConflictException&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::move(value); } /** *

A new stream started with the same session ID. The current stream has been * terminated.

*/ inline TranscriptResultStream& WithConflictException(const ConflictException& value) { SetConflictException(value); return *this;} /** *

A new stream started with the same session ID. The current stream has been * terminated.

*/ inline TranscriptResultStream& WithConflictException(ConflictException&& value) { SetConflictException(std::move(value)); return *this;} /** *

Service is currently unavailable. Try your request later.

*/ inline const ServiceUnavailableException& GetServiceUnavailableException() const{ return m_serviceUnavailableException; } /** *

Service is currently unavailable. Try your request later.

*/ inline bool ServiceUnavailableExceptionHasBeenSet() const { return m_serviceUnavailableExceptionHasBeenSet; } /** *

Service is currently unavailable. Try your request later.

*/ inline void SetServiceUnavailableException(const ServiceUnavailableException& value) { m_serviceUnavailableExceptionHasBeenSet = true; m_serviceUnavailableException = value; } /** *

Service is currently unavailable. Try your request later.

*/ inline void SetServiceUnavailableException(ServiceUnavailableException&& value) { m_serviceUnavailableExceptionHasBeenSet = true; m_serviceUnavailableException = std::move(value); } /** *

Service is currently unavailable. Try your request later.

*/ inline TranscriptResultStream& WithServiceUnavailableException(const ServiceUnavailableException& value) { SetServiceUnavailableException(value); return *this;} /** *

Service is currently unavailable. Try your request later.

*/ inline TranscriptResultStream& WithServiceUnavailableException(ServiceUnavailableException&& value) { SetServiceUnavailableException(std::move(value)); return *this;} private: TranscriptEvent m_transcriptEvent; bool m_transcriptEventHasBeenSet; BadRequestException m_badRequestException; bool m_badRequestExceptionHasBeenSet; LimitExceededException m_limitExceededException; bool m_limitExceededExceptionHasBeenSet; InternalFailureException m_internalFailureException; bool m_internalFailureExceptionHasBeenSet; ConflictException m_conflictException; bool m_conflictExceptionHasBeenSet; ServiceUnavailableException m_serviceUnavailableException; bool m_serviceUnavailableExceptionHasBeenSet; }; } // namespace Model } // namespace TranscribeStreamingService } // namespace Aws