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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Describes the Amazon S3 location of the media file you want to use in your request.</p>
/// <p>For information on supported media formats, refer to the <code>MediaFormat</code> parameter or the <a href="https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio">Media formats</a> section in the Amazon S3 Developer Guide.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Media {
/// <p>The Amazon S3 location of the media file you want to transcribe. For example:</p>
/// <ul>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/my-media-file.flac</code></p></li>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac</code></p></li>
/// </ul>
/// <p>Note that the Amazon S3 bucket that contains your input media must be located in the same Amazon Web Services Region where you're making your transcription request.</p>
pub media_file_uri: ::std::option::Option<::std::string::String>,
/// <p>The Amazon S3 location of the media file you want to redact. For example:</p>
/// <ul>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/my-media-file.flac</code></p></li>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac</code></p></li>
/// </ul>
/// <p>Note that the Amazon S3 bucket that contains your input media must be located in the same Amazon Web Services Region where you're making your transcription request.</p><important>
/// <p><code>RedactedMediaFileUri</code> produces a redacted audio file in addition to a redacted transcript. It is only supported for Call Analytics (<code>StartCallAnalyticsJob</code>) transcription requests.</p>
/// </important>
pub redacted_media_file_uri: ::std::option::Option<::std::string::String>,
}
impl Media {
/// <p>The Amazon S3 location of the media file you want to transcribe. For example:</p>
/// <ul>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/my-media-file.flac</code></p></li>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac</code></p></li>
/// </ul>
/// <p>Note that the Amazon S3 bucket that contains your input media must be located in the same Amazon Web Services Region where you're making your transcription request.</p>
pub fn media_file_uri(&self) -> ::std::option::Option<&str> {
self.media_file_uri.as_deref()
}
/// <p>The Amazon S3 location of the media file you want to redact. For example:</p>
/// <ul>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/my-media-file.flac</code></p></li>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac</code></p></li>
/// </ul>
/// <p>Note that the Amazon S3 bucket that contains your input media must be located in the same Amazon Web Services Region where you're making your transcription request.</p><important>
/// <p><code>RedactedMediaFileUri</code> produces a redacted audio file in addition to a redacted transcript. It is only supported for Call Analytics (<code>StartCallAnalyticsJob</code>) transcription requests.</p>
/// </important>
pub fn redacted_media_file_uri(&self) -> ::std::option::Option<&str> {
self.redacted_media_file_uri.as_deref()
}
}
impl Media {
/// Creates a new builder-style object to manufacture [`Media`](crate::types::Media).
pub fn builder() -> crate::types::builders::MediaBuilder {
crate::types::builders::MediaBuilder::default()
}
}
/// A builder for [`Media`](crate::types::Media).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct MediaBuilder {
pub(crate) media_file_uri: ::std::option::Option<::std::string::String>,
pub(crate) redacted_media_file_uri: ::std::option::Option<::std::string::String>,
}
impl MediaBuilder {
/// <p>The Amazon S3 location of the media file you want to transcribe. For example:</p>
/// <ul>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/my-media-file.flac</code></p></li>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac</code></p></li>
/// </ul>
/// <p>Note that the Amazon S3 bucket that contains your input media must be located in the same Amazon Web Services Region where you're making your transcription request.</p>
pub fn media_file_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.media_file_uri = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon S3 location of the media file you want to transcribe. For example:</p>
/// <ul>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/my-media-file.flac</code></p></li>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac</code></p></li>
/// </ul>
/// <p>Note that the Amazon S3 bucket that contains your input media must be located in the same Amazon Web Services Region where you're making your transcription request.</p>
pub fn set_media_file_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.media_file_uri = input;
self
}
/// <p>The Amazon S3 location of the media file you want to transcribe. For example:</p>
/// <ul>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/my-media-file.flac</code></p></li>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac</code></p></li>
/// </ul>
/// <p>Note that the Amazon S3 bucket that contains your input media must be located in the same Amazon Web Services Region where you're making your transcription request.</p>
pub fn get_media_file_uri(&self) -> &::std::option::Option<::std::string::String> {
&self.media_file_uri
}
/// <p>The Amazon S3 location of the media file you want to redact. For example:</p>
/// <ul>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/my-media-file.flac</code></p></li>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac</code></p></li>
/// </ul>
/// <p>Note that the Amazon S3 bucket that contains your input media must be located in the same Amazon Web Services Region where you're making your transcription request.</p><important>
/// <p><code>RedactedMediaFileUri</code> produces a redacted audio file in addition to a redacted transcript. It is only supported for Call Analytics (<code>StartCallAnalyticsJob</code>) transcription requests.</p>
/// </important>
pub fn redacted_media_file_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.redacted_media_file_uri = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon S3 location of the media file you want to redact. For example:</p>
/// <ul>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/my-media-file.flac</code></p></li>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac</code></p></li>
/// </ul>
/// <p>Note that the Amazon S3 bucket that contains your input media must be located in the same Amazon Web Services Region where you're making your transcription request.</p><important>
/// <p><code>RedactedMediaFileUri</code> produces a redacted audio file in addition to a redacted transcript. It is only supported for Call Analytics (<code>StartCallAnalyticsJob</code>) transcription requests.</p>
/// </important>
pub fn set_redacted_media_file_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.redacted_media_file_uri = input;
self
}
/// <p>The Amazon S3 location of the media file you want to redact. For example:</p>
/// <ul>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/my-media-file.flac</code></p></li>
/// <li>
/// <p><code>s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac</code></p></li>
/// </ul>
/// <p>Note that the Amazon S3 bucket that contains your input media must be located in the same Amazon Web Services Region where you're making your transcription request.</p><important>
/// <p><code>RedactedMediaFileUri</code> produces a redacted audio file in addition to a redacted transcript. It is only supported for Call Analytics (<code>StartCallAnalyticsJob</code>) transcription requests.</p>
/// </important>
pub fn get_redacted_media_file_uri(&self) -> &::std::option::Option<::std::string::String> {
&self.redacted_media_file_uri
}
/// Consumes the builder and constructs a [`Media`](crate::types::Media).
pub fn build(self) -> crate::types::Media {
crate::types::Media {
media_file_uri: self.media_file_uri,
redacted_media_file_uri: self.redacted_media_file_uri,
}
}
}