All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.transcribe.model.Media Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Transcribe module holds the client classes that are used for communicating with Amazon Transcribe Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* 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. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Media implements Serializable, Cloneable, StructuredPojo { /** *

* 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. *

*/ 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. *

*
*/ 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. *

* * @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. *

* * @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 this.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. *

* * @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 Returns a reference to this object so that method calls can be chained together. */ public Media withMediaFileUri(String mediaFileUri) { setMediaFileUri(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. *

*
* * @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. *

*/ public void setRedactedMediaFileUri(String redactedMediaFileUri) { this.redactedMediaFileUri = 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. *

*
* * @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. *

*/ public String getRedactedMediaFileUri() { return this.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. *

*
* * @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. *

* @return Returns a reference to this object so that method calls can be chained together. */ public Media withRedactedMediaFileUri(String redactedMediaFileUri) { setRedactedMediaFileUri(redactedMediaFileUri); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getMediaFileUri() != null) sb.append("MediaFileUri: ").append(getMediaFileUri()).append(","); if (getRedactedMediaFileUri() != null) sb.append("RedactedMediaFileUri: ").append(getRedactedMediaFileUri()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Media == false) return false; Media other = (Media) obj; if (other.getMediaFileUri() == null ^ this.getMediaFileUri() == null) return false; if (other.getMediaFileUri() != null && other.getMediaFileUri().equals(this.getMediaFileUri()) == false) return false; if (other.getRedactedMediaFileUri() == null ^ this.getRedactedMediaFileUri() == null) return false; if (other.getRedactedMediaFileUri() != null && other.getRedactedMediaFileUri().equals(this.getRedactedMediaFileUri()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMediaFileUri() == null) ? 0 : getMediaFileUri().hashCode()); hashCode = prime * hashCode + ((getRedactedMediaFileUri() == null) ? 0 : getRedactedMediaFileUri().hashCode()); return hashCode; } @Override public Media clone() { try { return (Media) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.transcribe.model.transform.MediaMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy