public static interface Artwork.Builder extends CopyableBuilder<Artwork.Builder,Artwork>
Modifier and Type | Method and Description |
---|---|
Artwork.Builder |
albumArtFormat(String albumArtFormat)
The format of album art, if any.
|
default Artwork.Builder |
encryption(Consumer<Encryption.Builder> encryption)
The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.
|
Artwork.Builder |
encryption(Encryption encryption)
The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.
|
Artwork.Builder |
inputKey(String inputKey)
The name of the file to be used as album art.
|
Artwork.Builder |
maxHeight(String maxHeight)
The maximum height of the output album art in pixels.
|
Artwork.Builder |
maxWidth(String maxWidth)
The maximum width of the output album art in pixels.
|
Artwork.Builder |
paddingPolicy(String paddingPolicy)
When you set
PaddingPolicy to Pad , 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 for MaxWidth and MaxHeight . |
Artwork.Builder |
sizingPolicy(String sizingPolicy)
Specify one of the following values to control scaling of the output album art:
|
copy
applyMutation, build
Artwork.Builder inputKey(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
; the
InputBucket
object 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.
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
; the
InputBucket
object 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.
Artwork.Builder maxWidth(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.
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.Artwork.Builder maxHeight(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.
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.Artwork.Builder sizingPolicy(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
either MaxWidth
or MaxHeight
without exceeding the other value.
Fill:
Elastic Transcoder scales the output art so it matches the value that you specified in
either MaxWidth
or MaxHeight
and 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 for
MaxWidth
and MaxHeight
. 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 for MaxWidth
and MaxHeight
, 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 of MaxWidth
and MaxHeight
without
exceeding either value. If you specify this option, Elastic Transcoder does not scale the art up.
ShrinkToFill
Elastic Transcoder scales the output art down so that its dimensions match the
values that you specified for at least one of MaxWidth
and MaxHeight
without
dropping below either value. If you specify this option, Elastic Transcoder does not scale the art up.
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 either MaxWidth
or MaxHeight
without exceeding the other value.
Fill:
Elastic Transcoder scales the output art so it matches the value that you specified
in either MaxWidth
or MaxHeight
and 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 for MaxWidth
and MaxHeight
. 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 for MaxWidth
and MaxHeight
,
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 of MaxWidth
and MaxHeight
without exceeding either value. If you specify this option, Elastic Transcoder does not scale the art
up.
ShrinkToFill
Elastic Transcoder scales the output art down so that its dimensions match
the values that you specified for at least one of MaxWidth
and MaxHeight
without dropping below either value. If you specify this option, Elastic Transcoder does not scale the
art up.
Artwork.Builder paddingPolicy(String paddingPolicy)
When you set PaddingPolicy
to Pad
, 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 for MaxWidth
and MaxHeight
.
paddingPolicy
- When you set PaddingPolicy
to Pad
, 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 for MaxWidth
and MaxHeight
.Artwork.Builder albumArtFormat(String albumArtFormat)
The format of album art, if any. Valid formats are .jpg
and .png
.
albumArtFormat
- The format of album art, if any. Valid formats are .jpg
and .png
.Artwork.Builder encryption(Encryption encryption)
The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.
encryption
- The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.default Artwork.Builder encryption(Consumer<Encryption.Builder> encryption)
The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork.
This is a convenience that creates an instance of theEncryption.Builder
avoiding the need to create
one manually via Encryption.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to encryption(Encryption)
.encryption
- a consumer that will call methods on Encryption.Builder
encryption(Encryption)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.