/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.elastictranscoder.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* 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. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Artwork implements Serializable, Cloneable, StructuredPojo { /** *

* 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. *

*/ private String inputKey; /** *

* 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. *

*/ private String maxWidth; /** *

* 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. *

*/ private String maxHeight; /** *

* Specify one of the following values to control scaling of the output album art: *

* */ private String sizingPolicy; /** *

* 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. *

*/ private String paddingPolicy; /** *

* The format of album art, if any. Valid formats are .jpg and .png. *

*/ private String albumArtFormat; /** *

* The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork. *

*/ private Encryption encryption; /** *

* 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. *

* * @param 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. */ public void setInputKey(String inputKey) { this.inputKey = 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. *

* * @return 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. */ public String getInputKey() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public Artwork withInputKey(String inputKey) { setInputKey(inputKey); return this; } /** *

* 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. *

* * @param 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. */ public void setMaxWidth(String maxWidth) { this.maxWidth = 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. *

* * @return 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. */ public String getMaxWidth() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public Artwork withMaxWidth(String maxWidth) { setMaxWidth(maxWidth); return this; } /** *

* 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. *

* * @param 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. */ public void setMaxHeight(String maxHeight) { this.maxHeight = 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. *

* * @return 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. */ public String getMaxHeight() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public Artwork withMaxHeight(String maxHeight) { setMaxHeight(maxHeight); return this; } /** *

* Specify one of the following values to control scaling of the output album art: *

* * * @param sizingPolicy * Specify one of the following values to control scaling of the output album art:

*