Class CaptionRectangle.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.CaptionRectangle.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CaptionRectangle>
- Enclosing interface:
CaptionRectangle
@Stability(Experimental)
public static final class CaptionRectangle.Builder
extends Object
implements software.amazon.jsii.Builder<CaptionRectangle>
A builder for
CaptionRectangle-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCaptionRectangle.getHeight()leftOffset(Number leftOffset) Sets the value ofCaptionRectangle.getLeftOffset()Sets the value ofCaptionRectangle.getTopOffset()Sets the value ofCaptionRectangle.getWidth()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
height
Sets the value ofCaptionRectangle.getHeight()- Parameters:
height- Height of the rectangle, as a percentage of the frame height (0–100). This parameter is required.- Returns:
this
-
leftOffset
Sets the value ofCaptionRectangle.getLeftOffset()- Parameters:
leftOffset- Left edge position, as a percentage of the frame width (0–100). This parameter is required.- Returns:
this
-
topOffset
Sets the value ofCaptionRectangle.getTopOffset()- Parameters:
topOffset- Top edge position, as a percentage of the frame height (0–100). This parameter is required.- Returns:
this
-
width
Sets the value ofCaptionRectangle.getWidth()- Parameters:
width- Width of the rectangle, as a percentage of the frame width (0–100). This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CaptionRectangle>- Returns:
- a new instance of
CaptionRectangle - Throws:
NullPointerException- if any required attribute was not provided
-