1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Provides you with the Amazon S3 URI you can use to access your transcript.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Transcript {
/// <p>The Amazon S3 location of your transcript. You can use this URI to access or download your transcript.</p>
/// <p>If you included <code>OutputBucketName</code> in your transcription job request, this is the URI of that bucket. If you also included <code>OutputKey</code> in your request, your output is located in the path you specified in your request.</p>
/// <p>If you didn't include <code>OutputBucketName</code> in your transcription job request, your transcript is stored in a service-managed bucket, and <code>TranscriptFileUri</code> provides you with a temporary URI you can use for secure access to your transcript.</p><note>
/// <p>Temporary URIs for service-managed Amazon S3 buckets are only valid for 15 minutes. If you get an <code>AccesDenied</code> error, you can get a new temporary URI by running a <code>GetTranscriptionJob</code> or <code>ListTranscriptionJob</code> request.</p>
/// </note>
pub transcript_file_uri: ::std::option::Option<::std::string::String>,
/// <p>The Amazon S3 location of your redacted transcript. You can use this URI to access or download your transcript.</p>
/// <p>If you included <code>OutputBucketName</code> in your transcription job request, this is the URI of that bucket. If you also included <code>OutputKey</code> in your request, your output is located in the path you specified in your request.</p>
/// <p>If you didn't include <code>OutputBucketName</code> in your transcription job request, your transcript is stored in a service-managed bucket, and <code>RedactedTranscriptFileUri</code> provides you with a temporary URI you can use for secure access to your transcript.</p><note>
/// <p>Temporary URIs for service-managed Amazon S3 buckets are only valid for 15 minutes. If you get an <code>AccesDenied</code> error, you can get a new temporary URI by running a <code>GetTranscriptionJob</code> or <code>ListTranscriptionJob</code> request.</p>
/// </note>
pub redacted_transcript_file_uri: ::std::option::Option<::std::string::String>,
}
impl Transcript {
/// <p>The Amazon S3 location of your transcript. You can use this URI to access or download your transcript.</p>
/// <p>If you included <code>OutputBucketName</code> in your transcription job request, this is the URI of that bucket. If you also included <code>OutputKey</code> in your request, your output is located in the path you specified in your request.</p>
/// <p>If you didn't include <code>OutputBucketName</code> in your transcription job request, your transcript is stored in a service-managed bucket, and <code>TranscriptFileUri</code> provides you with a temporary URI you can use for secure access to your transcript.</p><note>
/// <p>Temporary URIs for service-managed Amazon S3 buckets are only valid for 15 minutes. If you get an <code>AccesDenied</code> error, you can get a new temporary URI by running a <code>GetTranscriptionJob</code> or <code>ListTranscriptionJob</code> request.</p>
/// </note>
pub fn transcript_file_uri(&self) -> ::std::option::Option<&str> {
self.transcript_file_uri.as_deref()
}
/// <p>The Amazon S3 location of your redacted transcript. You can use this URI to access or download your transcript.</p>
/// <p>If you included <code>OutputBucketName</code> in your transcription job request, this is the URI of that bucket. If you also included <code>OutputKey</code> in your request, your output is located in the path you specified in your request.</p>
/// <p>If you didn't include <code>OutputBucketName</code> in your transcription job request, your transcript is stored in a service-managed bucket, and <code>RedactedTranscriptFileUri</code> provides you with a temporary URI you can use for secure access to your transcript.</p><note>
/// <p>Temporary URIs for service-managed Amazon S3 buckets are only valid for 15 minutes. If you get an <code>AccesDenied</code> error, you can get a new temporary URI by running a <code>GetTranscriptionJob</code> or <code>ListTranscriptionJob</code> request.</p>
/// </note>
pub fn redacted_transcript_file_uri(&self) -> ::std::option::Option<&str> {
self.redacted_transcript_file_uri.as_deref()
}
}
impl Transcript {
/// Creates a new builder-style object to manufacture [`Transcript`](crate::types::Transcript).
pub fn builder() -> crate::types::builders::TranscriptBuilder {
crate::types::builders::TranscriptBuilder::default()
}
}
/// A builder for [`Transcript`](crate::types::Transcript).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct TranscriptBuilder {
pub(crate) transcript_file_uri: ::std::option::Option<::std::string::String>,
pub(crate) redacted_transcript_file_uri: ::std::option::Option<::std::string::String>,
}
impl TranscriptBuilder {
/// <p>The Amazon S3 location of your transcript. You can use this URI to access or download your transcript.</p>
/// <p>If you included <code>OutputBucketName</code> in your transcription job request, this is the URI of that bucket. If you also included <code>OutputKey</code> in your request, your output is located in the path you specified in your request.</p>
/// <p>If you didn't include <code>OutputBucketName</code> in your transcription job request, your transcript is stored in a service-managed bucket, and <code>TranscriptFileUri</code> provides you with a temporary URI you can use for secure access to your transcript.</p><note>
/// <p>Temporary URIs for service-managed Amazon S3 buckets are only valid for 15 minutes. If you get an <code>AccesDenied</code> error, you can get a new temporary URI by running a <code>GetTranscriptionJob</code> or <code>ListTranscriptionJob</code> request.</p>
/// </note>
pub fn transcript_file_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.transcript_file_uri = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon S3 location of your transcript. You can use this URI to access or download your transcript.</p>
/// <p>If you included <code>OutputBucketName</code> in your transcription job request, this is the URI of that bucket. If you also included <code>OutputKey</code> in your request, your output is located in the path you specified in your request.</p>
/// <p>If you didn't include <code>OutputBucketName</code> in your transcription job request, your transcript is stored in a service-managed bucket, and <code>TranscriptFileUri</code> provides you with a temporary URI you can use for secure access to your transcript.</p><note>
/// <p>Temporary URIs for service-managed Amazon S3 buckets are only valid for 15 minutes. If you get an <code>AccesDenied</code> error, you can get a new temporary URI by running a <code>GetTranscriptionJob</code> or <code>ListTranscriptionJob</code> request.</p>
/// </note>
pub fn set_transcript_file_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.transcript_file_uri = input;
self
}
/// <p>The Amazon S3 location of your transcript. You can use this URI to access or download your transcript.</p>
/// <p>If you included <code>OutputBucketName</code> in your transcription job request, this is the URI of that bucket. If you also included <code>OutputKey</code> in your request, your output is located in the path you specified in your request.</p>
/// <p>If you didn't include <code>OutputBucketName</code> in your transcription job request, your transcript is stored in a service-managed bucket, and <code>TranscriptFileUri</code> provides you with a temporary URI you can use for secure access to your transcript.</p><note>
/// <p>Temporary URIs for service-managed Amazon S3 buckets are only valid for 15 minutes. If you get an <code>AccesDenied</code> error, you can get a new temporary URI by running a <code>GetTranscriptionJob</code> or <code>ListTranscriptionJob</code> request.</p>
/// </note>
pub fn get_transcript_file_uri(&self) -> &::std::option::Option<::std::string::String> {
&self.transcript_file_uri
}
/// <p>The Amazon S3 location of your redacted transcript. You can use this URI to access or download your transcript.</p>
/// <p>If you included <code>OutputBucketName</code> in your transcription job request, this is the URI of that bucket. If you also included <code>OutputKey</code> in your request, your output is located in the path you specified in your request.</p>
/// <p>If you didn't include <code>OutputBucketName</code> in your transcription job request, your transcript is stored in a service-managed bucket, and <code>RedactedTranscriptFileUri</code> provides you with a temporary URI you can use for secure access to your transcript.</p><note>
/// <p>Temporary URIs for service-managed Amazon S3 buckets are only valid for 15 minutes. If you get an <code>AccesDenied</code> error, you can get a new temporary URI by running a <code>GetTranscriptionJob</code> or <code>ListTranscriptionJob</code> request.</p>
/// </note>
pub fn redacted_transcript_file_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.redacted_transcript_file_uri = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon S3 location of your redacted transcript. You can use this URI to access or download your transcript.</p>
/// <p>If you included <code>OutputBucketName</code> in your transcription job request, this is the URI of that bucket. If you also included <code>OutputKey</code> in your request, your output is located in the path you specified in your request.</p>
/// <p>If you didn't include <code>OutputBucketName</code> in your transcription job request, your transcript is stored in a service-managed bucket, and <code>RedactedTranscriptFileUri</code> provides you with a temporary URI you can use for secure access to your transcript.</p><note>
/// <p>Temporary URIs for service-managed Amazon S3 buckets are only valid for 15 minutes. If you get an <code>AccesDenied</code> error, you can get a new temporary URI by running a <code>GetTranscriptionJob</code> or <code>ListTranscriptionJob</code> request.</p>
/// </note>
pub fn set_redacted_transcript_file_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.redacted_transcript_file_uri = input;
self
}
/// <p>The Amazon S3 location of your redacted transcript. You can use this URI to access or download your transcript.</p>
/// <p>If you included <code>OutputBucketName</code> in your transcription job request, this is the URI of that bucket. If you also included <code>OutputKey</code> in your request, your output is located in the path you specified in your request.</p>
/// <p>If you didn't include <code>OutputBucketName</code> in your transcription job request, your transcript is stored in a service-managed bucket, and <code>RedactedTranscriptFileUri</code> provides you with a temporary URI you can use for secure access to your transcript.</p><note>
/// <p>Temporary URIs for service-managed Amazon S3 buckets are only valid for 15 minutes. If you get an <code>AccesDenied</code> error, you can get a new temporary URI by running a <code>GetTranscriptionJob</code> or <code>ListTranscriptionJob</code> request.</p>
/// </note>
pub fn get_redacted_transcript_file_uri(&self) -> &::std::option::Option<::std::string::String> {
&self.redacted_transcript_file_uri
}
/// Consumes the builder and constructs a [`Transcript`](crate::types::Transcript).
pub fn build(self) -> crate::types::Transcript {
crate::types::Transcript {
transcript_file_uri: self.transcript_file_uri,
redacted_transcript_file_uri: self.redacted_transcript_file_uri,
}
}
}