Class CfnChannel.DvbSubDestinationSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.DvbSubDestinationSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.DvbSubDestinationSettingsProperty>
- Enclosing interface:
CfnChannel.DvbSubDestinationSettingsProperty
@Stability(Stable)
public static final class CfnChannel.DvbSubDestinationSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.DvbSubDestinationSettingsProperty>
A builder for
CfnChannel.DvbSubDestinationSettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getAlignment()
backgroundColor
(String backgroundColor) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getBackgroundColor()
backgroundOpacity
(Number backgroundOpacity) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getBackgroundOpacity()
build()
Builds the configured instance.font
(IResolvable font) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getFont()
Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getFont()
Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getFontColor()
fontOpacity
(Number fontOpacity) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getFontOpacity()
fontResolution
(Number fontResolution) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getFontResolution()
Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getFontSize()
outlineColor
(String outlineColor) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getOutlineColor()
outlineSize
(Number outlineSize) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getOutlineSize()
shadowColor
(String shadowColor) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getShadowColor()
shadowOpacity
(Number shadowOpacity) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getShadowOpacity()
shadowXOffset
(Number shadowXOffset) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getShadowXOffset()
shadowYOffset
(Number shadowYOffset) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getShadowYOffset()
teletextGridControl
(String teletextGridControl) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getTeletextGridControl()
Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getXPosition()
Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getYPosition()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alignment
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder alignment(String alignment) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getAlignment()
- Parameters:
alignment
- If no explicit xPosition or yPosition is provided, setting the 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. This option is not valid for source captions that are STL or 608/embedded. These source settings are already pre-defined by the captions stream. All burn-in and DVB-Sub font settings must match.- Returns:
this
-
backgroundColor
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder backgroundColor(String backgroundColor) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getBackgroundColor()
- Parameters:
backgroundColor
- Specifies the color of the rectangle behind the captions. All burn-in and DVB-Sub font settings must match.- Returns:
this
-
backgroundOpacity
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder backgroundOpacity(Number backgroundOpacity) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getBackgroundOpacity()
- Parameters:
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.- Returns:
this
-
font
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder font(IResolvable font) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getFont()
- Parameters:
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.- Returns:
this
-
font
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder font(CfnChannel.InputLocationProperty font) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getFont()
- Parameters:
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.- Returns:
this
-
fontColor
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder fontColor(String fontColor) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getFontColor()
- Parameters:
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.- Returns:
this
-
fontOpacity
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder fontOpacity(Number fontOpacity) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getFontOpacity()
- Parameters:
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.- Returns:
this
-
fontResolution
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder fontResolution(Number fontResolution) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getFontResolution()
- Parameters:
fontResolution
- The font resolution in DPI (dots per inch). The default is 96 dpi. All burn-in and DVB-Sub font settings must match.- Returns:
this
-
fontSize
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder fontSize(String fontSize) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getFontSize()
- Parameters:
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.- Returns:
this
-
outlineColor
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder outlineColor(String outlineColor) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getOutlineColor()
- Parameters:
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.- Returns:
this
-
outlineSize
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder outlineSize(Number outlineSize) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getOutlineSize()
- Parameters:
outlineSize
- Specifies the 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.- Returns:
this
-
shadowColor
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder shadowColor(String shadowColor) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getShadowColor()
- Parameters:
shadowColor
- Specifies the color of the shadow that is cast by the captions. All burn-in and DVB-Sub font settings must match.- Returns:
this
-
shadowOpacity
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder shadowOpacity(Number shadowOpacity) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getShadowOpacity()
- Parameters:
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.- Returns:
this
-
shadowXOffset
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder shadowXOffset(Number shadowXOffset) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getShadowXOffset()
- Parameters:
shadowXOffset
- Specifies the horizontal offset of the shadow 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.- Returns:
this
-
shadowYOffset
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder shadowYOffset(Number shadowYOffset) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getShadowYOffset()
- Parameters:
shadowYOffset
- Specifies the vertical offset of the shadow 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.- Returns:
this
-
teletextGridControl
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder teletextGridControl(String teletextGridControl) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getTeletextGridControl()
- Parameters:
teletextGridControl
- Controls whether a fixed grid size is used to generate the output subtitles bitmap. This applies to only Teletext inputs and DVB-Sub/Burn-in outputs.- Returns:
this
-
xPosition
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder xPosition(Number xPosition) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getXPosition()
- Parameters:
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. 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.- Returns:
this
-
yPosition
@Stability(Stable) public CfnChannel.DvbSubDestinationSettingsProperty.Builder yPosition(Number yPosition) Sets the value ofCfnChannel.DvbSubDestinationSettingsProperty.getYPosition()
- Parameters:
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. 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannel.DvbSubDestinationSettingsProperty>
- Returns:
- a new instance of
CfnChannel.DvbSubDestinationSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-