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

* *

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

* *

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

* *

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

* *

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

* *

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

* *

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

* *

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

* *

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

* *

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

* *

* 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 redactedMediaFileUri; } /** *

* The Amazon S3 location of the media file you want to redact. For example: *

* *

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

* *

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

* *

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

* *

* 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 A reference to this updated object so that method calls can be * chained together. */ public Media withRedactedMediaFileUri(String redactedMediaFileUri) { this.redactedMediaFileUri = redactedMediaFileUri; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @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: " + getMediaFileUri() + ","); if (getRedactedMediaFileUri() != null) sb.append("RedactedMediaFileUri: " + getRedactedMediaFileUri()); sb.append("}"); return sb.toString(); } @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 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; } }