Class SyncMedia

java.lang.Object
software.amazon.awssdk.services.transcribe.model.SyncMedia
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<SyncMedia.Builder,SyncMedia>

@Generated("software.amazon.awssdk:codegen") public final class SyncMedia extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SyncMedia.Builder,SyncMedia>

The audio to transcribe. Specify exactly one of MediaBytes or MediaFileUri.

Audio sent in the request (MediaBytes) can be up to 25 MB. Audio in Amazon S3 (MediaFileUri ) can be up to 500 MB.

See Also:
  • Method Details

    • mediaBytes

      public final SdkBytes mediaBytes()

      Your audio file, provided inline in the request. The maximum size is 25 MB (26,214,400 bytes) of audio, measured before base64 encoding.

      If you use an Amazon Web Services SDK, the SDK base64-encodes the bytes for you. If you call the API directly, base64-encode the bytes yourself.

      Returns:
      Your audio file, provided inline in the request. The maximum size is 25 MB (26,214,400 bytes) of audio, measured before base64 encoding.

      If you use an Amazon Web Services SDK, the SDK base64-encodes the bytes for you. If you call the API directly, base64-encode the bytes yourself.

    • mediaFileUri

      public final String mediaFileUri()

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

      • s3://amzn-s3-demo-bucket/my-media-file.flac

      • s3://amzn-s3-demo-bucket/media-files/my-media-file.flac

      The maximum file size is 500 MB. You must have read permission for the file.

      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:
      The Amazon S3 location of the media file you want to transcribe. For example:

      • s3://amzn-s3-demo-bucket/my-media-file.flac

      • s3://amzn-s3-demo-bucket/media-files/my-media-file.flac

      The maximum file size is 500 MB. You must have read permission for the file.

      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.

    • toBuilder

      public SyncMedia.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<SyncMedia.Builder,SyncMedia>
      Returns:
      a builder for type T
    • builder

      public static SyncMedia.Builder builder()
    • serializableBuilderClass

      public static Class<? extends SyncMedia.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • fromMediaBytes

      public static SyncMedia fromMediaBytes(SdkBytes mediaBytes)
      Create an instance of this class with mediaBytes() initialized to the given value.

      Your audio file, provided inline in the request. The maximum size is 25 MB (26,214,400 bytes) of audio, measured before base64 encoding.

      If you use an Amazon Web Services SDK, the SDK base64-encodes the bytes for you. If you call the API directly, base64-encode the bytes yourself.

      Parameters:
      mediaBytes - Your audio file, provided inline in the request. The maximum size is 25 MB (26,214,400 bytes) of audio, measured before base64 encoding.

      If you use an Amazon Web Services SDK, the SDK base64-encodes the bytes for you. If you call the API directly, base64-encode the bytes yourself.

    • fromMediaFileUri

      public static SyncMedia fromMediaFileUri(String mediaFileUri)
      Create an instance of this class with mediaFileUri() initialized to the given value.

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

      • s3://amzn-s3-demo-bucket/my-media-file.flac

      • s3://amzn-s3-demo-bucket/media-files/my-media-file.flac

      The maximum file size is 500 MB. You must have read permission for the file.

      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.

      Parameters:
      mediaFileUri - The Amazon S3 location of the media file you want to transcribe. For example:

      • s3://amzn-s3-demo-bucket/my-media-file.flac

      • s3://amzn-s3-demo-bucket/media-files/my-media-file.flac

      The maximum file size is 500 MB. You must have read permission for the file.

      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.

    • type

      public SyncMedia.Type type()
      Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will be SyncMedia.Type.UNKNOWN_TO_SDK_VERSION if the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will be SyncMedia.Type.UNKNOWN_TO_SDK_VERSION if zero members are set, and null if more than one member is set.
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.