public static final class CfnChannel.BurnInDestinationSettingsProperty.Builder
extends java.lang.Object
CfnChannel.BurnInDestinationSettingsProperty
Constructor and Description |
---|
Builder() |
public CfnChannel.BurnInDestinationSettingsProperty.Builder alignment(java.lang.String alignment)
CfnChannel.BurnInDestinationSettingsProperty.getAlignment()
alignment
- If no explicit xPosition or yPosition is provided, setting alignment to centered places the captions at the bottom center of the output.
Similarly, setting a left alignment aligns captions to the bottom left of the output. If x and y positions are specified in conjunction with the alignment parameter, the font is justified (either left or centered) relative to those coordinates. Selecting "smart" justification left-justifies live subtitles and center-justifies pre-recorded subtitles. All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder backgroundColor(java.lang.String backgroundColor)
CfnChannel.BurnInDestinationSettingsProperty.getBackgroundColor()
backgroundColor
- Specifies the color of the rectangle behind the captions.
All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder backgroundOpacity(java.lang.Number backgroundOpacity)
CfnChannel.BurnInDestinationSettingsProperty.getBackgroundOpacity()
backgroundOpacity
- Specifies the opacity of the background rectangle.
255 is opaque; 0 is transparent. Keeping this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder font(IResolvable font)
CfnChannel.BurnInDestinationSettingsProperty.getFont()
font
- The external font file that is used for captions burn-in.
The file extension must be .ttf or .tte. Although you can select output fonts for many different types of input captions, embedded, STL, and Teletext sources use a strict grid system. Using external fonts with these captions sources could cause an unexpected display of proportional fonts. All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder font(CfnChannel.InputLocationProperty font)
CfnChannel.BurnInDestinationSettingsProperty.getFont()
font
- The external font file that is used for captions burn-in.
The file extension must be .ttf or .tte. Although you can select output fonts for many different types of input captions, embedded, STL, and Teletext sources use a strict grid system. Using external fonts with these captions sources could cause an unexpected display of proportional fonts. All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder fontColor(java.lang.String fontColor)
CfnChannel.BurnInDestinationSettingsProperty.getFontColor()
fontColor
- Specifies the color of the burned-in captions.
This option is not valid for source captions that are STL, 608/embedded, or Teletext. These source settings are already pre-defined by the captions stream. All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder fontOpacity(java.lang.Number fontOpacity)
CfnChannel.BurnInDestinationSettingsProperty.getFontOpacity()
fontOpacity
- Specifies the opacity of the burned-in captions.
255 is opaque; 0 is transparent. All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder fontResolution(java.lang.Number fontResolution)
CfnChannel.BurnInDestinationSettingsProperty.getFontResolution()
fontResolution
- The font resolution in DPI (dots per inch).
The default is 96 dpi. All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder fontSize(java.lang.String fontSize)
CfnChannel.BurnInDestinationSettingsProperty.getFontSize()
fontSize
- When set to auto, fontSize scales depending on the size of the output.
Providing a positive integer specifies the exact font size in points. All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder outlineColor(java.lang.String outlineColor)
CfnChannel.BurnInDestinationSettingsProperty.getOutlineColor()
outlineColor
- Specifies the font outline color.
This option is not valid for source captions that are either 608/embedded or Teletext. These source settings are already pre-defined by the captions stream. All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder outlineSize(java.lang.Number outlineSize)
CfnChannel.BurnInDestinationSettingsProperty.getOutlineSize()
outlineSize
- Specifies font outline size in pixels.
This option is not valid for source captions that are either 608/embedded or Teletext. These source settings are already pre-defined by the captions stream. All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder shadowColor(java.lang.String shadowColor)
CfnChannel.BurnInDestinationSettingsProperty.getShadowColor()
shadowColor
- Specifies the color of the shadow cast by the captions.
All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder shadowOpacity(java.lang.Number shadowOpacity)
CfnChannel.BurnInDestinationSettingsProperty.getShadowOpacity()
shadowOpacity
- Specifies the opacity of the shadow.
255 is opaque; 0 is transparent. Keeping this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder shadowXOffset(java.lang.Number shadowXOffset)
CfnChannel.BurnInDestinationSettingsProperty.getShadowXOffset()
shadowXOffset
- Specifies the horizontal offset of the shadow that is relative to the captions in pixels.
A value of -2 would result in a shadow offset 2 pixels to the left. All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder shadowYOffset(java.lang.Number shadowYOffset)
CfnChannel.BurnInDestinationSettingsProperty.getShadowYOffset()
shadowYOffset
- Specifies the vertical offset of the shadow that is relative to the captions in pixels.
A value of -2 would result in a shadow offset 2 pixels above the text. All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder teletextGridControl(java.lang.String teletextGridControl)
CfnChannel.BurnInDestinationSettingsProperty.getTeletextGridControl()
teletextGridControl
- Controls whether a fixed grid size is used to generate the output subtitles bitmap.
This applies only to Teletext inputs and DVB-Sub/Burn-in outputs.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder xPosition(java.lang.Number xPosition)
CfnChannel.BurnInDestinationSettingsProperty.getXPosition()
xPosition
- Specifies the horizontal position of the captions relative to the left side of the output in pixels.
A value of 10 would result in the captions starting 10 pixels from the left of the output. If no explicit xPosition is provided, the horizontal captions position is determined by the alignment parameter. All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty.Builder yPosition(java.lang.Number yPosition)
CfnChannel.BurnInDestinationSettingsProperty.getYPosition()
yPosition
- Specifies the vertical position of the captions relative to the top of the output in pixels.
A value of 10 would result in the captions starting 10 pixels from the top of the output. If no explicit yPosition is provided, the captions are positioned towards the bottom of the output. All burn-in and DVB-Sub font settings must match.this
public CfnChannel.BurnInDestinationSettingsProperty build()
CfnChannel.BurnInDestinationSettingsProperty
java.lang.NullPointerException
- if any required attribute was not provided