#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartStreamTranscriptionOutput {
#[doc(hidden)]
pub request_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub language_code: std::option::Option<crate::model::LanguageCode>,
#[doc(hidden)]
pub media_sample_rate_hertz: std::option::Option<i32>,
#[doc(hidden)]
pub media_encoding: std::option::Option<crate::model::MediaEncoding>,
#[doc(hidden)]
pub vocabulary_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub session_id: std::option::Option<std::string::String>,
pub transcript_result_stream: aws_smithy_http::event_stream::Receiver<
crate::model::TranscriptResultStream,
crate::error::TranscriptResultStreamError,
>,
#[doc(hidden)]
pub vocabulary_filter_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub vocabulary_filter_method: std::option::Option<crate::model::VocabularyFilterMethod>,
#[doc(hidden)]
pub show_speaker_label: bool,
#[doc(hidden)]
pub enable_channel_identification: bool,
#[doc(hidden)]
pub number_of_channels: std::option::Option<i32>,
#[doc(hidden)]
pub enable_partial_results_stabilization: bool,
#[doc(hidden)]
pub partial_results_stability: std::option::Option<crate::model::PartialResultsStability>,
#[doc(hidden)]
pub content_identification_type: std::option::Option<crate::model::ContentIdentificationType>,
#[doc(hidden)]
pub content_redaction_type: std::option::Option<crate::model::ContentRedactionType>,
#[doc(hidden)]
pub pii_entity_types: std::option::Option<std::string::String>,
#[doc(hidden)]
pub language_model_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub identify_language: bool,
#[doc(hidden)]
pub language_options: std::option::Option<std::string::String>,
#[doc(hidden)]
pub preferred_language: std::option::Option<crate::model::LanguageCode>,
#[doc(hidden)]
pub vocabulary_names: std::option::Option<std::string::String>,
#[doc(hidden)]
pub vocabulary_filter_names: std::option::Option<std::string::String>,
}
impl StartStreamTranscriptionOutput {
pub fn request_id(&self) -> std::option::Option<&str> {
self.request_id.as_deref()
}
pub fn language_code(&self) -> std::option::Option<&crate::model::LanguageCode> {
self.language_code.as_ref()
}
pub fn media_sample_rate_hertz(&self) -> std::option::Option<i32> {
self.media_sample_rate_hertz
}
pub fn media_encoding(&self) -> std::option::Option<&crate::model::MediaEncoding> {
self.media_encoding.as_ref()
}
pub fn vocabulary_name(&self) -> std::option::Option<&str> {
self.vocabulary_name.as_deref()
}
pub fn session_id(&self) -> std::option::Option<&str> {
self.session_id.as_deref()
}
pub fn transcript_result_stream(
&self,
) -> &aws_smithy_http::event_stream::Receiver<
crate::model::TranscriptResultStream,
crate::error::TranscriptResultStreamError,
> {
&self.transcript_result_stream
}
pub fn vocabulary_filter_name(&self) -> std::option::Option<&str> {
self.vocabulary_filter_name.as_deref()
}
pub fn vocabulary_filter_method(
&self,
) -> std::option::Option<&crate::model::VocabularyFilterMethod> {
self.vocabulary_filter_method.as_ref()
}
pub fn show_speaker_label(&self) -> bool {
self.show_speaker_label
}
pub fn enable_channel_identification(&self) -> bool {
self.enable_channel_identification
}
pub fn number_of_channels(&self) -> std::option::Option<i32> {
self.number_of_channels
}
pub fn enable_partial_results_stabilization(&self) -> bool {
self.enable_partial_results_stabilization
}
pub fn partial_results_stability(
&self,
) -> std::option::Option<&crate::model::PartialResultsStability> {
self.partial_results_stability.as_ref()
}
pub fn content_identification_type(
&self,
) -> std::option::Option<&crate::model::ContentIdentificationType> {
self.content_identification_type.as_ref()
}
pub fn content_redaction_type(
&self,
) -> std::option::Option<&crate::model::ContentRedactionType> {
self.content_redaction_type.as_ref()
}
pub fn pii_entity_types(&self) -> std::option::Option<&str> {
self.pii_entity_types.as_deref()
}
pub fn language_model_name(&self) -> std::option::Option<&str> {
self.language_model_name.as_deref()
}
pub fn identify_language(&self) -> bool {
self.identify_language
}
pub fn language_options(&self) -> std::option::Option<&str> {
self.language_options.as_deref()
}
pub fn preferred_language(&self) -> std::option::Option<&crate::model::LanguageCode> {
self.preferred_language.as_ref()
}
pub fn vocabulary_names(&self) -> std::option::Option<&str> {
self.vocabulary_names.as_deref()
}
pub fn vocabulary_filter_names(&self) -> std::option::Option<&str> {
self.vocabulary_filter_names.as_deref()
}
}
pub mod start_stream_transcription_output {
#[derive(std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) request_id: std::option::Option<std::string::String>,
pub(crate) language_code: std::option::Option<crate::model::LanguageCode>,
pub(crate) media_sample_rate_hertz: std::option::Option<i32>,
pub(crate) media_encoding: std::option::Option<crate::model::MediaEncoding>,
pub(crate) vocabulary_name: std::option::Option<std::string::String>,
pub(crate) session_id: std::option::Option<std::string::String>,
pub(crate) transcript_result_stream: std::option::Option<
aws_smithy_http::event_stream::Receiver<
crate::model::TranscriptResultStream,
crate::error::TranscriptResultStreamError,
>,
>,
pub(crate) vocabulary_filter_name: std::option::Option<std::string::String>,
pub(crate) vocabulary_filter_method:
std::option::Option<crate::model::VocabularyFilterMethod>,
pub(crate) show_speaker_label: std::option::Option<bool>,
pub(crate) enable_channel_identification: std::option::Option<bool>,
pub(crate) number_of_channels: std::option::Option<i32>,
pub(crate) enable_partial_results_stabilization: std::option::Option<bool>,
pub(crate) partial_results_stability:
std::option::Option<crate::model::PartialResultsStability>,
pub(crate) content_identification_type:
std::option::Option<crate::model::ContentIdentificationType>,
pub(crate) content_redaction_type: std::option::Option<crate::model::ContentRedactionType>,
pub(crate) pii_entity_types: std::option::Option<std::string::String>,
pub(crate) language_model_name: std::option::Option<std::string::String>,
pub(crate) identify_language: std::option::Option<bool>,
pub(crate) language_options: std::option::Option<std::string::String>,
pub(crate) preferred_language: std::option::Option<crate::model::LanguageCode>,
pub(crate) vocabulary_names: std::option::Option<std::string::String>,
pub(crate) vocabulary_filter_names: std::option::Option<std::string::String>,
}
impl Builder {
pub fn request_id(mut self, input: impl Into<std::string::String>) -> Self {
self.request_id = Some(input.into());
self
}
pub fn set_request_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.request_id = input;
self
}
pub fn language_code(mut self, input: crate::model::LanguageCode) -> Self {
self.language_code = Some(input);
self
}
pub fn set_language_code(
mut self,
input: std::option::Option<crate::model::LanguageCode>,
) -> Self {
self.language_code = input;
self
}
pub fn media_sample_rate_hertz(mut self, input: i32) -> Self {
self.media_sample_rate_hertz = Some(input);
self
}
pub fn set_media_sample_rate_hertz(mut self, input: std::option::Option<i32>) -> Self {
self.media_sample_rate_hertz = input;
self
}
pub fn media_encoding(mut self, input: crate::model::MediaEncoding) -> Self {
self.media_encoding = Some(input);
self
}
pub fn set_media_encoding(
mut self,
input: std::option::Option<crate::model::MediaEncoding>,
) -> Self {
self.media_encoding = input;
self
}
pub fn vocabulary_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vocabulary_name = Some(input.into());
self
}
pub fn set_vocabulary_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.vocabulary_name = input;
self
}
pub fn session_id(mut self, input: impl Into<std::string::String>) -> Self {
self.session_id = Some(input.into());
self
}
pub fn set_session_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.session_id = input;
self
}
pub fn transcript_result_stream(
mut self,
input: aws_smithy_http::event_stream::Receiver<
crate::model::TranscriptResultStream,
crate::error::TranscriptResultStreamError,
>,
) -> Self {
self.transcript_result_stream = Some(input);
self
}
pub fn set_transcript_result_stream(
mut self,
input: std::option::Option<
aws_smithy_http::event_stream::Receiver<
crate::model::TranscriptResultStream,
crate::error::TranscriptResultStreamError,
>,
>,
) -> Self {
self.transcript_result_stream = input;
self
}
pub fn vocabulary_filter_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vocabulary_filter_name = Some(input.into());
self
}
pub fn set_vocabulary_filter_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.vocabulary_filter_name = input;
self
}
pub fn vocabulary_filter_method(
mut self,
input: crate::model::VocabularyFilterMethod,
) -> Self {
self.vocabulary_filter_method = Some(input);
self
}
pub fn set_vocabulary_filter_method(
mut self,
input: std::option::Option<crate::model::VocabularyFilterMethod>,
) -> Self {
self.vocabulary_filter_method = input;
self
}
pub fn show_speaker_label(mut self, input: bool) -> Self {
self.show_speaker_label = Some(input);
self
}
pub fn set_show_speaker_label(mut self, input: std::option::Option<bool>) -> Self {
self.show_speaker_label = input;
self
}
pub fn enable_channel_identification(mut self, input: bool) -> Self {
self.enable_channel_identification = Some(input);
self
}
pub fn set_enable_channel_identification(
mut self,
input: std::option::Option<bool>,
) -> Self {
self.enable_channel_identification = input;
self
}
pub fn number_of_channels(mut self, input: i32) -> Self {
self.number_of_channels = Some(input);
self
}
pub fn set_number_of_channels(mut self, input: std::option::Option<i32>) -> Self {
self.number_of_channels = input;
self
}
pub fn enable_partial_results_stabilization(mut self, input: bool) -> Self {
self.enable_partial_results_stabilization = Some(input);
self
}
pub fn set_enable_partial_results_stabilization(
mut self,
input: std::option::Option<bool>,
) -> Self {
self.enable_partial_results_stabilization = input;
self
}
pub fn partial_results_stability(
mut self,
input: crate::model::PartialResultsStability,
) -> Self {
self.partial_results_stability = Some(input);
self
}
pub fn set_partial_results_stability(
mut self,
input: std::option::Option<crate::model::PartialResultsStability>,
) -> Self {
self.partial_results_stability = input;
self
}
pub fn content_identification_type(
mut self,
input: crate::model::ContentIdentificationType,
) -> Self {
self.content_identification_type = Some(input);
self
}
pub fn set_content_identification_type(
mut self,
input: std::option::Option<crate::model::ContentIdentificationType>,
) -> Self {
self.content_identification_type = input;
self
}
pub fn content_redaction_type(mut self, input: crate::model::ContentRedactionType) -> Self {
self.content_redaction_type = Some(input);
self
}
pub fn set_content_redaction_type(
mut self,
input: std::option::Option<crate::model::ContentRedactionType>,
) -> Self {
self.content_redaction_type = input;
self
}
pub fn pii_entity_types(mut self, input: impl Into<std::string::String>) -> Self {
self.pii_entity_types = Some(input.into());
self
}
pub fn set_pii_entity_types(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.pii_entity_types = input;
self
}
pub fn language_model_name(mut self, input: impl Into<std::string::String>) -> Self {
self.language_model_name = Some(input.into());
self
}
pub fn set_language_model_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.language_model_name = input;
self
}
pub fn identify_language(mut self, input: bool) -> Self {
self.identify_language = Some(input);
self
}
pub fn set_identify_language(mut self, input: std::option::Option<bool>) -> Self {
self.identify_language = input;
self
}
pub fn language_options(mut self, input: impl Into<std::string::String>) -> Self {
self.language_options = Some(input.into());
self
}
pub fn set_language_options(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.language_options = input;
self
}
pub fn preferred_language(mut self, input: crate::model::LanguageCode) -> Self {
self.preferred_language = Some(input);
self
}
pub fn set_preferred_language(
mut self,
input: std::option::Option<crate::model::LanguageCode>,
) -> Self {
self.preferred_language = input;
self
}
pub fn vocabulary_names(mut self, input: impl Into<std::string::String>) -> Self {
self.vocabulary_names = Some(input.into());
self
}
pub fn set_vocabulary_names(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.vocabulary_names = input;
self
}
pub fn vocabulary_filter_names(mut self, input: impl Into<std::string::String>) -> Self {
self.vocabulary_filter_names = Some(input.into());
self
}
pub fn set_vocabulary_filter_names(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.vocabulary_filter_names = input;
self
}
pub fn build(
self,
) -> Result<
crate::output::StartStreamTranscriptionOutput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::output::StartStreamTranscriptionOutput {
request_id: self.request_id
,
language_code: self.language_code
,
media_sample_rate_hertz: self.media_sample_rate_hertz
,
media_encoding: self.media_encoding
,
vocabulary_name: self.vocabulary_name
,
session_id: self.session_id
,
transcript_result_stream: self.transcript_result_stream
.ok_or_else(||
aws_smithy_http::operation::error::BuildError::missing_field("transcript_result_stream", "transcript_result_stream was not specified but it is required when building StartStreamTranscriptionOutput")
)?
,
vocabulary_filter_name: self.vocabulary_filter_name
,
vocabulary_filter_method: self.vocabulary_filter_method
,
show_speaker_label: self.show_speaker_label
.unwrap_or_default()
,
enable_channel_identification: self.enable_channel_identification
.unwrap_or_default()
,
number_of_channels: self.number_of_channels
,
enable_partial_results_stabilization: self.enable_partial_results_stabilization
.unwrap_or_default()
,
partial_results_stability: self.partial_results_stability
,
content_identification_type: self.content_identification_type
,
content_redaction_type: self.content_redaction_type
,
pii_entity_types: self.pii_entity_types
,
language_model_name: self.language_model_name
,
identify_language: self.identify_language
.unwrap_or_default()
,
language_options: self.language_options
,
preferred_language: self.preferred_language
,
vocabulary_names: self.vocabulary_names
,
vocabulary_filter_names: self.vocabulary_filter_names
,
}
)
}
}
}
impl StartStreamTranscriptionOutput {
pub fn builder() -> crate::output::start_stream_transcription_output::Builder {
crate::output::start_stream_transcription_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartMedicalStreamTranscriptionOutput {
#[doc(hidden)]
pub request_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub language_code: std::option::Option<crate::model::LanguageCode>,
#[doc(hidden)]
pub media_sample_rate_hertz: std::option::Option<i32>,
#[doc(hidden)]
pub media_encoding: std::option::Option<crate::model::MediaEncoding>,
#[doc(hidden)]
pub vocabulary_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub specialty: std::option::Option<crate::model::Specialty>,
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::Type>,
#[doc(hidden)]
pub show_speaker_label: bool,
#[doc(hidden)]
pub session_id: std::option::Option<std::string::String>,
pub transcript_result_stream: aws_smithy_http::event_stream::Receiver<
crate::model::MedicalTranscriptResultStream,
crate::error::MedicalTranscriptResultStreamError,
>,
#[doc(hidden)]
pub enable_channel_identification: bool,
#[doc(hidden)]
pub number_of_channels: std::option::Option<i32>,
#[doc(hidden)]
pub content_identification_type:
std::option::Option<crate::model::MedicalContentIdentificationType>,
}
impl StartMedicalStreamTranscriptionOutput {
pub fn request_id(&self) -> std::option::Option<&str> {
self.request_id.as_deref()
}
pub fn language_code(&self) -> std::option::Option<&crate::model::LanguageCode> {
self.language_code.as_ref()
}
pub fn media_sample_rate_hertz(&self) -> std::option::Option<i32> {
self.media_sample_rate_hertz
}
pub fn media_encoding(&self) -> std::option::Option<&crate::model::MediaEncoding> {
self.media_encoding.as_ref()
}
pub fn vocabulary_name(&self) -> std::option::Option<&str> {
self.vocabulary_name.as_deref()
}
pub fn specialty(&self) -> std::option::Option<&crate::model::Specialty> {
self.specialty.as_ref()
}
pub fn r#type(&self) -> std::option::Option<&crate::model::Type> {
self.r#type.as_ref()
}
pub fn show_speaker_label(&self) -> bool {
self.show_speaker_label
}
pub fn session_id(&self) -> std::option::Option<&str> {
self.session_id.as_deref()
}
pub fn transcript_result_stream(
&self,
) -> &aws_smithy_http::event_stream::Receiver<
crate::model::MedicalTranscriptResultStream,
crate::error::MedicalTranscriptResultStreamError,
> {
&self.transcript_result_stream
}
pub fn enable_channel_identification(&self) -> bool {
self.enable_channel_identification
}
pub fn number_of_channels(&self) -> std::option::Option<i32> {
self.number_of_channels
}
pub fn content_identification_type(
&self,
) -> std::option::Option<&crate::model::MedicalContentIdentificationType> {
self.content_identification_type.as_ref()
}
}
pub mod start_medical_stream_transcription_output {
#[derive(std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) request_id: std::option::Option<std::string::String>,
pub(crate) language_code: std::option::Option<crate::model::LanguageCode>,
pub(crate) media_sample_rate_hertz: std::option::Option<i32>,
pub(crate) media_encoding: std::option::Option<crate::model::MediaEncoding>,
pub(crate) vocabulary_name: std::option::Option<std::string::String>,
pub(crate) specialty: std::option::Option<crate::model::Specialty>,
pub(crate) r#type: std::option::Option<crate::model::Type>,
pub(crate) show_speaker_label: std::option::Option<bool>,
pub(crate) session_id: std::option::Option<std::string::String>,
pub(crate) transcript_result_stream: std::option::Option<
aws_smithy_http::event_stream::Receiver<
crate::model::MedicalTranscriptResultStream,
crate::error::MedicalTranscriptResultStreamError,
>,
>,
pub(crate) enable_channel_identification: std::option::Option<bool>,
pub(crate) number_of_channels: std::option::Option<i32>,
pub(crate) content_identification_type:
std::option::Option<crate::model::MedicalContentIdentificationType>,
}
impl Builder {
pub fn request_id(mut self, input: impl Into<std::string::String>) -> Self {
self.request_id = Some(input.into());
self
}
pub fn set_request_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.request_id = input;
self
}
pub fn language_code(mut self, input: crate::model::LanguageCode) -> Self {
self.language_code = Some(input);
self
}
pub fn set_language_code(
mut self,
input: std::option::Option<crate::model::LanguageCode>,
) -> Self {
self.language_code = input;
self
}
pub fn media_sample_rate_hertz(mut self, input: i32) -> Self {
self.media_sample_rate_hertz = Some(input);
self
}
pub fn set_media_sample_rate_hertz(mut self, input: std::option::Option<i32>) -> Self {
self.media_sample_rate_hertz = input;
self
}
pub fn media_encoding(mut self, input: crate::model::MediaEncoding) -> Self {
self.media_encoding = Some(input);
self
}
pub fn set_media_encoding(
mut self,
input: std::option::Option<crate::model::MediaEncoding>,
) -> Self {
self.media_encoding = input;
self
}
pub fn vocabulary_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vocabulary_name = Some(input.into());
self
}
pub fn set_vocabulary_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.vocabulary_name = input;
self
}
pub fn specialty(mut self, input: crate::model::Specialty) -> Self {
self.specialty = Some(input);
self
}
pub fn set_specialty(
mut self,
input: std::option::Option<crate::model::Specialty>,
) -> Self {
self.specialty = input;
self
}
pub fn r#type(mut self, input: crate::model::Type) -> Self {
self.r#type = Some(input);
self
}
pub fn set_type(mut self, input: std::option::Option<crate::model::Type>) -> Self {
self.r#type = input;
self
}
pub fn show_speaker_label(mut self, input: bool) -> Self {
self.show_speaker_label = Some(input);
self
}
pub fn set_show_speaker_label(mut self, input: std::option::Option<bool>) -> Self {
self.show_speaker_label = input;
self
}
pub fn session_id(mut self, input: impl Into<std::string::String>) -> Self {
self.session_id = Some(input.into());
self
}
pub fn set_session_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.session_id = input;
self
}
pub fn transcript_result_stream(
mut self,
input: aws_smithy_http::event_stream::Receiver<
crate::model::MedicalTranscriptResultStream,
crate::error::MedicalTranscriptResultStreamError,
>,
) -> Self {
self.transcript_result_stream = Some(input);
self
}
pub fn set_transcript_result_stream(
mut self,
input: std::option::Option<
aws_smithy_http::event_stream::Receiver<
crate::model::MedicalTranscriptResultStream,
crate::error::MedicalTranscriptResultStreamError,
>,
>,
) -> Self {
self.transcript_result_stream = input;
self
}
pub fn enable_channel_identification(mut self, input: bool) -> Self {
self.enable_channel_identification = Some(input);
self
}
pub fn set_enable_channel_identification(
mut self,
input: std::option::Option<bool>,
) -> Self {
self.enable_channel_identification = input;
self
}
pub fn number_of_channels(mut self, input: i32) -> Self {
self.number_of_channels = Some(input);
self
}
pub fn set_number_of_channels(mut self, input: std::option::Option<i32>) -> Self {
self.number_of_channels = input;
self
}
pub fn content_identification_type(
mut self,
input: crate::model::MedicalContentIdentificationType,
) -> Self {
self.content_identification_type = Some(input);
self
}
pub fn set_content_identification_type(
mut self,
input: std::option::Option<crate::model::MedicalContentIdentificationType>,
) -> Self {
self.content_identification_type = input;
self
}
pub fn build(
self,
) -> Result<
crate::output::StartMedicalStreamTranscriptionOutput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::output::StartMedicalStreamTranscriptionOutput {
request_id: self.request_id
,
language_code: self.language_code
,
media_sample_rate_hertz: self.media_sample_rate_hertz
,
media_encoding: self.media_encoding
,
vocabulary_name: self.vocabulary_name
,
specialty: self.specialty
,
r#type: self.r#type
,
show_speaker_label: self.show_speaker_label
.unwrap_or_default()
,
session_id: self.session_id
,
transcript_result_stream: self.transcript_result_stream
.ok_or_else(||
aws_smithy_http::operation::error::BuildError::missing_field("transcript_result_stream", "transcript_result_stream was not specified but it is required when building StartMedicalStreamTranscriptionOutput")
)?
,
enable_channel_identification: self.enable_channel_identification
.unwrap_or_default()
,
number_of_channels: self.number_of_channels
,
content_identification_type: self.content_identification_type
,
}
)
}
}
}
impl StartMedicalStreamTranscriptionOutput {
pub fn builder() -> crate::output::start_medical_stream_transcription_output::Builder {
crate::output::start_medical_stream_transcription_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartCallAnalyticsStreamTranscriptionOutput {
#[doc(hidden)]
pub request_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub language_code: std::option::Option<crate::model::CallAnalyticsLanguageCode>,
#[doc(hidden)]
pub media_sample_rate_hertz: std::option::Option<i32>,
#[doc(hidden)]
pub media_encoding: std::option::Option<crate::model::MediaEncoding>,
#[doc(hidden)]
pub vocabulary_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub session_id: std::option::Option<std::string::String>,
pub call_analytics_transcript_result_stream: aws_smithy_http::event_stream::Receiver<
crate::model::CallAnalyticsTranscriptResultStream,
crate::error::CallAnalyticsTranscriptResultStreamError,
>,
#[doc(hidden)]
pub vocabulary_filter_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub vocabulary_filter_method: std::option::Option<crate::model::VocabularyFilterMethod>,
#[doc(hidden)]
pub language_model_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub enable_partial_results_stabilization: bool,
#[doc(hidden)]
pub partial_results_stability: std::option::Option<crate::model::PartialResultsStability>,
#[doc(hidden)]
pub content_identification_type: std::option::Option<crate::model::ContentIdentificationType>,
#[doc(hidden)]
pub content_redaction_type: std::option::Option<crate::model::ContentRedactionType>,
#[doc(hidden)]
pub pii_entity_types: std::option::Option<std::string::String>,
}
impl StartCallAnalyticsStreamTranscriptionOutput {
pub fn request_id(&self) -> std::option::Option<&str> {
self.request_id.as_deref()
}
pub fn language_code(&self) -> std::option::Option<&crate::model::CallAnalyticsLanguageCode> {
self.language_code.as_ref()
}
pub fn media_sample_rate_hertz(&self) -> std::option::Option<i32> {
self.media_sample_rate_hertz
}
pub fn media_encoding(&self) -> std::option::Option<&crate::model::MediaEncoding> {
self.media_encoding.as_ref()
}
pub fn vocabulary_name(&self) -> std::option::Option<&str> {
self.vocabulary_name.as_deref()
}
pub fn session_id(&self) -> std::option::Option<&str> {
self.session_id.as_deref()
}
pub fn call_analytics_transcript_result_stream(
&self,
) -> &aws_smithy_http::event_stream::Receiver<
crate::model::CallAnalyticsTranscriptResultStream,
crate::error::CallAnalyticsTranscriptResultStreamError,
> {
&self.call_analytics_transcript_result_stream
}
pub fn vocabulary_filter_name(&self) -> std::option::Option<&str> {
self.vocabulary_filter_name.as_deref()
}
pub fn vocabulary_filter_method(
&self,
) -> std::option::Option<&crate::model::VocabularyFilterMethod> {
self.vocabulary_filter_method.as_ref()
}
pub fn language_model_name(&self) -> std::option::Option<&str> {
self.language_model_name.as_deref()
}
pub fn enable_partial_results_stabilization(&self) -> bool {
self.enable_partial_results_stabilization
}
pub fn partial_results_stability(
&self,
) -> std::option::Option<&crate::model::PartialResultsStability> {
self.partial_results_stability.as_ref()
}
pub fn content_identification_type(
&self,
) -> std::option::Option<&crate::model::ContentIdentificationType> {
self.content_identification_type.as_ref()
}
pub fn content_redaction_type(
&self,
) -> std::option::Option<&crate::model::ContentRedactionType> {
self.content_redaction_type.as_ref()
}
pub fn pii_entity_types(&self) -> std::option::Option<&str> {
self.pii_entity_types.as_deref()
}
}
pub mod start_call_analytics_stream_transcription_output {
#[derive(std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) request_id: std::option::Option<std::string::String>,
pub(crate) language_code: std::option::Option<crate::model::CallAnalyticsLanguageCode>,
pub(crate) media_sample_rate_hertz: std::option::Option<i32>,
pub(crate) media_encoding: std::option::Option<crate::model::MediaEncoding>,
pub(crate) vocabulary_name: std::option::Option<std::string::String>,
pub(crate) session_id: std::option::Option<std::string::String>,
pub(crate) call_analytics_transcript_result_stream: std::option::Option<
aws_smithy_http::event_stream::Receiver<
crate::model::CallAnalyticsTranscriptResultStream,
crate::error::CallAnalyticsTranscriptResultStreamError,
>,
>,
pub(crate) vocabulary_filter_name: std::option::Option<std::string::String>,
pub(crate) vocabulary_filter_method:
std::option::Option<crate::model::VocabularyFilterMethod>,
pub(crate) language_model_name: std::option::Option<std::string::String>,
pub(crate) enable_partial_results_stabilization: std::option::Option<bool>,
pub(crate) partial_results_stability:
std::option::Option<crate::model::PartialResultsStability>,
pub(crate) content_identification_type:
std::option::Option<crate::model::ContentIdentificationType>,
pub(crate) content_redaction_type: std::option::Option<crate::model::ContentRedactionType>,
pub(crate) pii_entity_types: std::option::Option<std::string::String>,
}
impl Builder {
pub fn request_id(mut self, input: impl Into<std::string::String>) -> Self {
self.request_id = Some(input.into());
self
}
pub fn set_request_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.request_id = input;
self
}
pub fn language_code(mut self, input: crate::model::CallAnalyticsLanguageCode) -> Self {
self.language_code = Some(input);
self
}
pub fn set_language_code(
mut self,
input: std::option::Option<crate::model::CallAnalyticsLanguageCode>,
) -> Self {
self.language_code = input;
self
}
pub fn media_sample_rate_hertz(mut self, input: i32) -> Self {
self.media_sample_rate_hertz = Some(input);
self
}
pub fn set_media_sample_rate_hertz(mut self, input: std::option::Option<i32>) -> Self {
self.media_sample_rate_hertz = input;
self
}
pub fn media_encoding(mut self, input: crate::model::MediaEncoding) -> Self {
self.media_encoding = Some(input);
self
}
pub fn set_media_encoding(
mut self,
input: std::option::Option<crate::model::MediaEncoding>,
) -> Self {
self.media_encoding = input;
self
}
pub fn vocabulary_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vocabulary_name = Some(input.into());
self
}
pub fn set_vocabulary_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.vocabulary_name = input;
self
}
pub fn session_id(mut self, input: impl Into<std::string::String>) -> Self {
self.session_id = Some(input.into());
self
}
pub fn set_session_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.session_id = input;
self
}
pub fn call_analytics_transcript_result_stream(
mut self,
input: aws_smithy_http::event_stream::Receiver<
crate::model::CallAnalyticsTranscriptResultStream,
crate::error::CallAnalyticsTranscriptResultStreamError,
>,
) -> Self {
self.call_analytics_transcript_result_stream = Some(input);
self
}
pub fn set_call_analytics_transcript_result_stream(
mut self,
input: std::option::Option<
aws_smithy_http::event_stream::Receiver<
crate::model::CallAnalyticsTranscriptResultStream,
crate::error::CallAnalyticsTranscriptResultStreamError,
>,
>,
) -> Self {
self.call_analytics_transcript_result_stream = input;
self
}
pub fn vocabulary_filter_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vocabulary_filter_name = Some(input.into());
self
}
pub fn set_vocabulary_filter_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.vocabulary_filter_name = input;
self
}
pub fn vocabulary_filter_method(
mut self,
input: crate::model::VocabularyFilterMethod,
) -> Self {
self.vocabulary_filter_method = Some(input);
self
}
pub fn set_vocabulary_filter_method(
mut self,
input: std::option::Option<crate::model::VocabularyFilterMethod>,
) -> Self {
self.vocabulary_filter_method = input;
self
}
pub fn language_model_name(mut self, input: impl Into<std::string::String>) -> Self {
self.language_model_name = Some(input.into());
self
}
pub fn set_language_model_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.language_model_name = input;
self
}
pub fn enable_partial_results_stabilization(mut self, input: bool) -> Self {
self.enable_partial_results_stabilization = Some(input);
self
}
pub fn set_enable_partial_results_stabilization(
mut self,
input: std::option::Option<bool>,
) -> Self {
self.enable_partial_results_stabilization = input;
self
}
pub fn partial_results_stability(
mut self,
input: crate::model::PartialResultsStability,
) -> Self {
self.partial_results_stability = Some(input);
self
}
pub fn set_partial_results_stability(
mut self,
input: std::option::Option<crate::model::PartialResultsStability>,
) -> Self {
self.partial_results_stability = input;
self
}
pub fn content_identification_type(
mut self,
input: crate::model::ContentIdentificationType,
) -> Self {
self.content_identification_type = Some(input);
self
}
pub fn set_content_identification_type(
mut self,
input: std::option::Option<crate::model::ContentIdentificationType>,
) -> Self {
self.content_identification_type = input;
self
}
pub fn content_redaction_type(mut self, input: crate::model::ContentRedactionType) -> Self {
self.content_redaction_type = Some(input);
self
}
pub fn set_content_redaction_type(
mut self,
input: std::option::Option<crate::model::ContentRedactionType>,
) -> Self {
self.content_redaction_type = input;
self
}
pub fn pii_entity_types(mut self, input: impl Into<std::string::String>) -> Self {
self.pii_entity_types = Some(input.into());
self
}
pub fn set_pii_entity_types(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.pii_entity_types = input;
self
}
pub fn build(
self,
) -> Result<
crate::output::StartCallAnalyticsStreamTranscriptionOutput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::output::StartCallAnalyticsStreamTranscriptionOutput {
request_id: self.request_id
,
language_code: self.language_code
,
media_sample_rate_hertz: self.media_sample_rate_hertz
,
media_encoding: self.media_encoding
,
vocabulary_name: self.vocabulary_name
,
session_id: self.session_id
,
call_analytics_transcript_result_stream: self.call_analytics_transcript_result_stream
.ok_or_else(||
aws_smithy_http::operation::error::BuildError::missing_field("call_analytics_transcript_result_stream", "call_analytics_transcript_result_stream was not specified but it is required when building StartCallAnalyticsStreamTranscriptionOutput")
)?
,
vocabulary_filter_name: self.vocabulary_filter_name
,
vocabulary_filter_method: self.vocabulary_filter_method
,
language_model_name: self.language_model_name
,
enable_partial_results_stabilization: self.enable_partial_results_stabilization
.unwrap_or_default()
,
partial_results_stability: self.partial_results_stability
,
content_identification_type: self.content_identification_type
,
content_redaction_type: self.content_redaction_type
,
pii_entity_types: self.pii_entity_types
,
}
)
}
}
}
impl StartCallAnalyticsStreamTranscriptionOutput {
pub fn builder() -> crate::output::start_call_analytics_stream_transcription_output::Builder {
crate::output::start_call_analytics_stream_transcription_output::Builder::default()
}
}