Class Artwork
- java.lang.Object
-
- com.amazonaws.services.elastictranscoder.model.Artwork
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Artwork extends Object implements Serializable, Cloneable
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
Artworkto null, or set theMerge Policyto "Replace" and use an emptyArtworkarray.To pass through existing artwork unchanged, set the
Merge Policyto "Prepend", "Append", or "Fallback", and use an emptyArtworkarray.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Artwork()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Artworkclone()booleanequals(Object obj)StringgetAlbumArtFormat()The format of album art, if any.EncryptiongetEncryption()The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.StringgetInputKey()The name of the file to be used as album art.StringgetMaxHeight()The maximum height of the output album art in pixels.StringgetMaxWidth()The maximum width of the output album art in pixels.StringgetPaddingPolicy()When 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.StringgetSizingPolicy()Specify one of the following values to control scaling of the output album art:inthashCode()voidsetAlbumArtFormat(String albumArtFormat)The format of album art, if any.voidsetEncryption(Encryption encryption)The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.voidsetInputKey(String inputKey)The name of the file to be used as album art.voidsetMaxHeight(String maxHeight)The maximum height of the output album art in pixels.voidsetMaxWidth(String maxWidth)The maximum width of the output album art in pixels.voidsetPaddingPolicy(String paddingPolicy)When 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.voidsetSizingPolicy(String sizingPolicy)Specify one of the following values to control scaling of the output album art:StringtoString()Returns a string representation of this object; useful for testing and debugging.ArtworkwithAlbumArtFormat(String albumArtFormat)The format of album art, if any.ArtworkwithEncryption(Encryption encryption)The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.ArtworkwithInputKey(String inputKey)The name of the file to be used as album art.ArtworkwithMaxHeight(String maxHeight)The maximum height of the output album art in pixels.ArtworkwithMaxWidth(String maxWidth)The maximum width of the output album art in pixels.ArtworkwithPaddingPolicy(String paddingPolicy)When 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.ArtworkwithSizingPolicy(String sizingPolicy)Specify one of the following values to control scaling of the output album art:
-
-
-
Method Detail
-
setInputKey
public void setInputKey(String 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.- Parameters:
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 byPipelineId; 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.
-
getInputKey
public String getInputKey()
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.
-
withInputKey
public Artwork withInputKey(String 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.- Parameters:
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 byPipelineId; 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:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxWidth
public void setMaxWidth(String 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.- Parameters:
maxWidth- The maximum width of the output album art in pixels. If you specifyauto, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.
-
getMaxWidth
public String getMaxWidth()
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.
-
withMaxWidth
public Artwork withMaxWidth(String 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.- Parameters:
maxWidth- The maximum width of the output album art in pixels. If you specifyauto, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxHeight
public void setMaxHeight(String 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.- Parameters:
maxHeight- The maximum height of the output album art in pixels. If you specifyauto, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.
-
getMaxHeight
public String getMaxHeight()
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.
-
withMaxHeight
public Artwork withMaxHeight(String 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.- Parameters:
maxHeight- The maximum height of the output album art in pixels. If you specifyauto, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSizingPolicy
public void setSizingPolicy(String 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.
- Parameters:
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.
-
-
-
getSizingPolicy
public String getSizingPolicy()
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.
-
-
-
withSizingPolicy
public Artwork withSizingPolicy(String 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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
-
setPaddingPolicy
public void setPaddingPolicy(String 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.- Parameters:
paddingPolicy- When 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.
-
getPaddingPolicy
public String getPaddingPolicy()
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.
-
withPaddingPolicy
public Artwork withPaddingPolicy(String 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.- Parameters:
paddingPolicy- When 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAlbumArtFormat
public void setAlbumArtFormat(String albumArtFormat)
The format of album art, if any. Valid formats are
.jpgand.png.- Parameters:
albumArtFormat- The format of album art, if any. Valid formats are.jpgand.png.
-
getAlbumArtFormat
public String getAlbumArtFormat()
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.
-
withAlbumArtFormat
public Artwork withAlbumArtFormat(String albumArtFormat)
The format of album art, if any. Valid formats are
.jpgand.png.- Parameters:
albumArtFormat- The format of album art, if any. Valid formats are.jpgand.png.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEncryption
public void setEncryption(Encryption encryption)
The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.
- Parameters:
encryption- The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.
-
getEncryption
public Encryption getEncryption()
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.
-
withEncryption
public Artwork withEncryption(Encryption encryption)
The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.
- Parameters:
encryption- The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-