Class Thumbnails
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Thumbnails.Builder,
Thumbnails>
Thumbnails for videos.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
static Thumbnails.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final String
format()
The format of thumbnails, if any.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
interval()
The approximate number of seconds between thumbnails.final String
The maximum height of thumbnails in pixels.final String
maxWidth()
The maximum width of thumbnails in pixels.final String
When you setPaddingPolicy
toPad
, Elastic Transcoder may add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnailMaxWidth
andMaxHeight
settings.final String
static Class
<? extends Thumbnails.Builder> final String
Specify one of the following values to control scaling of thumbnails:Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
format
The format of thumbnails, if any. Valid values are
jpg
andpng
.You specify whether you want Elastic Transcoder to create thumbnails when you create a job.
- Returns:
- The format of thumbnails, if any. Valid values are
jpg
andpng
.You specify whether you want Elastic Transcoder to create thumbnails when you create a job.
-
interval
The approximate number of seconds between thumbnails. Specify an integer value.
- Returns:
- The approximate number of seconds between thumbnails. Specify an integer value.
-
resolution
To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth
,MaxHeight
,SizingPolicy
, andPaddingPolicy
instead ofResolution
andAspectRatio
. The two groups of settings are mutually exclusive. Do not use them together.The width and height of thumbnail files in pixels. Specify a value in the format
width
xheight
where both values are even integers. The values cannot exceed the width and height that you specified in theVideo:Resolution
object.- Returns:
To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth
,MaxHeight
,SizingPolicy
, andPaddingPolicy
instead ofResolution
andAspectRatio
. The two groups of settings are mutually exclusive. Do not use them together.The width and height of thumbnail files in pixels. Specify a value in the format
width
xheight
where both values are even integers. The values cannot exceed the width and height that you specified in theVideo:Resolution
object.
-
aspectRatio
To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth
,MaxHeight
,SizingPolicy
, andPaddingPolicy
instead ofResolution
andAspectRatio
. The two groups of settings are mutually exclusive. Do not use them together.The aspect ratio of thumbnails. Valid values include:
auto
,1:1
,4:3
,3:2
,16:9
If you specify
auto
, Elastic Transcoder tries to preserve the aspect ratio of the video in the output file.- Returns:
To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth
,MaxHeight
,SizingPolicy
, andPaddingPolicy
instead ofResolution
andAspectRatio
. The two groups of settings are mutually exclusive. Do not use them together.The aspect ratio of thumbnails. Valid values include:
auto
,1:1
,4:3
,3:2
,16:9
If you specify
auto
, Elastic Transcoder tries to preserve the aspect ratio of the video in the output file.
-
maxWidth
The maximum width of thumbnails in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096.
- Returns:
- The maximum width of thumbnails in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096.
-
maxHeight
The maximum height of thumbnails in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072.
- Returns:
- The maximum height of thumbnails in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072.
-
sizingPolicy
Specify one of the following values to control scaling of thumbnails:
-
Fit
: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings without exceeding the other value. -
Fill
: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnailMaxWidth
orMaxHeight
settings and matches or exceeds the other value. Elastic Transcoder centers the image in thumbnails and then crops in the dimension (if any) that exceeds the maximum value. -
Stretch
: Elastic Transcoder stretches thumbnails to match the values that you specified for thumbnailMaxWidth
andMaxHeight
settings. If the relative proportions of the input video and thumbnails are different, the thumbnails will be distorted. -
Keep
: Elastic Transcoder does not scale thumbnails. If either dimension of the input video exceeds the values that you specified for thumbnailMaxWidth
andMaxHeight
settings, Elastic Transcoder crops the thumbnails. -
ShrinkToFit
: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of thumbnailMaxWidth
andMaxHeight
without exceeding either value. If you specify this option, Elastic Transcoder does not scale thumbnails up. -
ShrinkToFill
: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one ofMaxWidth
andMaxHeight
without dropping below either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.
- Returns:
- Specify one of the following values to control scaling of thumbnails:
-
Fit
: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings without exceeding the other value. -
Fill
: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnailMaxWidth
orMaxHeight
settings and matches or exceeds the other value. Elastic Transcoder centers the image in thumbnails and then crops in the dimension (if any) that exceeds the maximum value. -
Stretch
: Elastic Transcoder stretches thumbnails to match the values that you specified for thumbnailMaxWidth
andMaxHeight
settings. If the relative proportions of the input video and thumbnails are different, the thumbnails will be distorted. -
Keep
: Elastic Transcoder does not scale thumbnails. If either dimension of the input video exceeds the values that you specified for thumbnailMaxWidth
andMaxHeight
settings, Elastic Transcoder crops the thumbnails. -
ShrinkToFit
: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of thumbnailMaxWidth
andMaxHeight
without exceeding either value. If you specify this option, Elastic Transcoder does not scale thumbnails up. -
ShrinkToFill
: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one ofMaxWidth
andMaxHeight
without dropping below either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.
-
-
-
paddingPolicy
When you set
PaddingPolicy
toPad
, Elastic Transcoder may add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnailMaxWidth
andMaxHeight
settings.- Returns:
- When you set
PaddingPolicy
toPad
, Elastic Transcoder may add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnailMaxWidth
andMaxHeight
settings.
-
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 interfaceToCopyableBuilder<Thumbnails.Builder,
Thumbnails> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
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 anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
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. -
getValueForField
-
sdkFields
-