/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.transcribe.model; import java.io.Serializable; /** *
* Describes the Amazon S3 location of the media file you want to use in your * request. *
** For information on supported media formats, refer to the MediaFormat parameter or the Media formats section in the Amazon S3 Developer Guide. *
*/ public class Media implements Serializable { /** ** The Amazon S3 location of the media file you want to transcribe. For * example: *
*
* s3://DOC-EXAMPLE-BUCKET/my-media-file.flac
*
* s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac
*
* 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. *
*
* Constraints:
* Length: 1 - 2000
* Pattern: (s3://|http(s*)://).+
*/
private String mediaFileUri;
/**
*
* The Amazon S3 location of the media file you want to redact. For example: *
*
* s3://DOC-EXAMPLE-BUCKET/my-media-file.flac
*
* s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac
*
* 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. *
*
* RedactedMediaFileUri
produces a redacted audio file in
* addition to a redacted transcript. It is only supported for Call
* Analytics (StartCallAnalyticsJob
) transcription requests.
*
* Constraints:
* Length: 1 - 2000
* Pattern: (s3://|http(s*)://).+
*/
private String redactedMediaFileUri;
/**
*
* The Amazon S3 location of the media file you want to transcribe. For * example: *
*
* s3://DOC-EXAMPLE-BUCKET/my-media-file.flac
*
* s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac
*
* 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. *
*
* Constraints:
* Length: 1 - 2000
* Pattern: (s3://|http(s*)://).+
*
* @return
* The Amazon S3 location of the media file you want to transcribe. * For example: *
*
* s3://DOC-EXAMPLE-BUCKET/my-media-file.flac
*
* s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac
*
* 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. *
*/ public String getMediaFileUri() { return mediaFileUri; } /** ** The Amazon S3 location of the media file you want to transcribe. For * example: *
*
* s3://DOC-EXAMPLE-BUCKET/my-media-file.flac
*
* s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac
*
* 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. *
*
* Constraints:
* Length: 1 - 2000
* Pattern: (s3://|http(s*)://).+
*
* @param mediaFileUri
* The Amazon S3 location of the media file you want to * transcribe. For example: *
*
* s3://DOC-EXAMPLE-BUCKET/my-media-file.flac
*
* s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac
*
* 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. *
*/ public void setMediaFileUri(String mediaFileUri) { this.mediaFileUri = mediaFileUri; } /** ** The Amazon S3 location of the media file you want to transcribe. For * example: *
*
* s3://DOC-EXAMPLE-BUCKET/my-media-file.flac
*
* s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac
*
* 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. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 2000
* Pattern: (s3://|http(s*)://).+
*
* @param mediaFileUri
* The Amazon S3 location of the media file you want to * transcribe. For example: *
*
* s3://DOC-EXAMPLE-BUCKET/my-media-file.flac
*
* s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac
*
* 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public Media withMediaFileUri(String mediaFileUri) { this.mediaFileUri = mediaFileUri; return this; } /** ** The Amazon S3 location of the media file you want to redact. For example: *
*
* s3://DOC-EXAMPLE-BUCKET/my-media-file.flac
*
* s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac
*
* 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. *
*
* RedactedMediaFileUri
produces a redacted audio file in
* addition to a redacted transcript. It is only supported for Call
* Analytics (StartCallAnalyticsJob
) transcription requests.
*
* Constraints:
* Length: 1 - 2000
* Pattern: (s3://|http(s*)://).+
*
* @return
* The Amazon S3 location of the media file you want to redact. For * example: *
*
* s3://DOC-EXAMPLE-BUCKET/my-media-file.flac
*
* s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac
*
* 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. *
*
* RedactedMediaFileUri
produces a redacted audio file
* in addition to a redacted transcript. It is only supported for
* Call Analytics (StartCallAnalyticsJob
) transcription
* requests.
*
* The Amazon S3 location of the media file you want to redact. For example: *
*
* s3://DOC-EXAMPLE-BUCKET/my-media-file.flac
*
* s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac
*
* 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. *
*
* RedactedMediaFileUri
produces a redacted audio file in
* addition to a redacted transcript. It is only supported for Call
* Analytics (StartCallAnalyticsJob
) transcription requests.
*
* Constraints:
* Length: 1 - 2000
* Pattern: (s3://|http(s*)://).+
*
* @param redactedMediaFileUri
* The Amazon S3 location of the media file you want to redact. * For example: *
*
* s3://DOC-EXAMPLE-BUCKET/my-media-file.flac
*
* s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac
*
* 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. *
*
* RedactedMediaFileUri
produces a redacted audio
* file in addition to a redacted transcript. It is only
* supported for Call Analytics (
* StartCallAnalyticsJob
) transcription requests.
*
* The Amazon S3 location of the media file you want to redact. For example: *
*
* s3://DOC-EXAMPLE-BUCKET/my-media-file.flac
*
* s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac
*
* 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. *
*
* RedactedMediaFileUri
produces a redacted audio file in
* addition to a redacted transcript. It is only supported for Call
* Analytics (StartCallAnalyticsJob
) transcription requests.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 2000
* Pattern: (s3://|http(s*)://).+
*
* @param redactedMediaFileUri
* The Amazon S3 location of the media file you want to redact. * For example: *
*
* s3://DOC-EXAMPLE-BUCKET/my-media-file.flac
*
* s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac
*
* 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. *
*
* RedactedMediaFileUri
produces a redacted audio
* file in addition to a redacted transcript. It is only
* supported for Call Analytics (
* StartCallAnalyticsJob
) transcription requests.
*