Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elastictranscoder.model
Class PresetWatermark

java.lang.Object
  extended by com.amazonaws.services.elastictranscoder.model.PresetWatermark
All Implemented Interfaces:
Serializable

public class PresetWatermark
extends Object
implements Serializable

Settings for the size, location, and opacity of graphics that you want Elastic Transcoder to overlay over videos that are transcoded using this preset. You can specify settings for up to four watermarks. Watermarks appear in the specified size and location, and with the specified opacity for the duration of the transcoded video.

Watermarks can be in .png or .jpg format. If you want to display a watermark that is not rectangular, use the .png format, which supports transparency.

When you create a job that uses this preset, you specify the .png or .jpg graphics that you want Elastic Transcoder to include in the transcoded videos. You can specify fewer graphics in the job than you specify watermark settings in the preset, which allows you to use the same preset for up to four watermarks that have different dimensions.

See Also:
Serialized Form

Constructor Summary
PresetWatermark()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getHorizontalAlign()
          The horizontal position of the watermark unless you specify a non-zero value for HorizontalOffset: Left: The left edge of the watermark is aligned with the left border of the video. Right: The right edge of the watermark is aligned with the right border of the video. Center: The watermark is centered between the left and right borders.
 String getHorizontalOffset()
          The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign: number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth. integer percentage (%): The range of valid values is 0 to 100. For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset, the left side of the watermark appears 5 pixels from the left border of the output video.
 String getId()
          A unique identifier for the settings for one watermark.
 String getMaxHeight()
          The maximum height of the watermark in one of the following formats: number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxHeight. integer percentage (%): The range of valid values is 0 to 100.
 String getMaxWidth()
          The maximum width of the watermark in one of the following formats: number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxWidth. integer percentage (%): The range of valid values is 0 to 100.
 String getOpacity()
          A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.
 String getSizingPolicy()
          A value that controls scaling of the watermark: Fit: Elastic Transcoder scales the watermark so it matches the value that you specified in either MaxWidth or MaxHeight without exceeding the other value. Stretch: Elastic Transcoder stretches the watermark to match the values that you specified for MaxWidth and MaxHeight.
 String getTarget()
          A value that determines how Elastic Transcoder interprets values that you specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight: Content: HorizontalOffset and VerticalOffset values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any.
 String getVerticalAlign()
          The vertical position of the watermark unless you specify a non-zero value for VerticalOffset: Top: The top edge of the watermark is aligned with the top border of the video. Bottom: The bottom edge of the watermark is aligned with the bottom border of the video. Center: The watermark is centered between the top and bottom borders.
 String getVerticalOffset()
          VerticalOffset
 int hashCode()
           
 void setHorizontalAlign(String horizontalAlign)
          The horizontal position of the watermark unless you specify a non-zero value for HorizontalOffset: Left: The left edge of the watermark is aligned with the left border of the video. Right: The right edge of the watermark is aligned with the right border of the video. Center: The watermark is centered between the left and right borders.
 void setHorizontalOffset(String horizontalOffset)
          The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign: number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth. integer percentage (%): The range of valid values is 0 to 100. For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset, the left side of the watermark appears 5 pixels from the left border of the output video.
 void setId(String id)
          A unique identifier for the settings for one watermark.
 void setMaxHeight(String maxHeight)
          The maximum height of the watermark in one of the following formats: number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxHeight. integer percentage (%): The range of valid values is 0 to 100.
 void setMaxWidth(String maxWidth)
          The maximum width of the watermark in one of the following formats: number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxWidth. integer percentage (%): The range of valid values is 0 to 100.
 void setOpacity(String opacity)
          A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.
 void setSizingPolicy(String sizingPolicy)
          A value that controls scaling of the watermark: Fit: Elastic Transcoder scales the watermark so it matches the value that you specified in either MaxWidth or MaxHeight without exceeding the other value. Stretch: Elastic Transcoder stretches the watermark to match the values that you specified for MaxWidth and MaxHeight.
 void setTarget(String target)
          A value that determines how Elastic Transcoder interprets values that you specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight: Content: HorizontalOffset and VerticalOffset values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any.
 void setVerticalAlign(String verticalAlign)
          The vertical position of the watermark unless you specify a non-zero value for VerticalOffset: Top: The top edge of the watermark is aligned with the top border of the video. Bottom: The bottom edge of the watermark is aligned with the bottom border of the video. Center: The watermark is centered between the top and bottom borders.
 void setVerticalOffset(String verticalOffset)
          VerticalOffset
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 PresetWatermark withHorizontalAlign(String horizontalAlign)
          The horizontal position of the watermark unless you specify a non-zero value for HorizontalOffset: Left: The left edge of the watermark is aligned with the left border of the video. Right: The right edge of the watermark is aligned with the right border of the video. Center: The watermark is centered between the left and right borders.
 PresetWatermark withHorizontalOffset(String horizontalOffset)
          The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign: number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth. integer percentage (%): The range of valid values is 0 to 100. For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset, the left side of the watermark appears 5 pixels from the left border of the output video.
 PresetWatermark withId(String id)
          A unique identifier for the settings for one watermark.
 PresetWatermark withMaxHeight(String maxHeight)
          The maximum height of the watermark in one of the following formats: number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxHeight. integer percentage (%): The range of valid values is 0 to 100.
 PresetWatermark withMaxWidth(String maxWidth)
          The maximum width of the watermark in one of the following formats: number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxWidth. integer percentage (%): The range of valid values is 0 to 100.
 PresetWatermark withOpacity(String opacity)
          A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.
 PresetWatermark withSizingPolicy(String sizingPolicy)
          A value that controls scaling of the watermark: Fit: Elastic Transcoder scales the watermark so it matches the value that you specified in either MaxWidth or MaxHeight without exceeding the other value. Stretch: Elastic Transcoder stretches the watermark to match the values that you specified for MaxWidth and MaxHeight.
 PresetWatermark withTarget(String target)
          A value that determines how Elastic Transcoder interprets values that you specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight: Content: HorizontalOffset and VerticalOffset values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any.
 PresetWatermark withVerticalAlign(String verticalAlign)
          The vertical position of the watermark unless you specify a non-zero value for VerticalOffset: Top: The top edge of the watermark is aligned with the top border of the video. Bottom: The bottom edge of the watermark is aligned with the bottom border of the video. Center: The watermark is centered between the top and bottom borders.
 PresetWatermark withVerticalOffset(String verticalOffset)
          VerticalOffset
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PresetWatermark

public PresetWatermark()
Method Detail

getId

public String getId()
A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long.

Constraints:
Length: 1 - 40

Returns:
A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long.

setId

public void setId(String id)
A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long.

Constraints:
Length: 1 - 40

Parameters:
id - A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long.

withId

public PresetWatermark withId(String id)
A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 40

Parameters:
id - A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long.

getMaxWidth

public String getMaxWidth()
The maximum width of the watermark in one of the following formats:

Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)

Returns:
The maximum width of the watermark in one of the following formats:
  • number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxWidth.
  • integer percentage (%): The range of valid values is 0 to 100. Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.
  • If you specify the value in pixels, it must be less than or equal to the value of MaxWidth.

setMaxWidth

public void setMaxWidth(String maxWidth)
The maximum width of the watermark in one of the following formats:

Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)

Parameters:
maxWidth - The maximum width of the watermark in one of the following formats:
  • number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxWidth.
  • integer percentage (%): The range of valid values is 0 to 100. Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.
  • If you specify the value in pixels, it must be less than or equal to the value of MaxWidth.

withMaxWidth

public PresetWatermark withMaxWidth(String maxWidth)
The maximum width of the watermark in one of the following formats:

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)

Parameters:
maxWidth - The maximum width of the watermark in one of the following formats:
  • number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxWidth.
  • integer percentage (%): The range of valid values is 0 to 100. Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.
  • If you specify the value in pixels, it must be less than or equal to the value of MaxWidth.

getMaxHeight

public String getMaxHeight()
The maximum height of the watermark in one of the following formats: If you specify the value in pixels, it must be less than or equal to the value of MaxHeight.

Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)

Returns:
The maximum height of the watermark in one of the following formats:
  • number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxHeight.
  • integer percentage (%): The range of valid values is 0 to 100. Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.
If you specify the value in pixels, it must be less than or equal to the value of MaxHeight.

setMaxHeight

public void setMaxHeight(String maxHeight)
The maximum height of the watermark in one of the following formats: If you specify the value in pixels, it must be less than or equal to the value of MaxHeight.

Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)

Parameters:
maxHeight - The maximum height of the watermark in one of the following formats:
  • number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxHeight.
  • integer percentage (%): The range of valid values is 0 to 100. Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.
If you specify the value in pixels, it must be less than or equal to the value of MaxHeight.

withMaxHeight

public PresetWatermark withMaxHeight(String maxHeight)
The maximum height of the watermark in one of the following formats: If you specify the value in pixels, it must be less than or equal to the value of MaxHeight.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)

Parameters:
maxHeight - The maximum height of the watermark in one of the following formats:
  • number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of MaxHeight.
  • integer percentage (%): The range of valid values is 0 to 100. Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.
If you specify the value in pixels, it must be less than or equal to the value of MaxHeight.

getSizingPolicy

public String getSizingPolicy()
A value that controls scaling of the watermark:

Constraints:
Pattern: (^Fit$)|(^Stretch$)|(^ShrinkToFit$)

Returns:
A value that controls scaling of the watermark:
  • Fit: Elastic Transcoder scales the watermark so it matches the value that you specified in either MaxWidth or MaxHeight without exceeding the other value.
  • Stretch: Elastic Transcoder stretches the watermark to match the values that you specified for MaxWidth and MaxHeight. If the relative proportions of the watermark and the values of MaxWidth and MaxHeight are different, the watermark will be distorted.
  • ShrinkToFit: Elastic Transcoder scales the watermark 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 watermark up.

setSizingPolicy

public void setSizingPolicy(String sizingPolicy)
A value that controls scaling of the watermark:

Constraints:
Pattern: (^Fit$)|(^Stretch$)|(^ShrinkToFit$)

Parameters:
sizingPolicy - A value that controls scaling of the watermark:
  • Fit: Elastic Transcoder scales the watermark so it matches the value that you specified in either MaxWidth or MaxHeight without exceeding the other value.
  • Stretch: Elastic Transcoder stretches the watermark to match the values that you specified for MaxWidth and MaxHeight. If the relative proportions of the watermark and the values of MaxWidth and MaxHeight are different, the watermark will be distorted.
  • ShrinkToFit: Elastic Transcoder scales the watermark 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 watermark up.

withSizingPolicy

public PresetWatermark withSizingPolicy(String sizingPolicy)
A value that controls scaling of the watermark:

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: (^Fit$)|(^Stretch$)|(^ShrinkToFit$)

Parameters:
sizingPolicy - A value that controls scaling of the watermark:
  • Fit: Elastic Transcoder scales the watermark so it matches the value that you specified in either MaxWidth or MaxHeight without exceeding the other value.
  • Stretch: Elastic Transcoder stretches the watermark to match the values that you specified for MaxWidth and MaxHeight. If the relative proportions of the watermark and the values of MaxWidth and MaxHeight are different, the watermark will be distorted.
  • ShrinkToFit: Elastic Transcoder scales the watermark 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 watermark up.

getHorizontalAlign

public String getHorizontalAlign()
The horizontal position of the watermark unless you specify a non-zero value for HorizontalOffset:

Constraints:
Pattern: (^Left$)|(^Right$)|(^Center$)

Returns:
The horizontal position of the watermark unless you specify a non-zero value for HorizontalOffset:
  • Left: The left edge of the watermark is aligned with the left border of the video.
  • Right: The right edge of the watermark is aligned with the right border of the video.
  • Center: The watermark is centered between the left and right borders.

setHorizontalAlign

public void setHorizontalAlign(String horizontalAlign)
The horizontal position of the watermark unless you specify a non-zero value for HorizontalOffset:

Constraints:
Pattern: (^Left$)|(^Right$)|(^Center$)

Parameters:
horizontalAlign - The horizontal position of the watermark unless you specify a non-zero value for HorizontalOffset:
  • Left: The left edge of the watermark is aligned with the left border of the video.
  • Right: The right edge of the watermark is aligned with the right border of the video.
  • Center: The watermark is centered between the left and right borders.

withHorizontalAlign

public PresetWatermark withHorizontalAlign(String horizontalAlign)
The horizontal position of the watermark unless you specify a non-zero value for HorizontalOffset:

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: (^Left$)|(^Right$)|(^Center$)

Parameters:
horizontalAlign - The horizontal position of the watermark unless you specify a non-zero value for HorizontalOffset:
  • Left: The left edge of the watermark is aligned with the left border of the video.
  • Right: The right edge of the watermark is aligned with the right border of the video.
  • Center: The watermark is centered between the left and right borders.

getHorizontalOffset

public String getHorizontalOffset()
The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign: For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset, the left side of the watermark appears 5 pixels from the left border of the output video.

HorizontalOffset is only valid when the value of HorizontalAlign is Left or Right. If you specify an offset that causes the watermark to extend beyond the left or right border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.

Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)

Returns:
The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign:
  • number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth.
  • integer percentage (%): The range of valid values is 0 to 100.
For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset, the left side of the watermark appears 5 pixels from the left border of the output video.

HorizontalOffset is only valid when the value of HorizontalAlign is Left or Right. If you specify an offset that causes the watermark to extend beyond the left or right border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.


setHorizontalOffset

public void setHorizontalOffset(String horizontalOffset)
The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign: For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset, the left side of the watermark appears 5 pixels from the left border of the output video.

HorizontalOffset is only valid when the value of HorizontalAlign is Left or Right. If you specify an offset that causes the watermark to extend beyond the left or right border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.

Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)

Parameters:
horizontalOffset - The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign:
  • number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth.
  • integer percentage (%): The range of valid values is 0 to 100.
For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset, the left side of the watermark appears 5 pixels from the left border of the output video.

HorizontalOffset is only valid when the value of HorizontalAlign is Left or Right. If you specify an offset that causes the watermark to extend beyond the left or right border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.


withHorizontalOffset

public PresetWatermark withHorizontalOffset(String horizontalOffset)
The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign: For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset, the left side of the watermark appears 5 pixels from the left border of the output video.

HorizontalOffset is only valid when the value of HorizontalAlign is Left or Right. If you specify an offset that causes the watermark to extend beyond the left or right border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)

Parameters:
horizontalOffset - The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign:
  • number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth.
  • integer percentage (%): The range of valid values is 0 to 100.
For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset, the left side of the watermark appears 5 pixels from the left border of the output video.

HorizontalOffset is only valid when the value of HorizontalAlign is Left or Right. If you specify an offset that causes the watermark to extend beyond the left or right border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.


getVerticalAlign

public String getVerticalAlign()
The vertical position of the watermark unless you specify a non-zero value for VerticalOffset:

Constraints:
Pattern: (^Top$)|(^Bottom$)|(^Center$)

Returns:
The vertical position of the watermark unless you specify a non-zero value for VerticalOffset:
  • Top: The top edge of the watermark is aligned with the top border of the video.
  • Bottom: The bottom edge of the watermark is aligned with the bottom border of the video.
  • Center: The watermark is centered between the top and bottom borders.

setVerticalAlign

public void setVerticalAlign(String verticalAlign)
The vertical position of the watermark unless you specify a non-zero value for VerticalOffset:

Constraints:
Pattern: (^Top$)|(^Bottom$)|(^Center$)

Parameters:
verticalAlign - The vertical position of the watermark unless you specify a non-zero value for VerticalOffset:
  • Top: The top edge of the watermark is aligned with the top border of the video.
  • Bottom: The bottom edge of the watermark is aligned with the bottom border of the video.
  • Center: The watermark is centered between the top and bottom borders.

withVerticalAlign

public PresetWatermark withVerticalAlign(String verticalAlign)
The vertical position of the watermark unless you specify a non-zero value for VerticalOffset:

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: (^Top$)|(^Bottom$)|(^Center$)

Parameters:
verticalAlign - The vertical position of the watermark unless you specify a non-zero value for VerticalOffset:
  • Top: The top edge of the watermark is aligned with the top border of the video.
  • Bottom: The bottom edge of the watermark is aligned with the bottom border of the video.
  • Center: The watermark is centered between the top and bottom borders.

getVerticalOffset

public String getVerticalOffset()
VerticalOffset

The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:

For example, if you specify Top for VerticalAlign and 5px for VerticalOffset, the top of the watermark appears 5 pixels from the top border of the output video.

VerticalOffset is only valid when the value of VerticalAlign is Top or Bottom.

If you specify an offset that causes the watermark to extend beyond the top or bottom border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.

Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)

Returns:
VerticalOffset

The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:

  • number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxHeight.
  • integer percentage (%): The range of valid values is 0 to 100.
For example, if you specify Top for VerticalAlign and 5px for VerticalOffset, the top of the watermark appears 5 pixels from the top border of the output video.

VerticalOffset is only valid when the value of VerticalAlign is Top or Bottom.

If you specify an offset that causes the watermark to extend beyond the top or bottom border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.


setVerticalOffset

public void setVerticalOffset(String verticalOffset)
VerticalOffset

The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:

For example, if you specify Top for VerticalAlign and 5px for VerticalOffset, the top of the watermark appears 5 pixels from the top border of the output video.

VerticalOffset is only valid when the value of VerticalAlign is Top or Bottom.

If you specify an offset that causes the watermark to extend beyond the top or bottom border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.

Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)

Parameters:
verticalOffset - VerticalOffset

The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:

  • number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxHeight.
  • integer percentage (%): The range of valid values is 0 to 100.
For example, if you specify Top for VerticalAlign and 5px for VerticalOffset, the top of the watermark appears 5 pixels from the top border of the output video.

VerticalOffset is only valid when the value of VerticalAlign is Top or Bottom.

If you specify an offset that causes the watermark to extend beyond the top or bottom border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.


withVerticalOffset

public PresetWatermark withVerticalOffset(String verticalOffset)
VerticalOffset

The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:

For example, if you specify Top for VerticalAlign and 5px for VerticalOffset, the top of the watermark appears 5 pixels from the top border of the output video.

VerticalOffset is only valid when the value of VerticalAlign is Top or Bottom.

If you specify an offset that causes the watermark to extend beyond the top or bottom border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)

Parameters:
verticalOffset - VerticalOffset

The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:

  • number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxHeight.
  • integer percentage (%): The range of valid values is 0 to 100.
For example, if you specify Top for VerticalAlign and 5px for VerticalOffset, the top of the watermark appears 5 pixels from the top border of the output video.

VerticalOffset is only valid when the value of VerticalAlign is Top or Bottom.

If you specify an offset that causes the watermark to extend beyond the top or bottom border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.

Use the value of Target to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.


getOpacity

public String getOpacity()
A percentage that indicates how much you want a watermark to obscure the video in the location where it appears. Valid values are 0 (the watermark is invisible) to 100 (the watermark completely obscures the video in the specified location). The datatype of Opacity is float.

Elastic Transcoder supports transparent .png graphics. If you use a transparent .png, the transparent portion of the video appears as if you had specified a value of 0 for Opacity. The .jpg file format doesn't support transparency.

Constraints:
Pattern: ^\d{1,3}([.]\d{0,20})?$

Returns:
A percentage that indicates how much you want a watermark to obscure the video in the location where it appears. Valid values are 0 (the watermark is invisible) to 100 (the watermark completely obscures the video in the specified location). The datatype of Opacity is float.

Elastic Transcoder supports transparent .png graphics. If you use a transparent .png, the transparent portion of the video appears as if you had specified a value of 0 for Opacity. The .jpg file format doesn't support transparency.


setOpacity

public void setOpacity(String opacity)
A percentage that indicates how much you want a watermark to obscure the video in the location where it appears. Valid values are 0 (the watermark is invisible) to 100 (the watermark completely obscures the video in the specified location). The datatype of Opacity is float.

Elastic Transcoder supports transparent .png graphics. If you use a transparent .png, the transparent portion of the video appears as if you had specified a value of 0 for Opacity. The .jpg file format doesn't support transparency.

Constraints:
Pattern: ^\d{1,3}([.]\d{0,20})?$

Parameters:
opacity - A percentage that indicates how much you want a watermark to obscure the video in the location where it appears. Valid values are 0 (the watermark is invisible) to 100 (the watermark completely obscures the video in the specified location). The datatype of Opacity is float.

Elastic Transcoder supports transparent .png graphics. If you use a transparent .png, the transparent portion of the video appears as if you had specified a value of 0 for Opacity. The .jpg file format doesn't support transparency.


withOpacity

public PresetWatermark withOpacity(String opacity)
A percentage that indicates how much you want a watermark to obscure the video in the location where it appears. Valid values are 0 (the watermark is invisible) to 100 (the watermark completely obscures the video in the specified location). The datatype of Opacity is float.

Elastic Transcoder supports transparent .png graphics. If you use a transparent .png, the transparent portion of the video appears as if you had specified a value of 0 for Opacity. The .jpg file format doesn't support transparency.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: ^\d{1,3}([.]\d{0,20})?$

Parameters:
opacity - A percentage that indicates how much you want a watermark to obscure the video in the location where it appears. Valid values are 0 (the watermark is invisible) to 100 (the watermark completely obscures the video in the specified location). The datatype of Opacity is float.

Elastic Transcoder supports transparent .png graphics. If you use a transparent .png, the transparent portion of the video appears as if you had specified a value of 0 for Opacity. The .jpg file format doesn't support transparency.


getTarget

public String getTarget()
A value that determines how Elastic Transcoder interprets values that you specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight:

Constraints:
Pattern: (^Content$)|(^Frame$)

Returns:
A value that determines how Elastic Transcoder interprets values that you specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight:
  • Content: HorizontalOffset and VerticalOffset values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. In addition, MaxWidth and MaxHeight, if specified as a percentage, are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any.
  • Frame: HorizontalOffset and VerticalOffset values are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.
  • In addition, MaxWidth and MaxHeight, if specified as a percentage, are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.

setTarget

public void setTarget(String target)
A value that determines how Elastic Transcoder interprets values that you specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight:

Constraints:
Pattern: (^Content$)|(^Frame$)

Parameters:
target - A value that determines how Elastic Transcoder interprets values that you specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight:
  • Content: HorizontalOffset and VerticalOffset values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. In addition, MaxWidth and MaxHeight, if specified as a percentage, are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any.
  • Frame: HorizontalOffset and VerticalOffset values are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.
  • In addition, MaxWidth and MaxHeight, if specified as a percentage, are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.

withTarget

public PresetWatermark withTarget(String target)
A value that determines how Elastic Transcoder interprets values that you specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight:

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: (^Content$)|(^Frame$)

Parameters:
target - A value that determines how Elastic Transcoder interprets values that you specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight:
  • Content: HorizontalOffset and VerticalOffset values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. In addition, MaxWidth and MaxHeight, if specified as a percentage, are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any.
  • Frame: HorizontalOffset and VerticalOffset values are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.
  • In addition, MaxWidth and MaxHeight, if specified as a percentage, are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.