Class Track

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

@Generated("software.amazon.awssdk:codegen") public final class Track extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Track.Builder,Track>
Details about each track (video, audio, or data) in the media file.
See Also:
  • Method Details

    • audioProperties

      public final AudioProperties audioProperties()
      Details about the media file's audio track.
      Returns:
      Details about the media file's audio track.
    • codec

      public final Codec codec()
      The codec of the audio or video track, or caption format of the data track.

      If the service returns an enum value that is not available in the current SDK version, codec will return Codec.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from codecAsString().

      Returns:
      The codec of the audio or video track, or caption format of the data track.
      See Also:
    • codecAsString

      public final String codecAsString()
      The codec of the audio or video track, or caption format of the data track.

      If the service returns an enum value that is not available in the current SDK version, codec will return Codec.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from codecAsString().

      Returns:
      The codec of the audio or video track, or caption format of the data track.
      See Also:
    • dataProperties

      public final DataProperties dataProperties()
      Details about the media file's data track.
      Returns:
      Details about the media file's data track.
    • duration

      public final Double duration()
      The duration of the track, in seconds.
      Returns:
      The duration of the track, in seconds.
    • index

      public final Integer index()
      The unique index number of the track, starting at 1.
      Returns:
      The unique index number of the track, starting at 1.
    • trackType

      public final TrackType trackType()
      The type of track: video, audio, or data.

      If the service returns an enum value that is not available in the current SDK version, trackType will return TrackType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from trackTypeAsString().

      Returns:
      The type of track: video, audio, or data.
      See Also:
    • trackTypeAsString

      public final String trackTypeAsString()
      The type of track: video, audio, or data.

      If the service returns an enum value that is not available in the current SDK version, trackType will return TrackType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from trackTypeAsString().

      Returns:
      The type of track: video, audio, or data.
      See Also:
    • videoProperties

      public final VideoProperties videoProperties()
      Details about the media file's video track.
      Returns:
      Details about the media file's video track.
    • toBuilder

      public Track.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<Track.Builder,Track>
      Returns:
      a builder for type T
    • builder

      public static Track.Builder builder()
    • serializableBuilderClass

      public static Class<? extends Track.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)
    • 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.