Class Artwork
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Artwork.Builder,Artwork>
The file to be used as album art. There can be multiple artworks associated with an audio file, to a maximum of 20.
To remove artwork or leave the artwork empty, you can either set Artwork to null, or set the
Merge Policy to "Replace" and use an empty Artwork array.
To pass through existing artwork unchanged, set the Merge Policy to "Prepend", "Append", or "Fallback",
and use an empty Artwork array.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe format of album art, if any.static Artwork.Builderbuilder()final EncryptionThe encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringinputKey()The name of the file to be used as album art.final StringThe maximum height of the output album art in pixels.final StringmaxWidth()The maximum width of the output album art in pixels.final StringWhen you setPaddingPolicytoPad, Elastic Transcoder may add white bars to the top and bottom and/or left and right sides of the output album art to make the total size of the output art match the values that you specified forMaxWidthandMaxHeight.static Class<? extends Artwork.Builder> final StringSpecify one of the following values to control scaling of the output album art:Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
inputKey
The name of the file to be used as album art. To determine which Amazon S3 bucket contains the specified file, Elastic Transcoder checks the pipeline specified by
PipelineId; theInputBucketobject in that pipeline identifies the bucket.If the file name includes a prefix, for example,
cooking/pie.jpg, include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error.- Returns:
- The name of the file to be used as album art. To determine which Amazon S3 bucket contains the specified
file, Elastic Transcoder checks the pipeline specified by
PipelineId; theInputBucketobject in that pipeline identifies the bucket.If the file name includes a prefix, for example,
cooking/pie.jpg, include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error.
-
maxWidth
The maximum width of the output album art in pixels. If you specify
auto, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.- Returns:
- The maximum width of the output album art in pixels. If you specify
auto, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.
-
maxHeight
The maximum height of the output album art in pixels. If you specify
auto, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.- Returns:
- The maximum height of the output album art in pixels. If you specify
auto, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.
-
sizingPolicy
Specify one of the following values to control scaling of the output album art:
-
Fit:Elastic Transcoder scales the output art so it matches the value that you specified in eitherMaxWidthorMaxHeightwithout exceeding the other value. -
Fill:Elastic Transcoder scales the output art so it matches the value that you specified in eitherMaxWidthorMaxHeightand matches or exceeds the other value. Elastic Transcoder centers the output art and then crops it in the dimension (if any) that exceeds the maximum value. -
Stretch:Elastic Transcoder stretches the output art to match the values that you specified forMaxWidthandMaxHeight. If the relative proportions of the input art and the output art are different, the output art will be distorted. -
Keep:Elastic Transcoder does not scale the output art. If either dimension of the input art exceeds the values that you specified forMaxWidthandMaxHeight, Elastic Transcoder crops the output art. -
ShrinkToFit:Elastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one ofMaxWidthandMaxHeightwithout exceeding either value. If you specify this option, Elastic Transcoder does not scale the art up. -
ShrinkToFillElastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one ofMaxWidthandMaxHeightwithout dropping below either value. If you specify this option, Elastic Transcoder does not scale the art up.
- Returns:
- Specify one of the following values to control scaling of the output album art:
-
Fit:Elastic Transcoder scales the output art so it matches the value that you specified in eitherMaxWidthorMaxHeightwithout exceeding the other value. -
Fill:Elastic Transcoder scales the output art so it matches the value that you specified in eitherMaxWidthorMaxHeightand matches or exceeds the other value. Elastic Transcoder centers the output art and then crops it in the dimension (if any) that exceeds the maximum value. -
Stretch:Elastic Transcoder stretches the output art to match the values that you specified forMaxWidthandMaxHeight. If the relative proportions of the input art and the output art are different, the output art will be distorted. -
Keep:Elastic Transcoder does not scale the output art. If either dimension of the input art exceeds the values that you specified forMaxWidthandMaxHeight, Elastic Transcoder crops the output art. -
ShrinkToFit:Elastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one ofMaxWidthandMaxHeightwithout exceeding either value. If you specify this option, Elastic Transcoder does not scale the art up. -
ShrinkToFillElastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one ofMaxWidthandMaxHeightwithout dropping below either value. If you specify this option, Elastic Transcoder does not scale the art up.
-
-
-
paddingPolicy
When you set
PaddingPolicytoPad, Elastic Transcoder may add white bars to the top and bottom and/or left and right sides of the output album art to make the total size of the output art match the values that you specified forMaxWidthandMaxHeight.- Returns:
- When you set
PaddingPolicytoPad, Elastic Transcoder may add white bars to the top and bottom and/or left and right sides of the output album art to make the total size of the output art match the values that you specified forMaxWidthandMaxHeight.
-
albumArtFormat
The format of album art, if any. Valid formats are
.jpgand.png.- Returns:
- The format of album art, if any. Valid formats are
.jpgand.png.
-
encryption
The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.
- Returns:
- The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Artwork.Builder,Artwork> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
-
sdkFields
-