Class BurnInDestinationProps.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.BurnInDestinationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BurnInDestinationProps>
- Enclosing interface:
BurnInDestinationProps
@Stability(Experimental)
public static final class BurnInDestinationProps.Builder
extends Object
implements software.amazon.jsii.Builder<BurnInDestinationProps>
A builder for
BurnInDestinationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalignment(CaptionAlignment alignment) Sets the value ofCaptionFontStyleProps.getAlignment()backgroundColor(CaptionBackgroundColor backgroundColor) Sets the value ofCaptionFontStyleProps.getBackgroundColor()backgroundOpacity(Number backgroundOpacity) Sets the value ofCaptionFontStyleProps.getBackgroundOpacity()build()Builds the configured instance.font(FileLocation font) Sets the value ofCaptionFontStyleProps.getFont()fontColor(CaptionFontColor fontColor) Sets the value ofCaptionFontStyleProps.getFontColor()fontOpacity(Number fontOpacity) Sets the value ofCaptionFontStyleProps.getFontOpacity()fontResolution(Number fontResolution) Sets the value ofCaptionFontStyleProps.getFontResolution()fontSize(CaptionFontSize fontSize) Sets the value ofCaptionFontStyleProps.getFontSize()outlineColor(CaptionOutlineColor outlineColor) Sets the value ofCaptionFontStyleProps.getOutlineColor()outlineSize(Number outlineSize) Sets the value ofCaptionFontStyleProps.getOutlineSize()shadowColor(CaptionShadowColor shadowColor) Sets the value ofCaptionFontStyleProps.getShadowColor()shadowOpacity(Number shadowOpacity) Sets the value ofCaptionFontStyleProps.getShadowOpacity()shadowXOffset(Number shadowXOffset) Sets the value ofCaptionFontStyleProps.getShadowXOffset()shadowYOffset(Number shadowYOffset) Sets the value ofCaptionFontStyleProps.getShadowYOffset()subtitleRows(String subtitleRows) Sets the value ofCaptionFontStyleProps.getSubtitleRows()teletextGridControl(CaptionTeletextGridControl teletextGridControl) Sets the value ofCaptionFontStyleProps.getTeletextGridControl()Sets the value ofCaptionFontStyleProps.getXPosition()Sets the value ofCaptionFontStyleProps.getYPosition()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alignment
@Stability(Experimental) public BurnInDestinationProps.Builder alignment(CaptionAlignment alignment) Sets the value ofCaptionFontStyleProps.getAlignment()- Parameters:
alignment- Caption alignment. With explicit x/y positions, the font is justified relative to them.- Returns:
this
-
backgroundColor
@Stability(Experimental) public BurnInDestinationProps.Builder backgroundColor(CaptionBackgroundColor backgroundColor) Sets the value ofCaptionFontStyleProps.getBackgroundColor()- Parameters:
backgroundColor- The color of the rectangle behind the captions.- Returns:
this
-
backgroundOpacity
@Stability(Experimental) public BurnInDestinationProps.Builder backgroundOpacity(Number backgroundOpacity) Sets the value ofCaptionFontStyleProps.getBackgroundOpacity()- Parameters:
backgroundOpacity- The opacity of the background rectangle (0 transparent .. 255 opaque).- Returns:
this
-
font
Sets the value ofCaptionFontStyleProps.getFont()- Parameters:
font- An external font file (.ttf or .tte) used for burn-in. Provide aFileLocationreferencing an S3 bucket (FileLocation.fromBucket, which auto-grants read access) or a URL (FileLocation.url).- Returns:
this
-
fontColor
@Stability(Experimental) public BurnInDestinationProps.Builder fontColor(CaptionFontColor fontColor) Sets the value ofCaptionFontStyleProps.getFontColor()- Parameters:
fontColor- The color of the burned-in captions.- Returns:
this
-
fontOpacity
Sets the value ofCaptionFontStyleProps.getFontOpacity()- Parameters:
fontOpacity- The opacity of the burned-in captions (0 transparent .. 255 opaque).- Returns:
this
-
fontResolution
@Stability(Experimental) public BurnInDestinationProps.Builder fontResolution(Number fontResolution) Sets the value ofCaptionFontStyleProps.getFontResolution()- Parameters:
fontResolution- The font resolution in DPI.- Returns:
this
-
fontSize
Sets the value ofCaptionFontStyleProps.getFontSize()- Parameters:
fontSize- Font size —CaptionFontSize.AUTOto scale with the output, orCaptionFontSize.of(points)for an exact size in points.- Returns:
this
-
outlineColor
@Stability(Experimental) public BurnInDestinationProps.Builder outlineColor(CaptionOutlineColor outlineColor) Sets the value ofCaptionFontStyleProps.getOutlineColor()- Parameters:
outlineColor- The font outline color.- Returns:
this
-
outlineSize
Sets the value ofCaptionFontStyleProps.getOutlineSize()- Parameters:
outlineSize- The font outline size in pixels.- Returns:
this
-
shadowColor
@Stability(Experimental) public BurnInDestinationProps.Builder shadowColor(CaptionShadowColor shadowColor) Sets the value ofCaptionFontStyleProps.getShadowColor()- Parameters:
shadowColor- The color of the shadow cast by the captions.- Returns:
this
-
shadowOpacity
Sets the value ofCaptionFontStyleProps.getShadowOpacity()- Parameters:
shadowOpacity- The opacity of the shadow (0 transparent .. 255 opaque).- Returns:
this
-
shadowXOffset
Sets the value ofCaptionFontStyleProps.getShadowXOffset()- Parameters:
shadowXOffset- The horizontal offset of the shadow in pixels (negative shifts left).- Returns:
this
-
shadowYOffset
Sets the value ofCaptionFontStyleProps.getShadowYOffset()- Parameters:
shadowYOffset- The vertical offset of the shadow in pixels (negative shifts up).- Returns:
this
-
subtitleRows
Sets the value ofCaptionFontStyleProps.getSubtitleRows()- Parameters:
subtitleRows- For Teletext input, the number of lines for the captions bitmap.- Returns:
this
-
teletextGridControl
@Stability(Experimental) public BurnInDestinationProps.Builder teletextGridControl(CaptionTeletextGridControl teletextGridControl) Sets the value ofCaptionFontStyleProps.getTeletextGridControl()- Parameters:
teletextGridControl- Whether a fixed grid is used to generate the subtitle bitmap (Teletext input).- Returns:
this
-
xPosition
Sets the value ofCaptionFontStyleProps.getXPosition()- Parameters:
xPosition- The horizontal position of the captions in pixels from the left.- Returns:
this
-
yPosition
Sets the value ofCaptionFontStyleProps.getYPosition()- Parameters:
yPosition- The vertical position of the captions in pixels from the top.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BurnInDestinationProps>- Returns:
- a new instance of
BurnInDestinationProps - Throws:
NullPointerException- if any required attribute was not provided
-