Class PresetVideoArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.elastictranscoder.inputs.PresetVideoArgs.Builder
-
- Enclosing class:
- PresetVideoArgs
public static final class PresetVideoArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(PresetVideoArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PresetVideoArgs.BuilderaspectRatio(com.pulumi.core.Output<java.lang.String> aspectRatio)PresetVideoArgs.BuilderaspectRatio(java.lang.String aspectRatio)PresetVideoArgs.BuilderbitRate(com.pulumi.core.Output<java.lang.String> bitRate)PresetVideoArgs.BuilderbitRate(java.lang.String bitRate)PresetVideoArgsbuild()PresetVideoArgs.Buildercodec(com.pulumi.core.Output<java.lang.String> codec)PresetVideoArgs.Buildercodec(java.lang.String codec)PresetVideoArgs.BuilderdisplayAspectRatio(com.pulumi.core.Output<java.lang.String> displayAspectRatio)PresetVideoArgs.BuilderdisplayAspectRatio(java.lang.String displayAspectRatio)PresetVideoArgs.BuilderfixedGop(com.pulumi.core.Output<java.lang.String> fixedGop)PresetVideoArgs.BuilderfixedGop(java.lang.String fixedGop)PresetVideoArgs.BuilderframeRate(com.pulumi.core.Output<java.lang.String> frameRate)PresetVideoArgs.BuilderframeRate(java.lang.String frameRate)PresetVideoArgs.BuilderkeyframesMaxDist(com.pulumi.core.Output<java.lang.String> keyframesMaxDist)PresetVideoArgs.BuilderkeyframesMaxDist(java.lang.String keyframesMaxDist)PresetVideoArgs.BuildermaxFrameRate(com.pulumi.core.Output<java.lang.String> maxFrameRate)PresetVideoArgs.BuildermaxFrameRate(java.lang.String maxFrameRate)PresetVideoArgs.BuildermaxHeight(com.pulumi.core.Output<java.lang.String> maxHeight)PresetVideoArgs.BuildermaxHeight(java.lang.String maxHeight)PresetVideoArgs.BuildermaxWidth(com.pulumi.core.Output<java.lang.String> maxWidth)PresetVideoArgs.BuildermaxWidth(java.lang.String maxWidth)PresetVideoArgs.BuilderpaddingPolicy(com.pulumi.core.Output<java.lang.String> paddingPolicy)PresetVideoArgs.BuilderpaddingPolicy(java.lang.String paddingPolicy)PresetVideoArgs.Builderresolution(com.pulumi.core.Output<java.lang.String> resolution)PresetVideoArgs.Builderresolution(java.lang.String resolution)PresetVideoArgs.BuildersizingPolicy(com.pulumi.core.Output<java.lang.String> sizingPolicy)PresetVideoArgs.BuildersizingPolicy(java.lang.String sizingPolicy)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(PresetVideoArgs defaults)
-
-
Method Detail
-
aspectRatio
public PresetVideoArgs.Builder aspectRatio(@Nullable com.pulumi.core.Output<java.lang.String> aspectRatio)
- Parameters:
aspectRatio- The display aspect ratio of the video in the output file. Valid values are: `auto`, `1:1`, `4:3`, `3:2`, `16:9`. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the values `maxWidth`, `maxHeight`, `sizingPolicy`, `paddingPolicy`, and `displayAspectRatio` instead of `resolution` and `aspectRatio`.)- Returns:
- builder
-
aspectRatio
public PresetVideoArgs.Builder aspectRatio(java.lang.String aspectRatio)
- Parameters:
aspectRatio- The display aspect ratio of the video in the output file. Valid values are: `auto`, `1:1`, `4:3`, `3:2`, `16:9`. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the values `maxWidth`, `maxHeight`, `sizingPolicy`, `paddingPolicy`, and `displayAspectRatio` instead of `resolution` and `aspectRatio`.)- Returns:
- builder
-
bitRate
public PresetVideoArgs.Builder bitRate(@Nullable com.pulumi.core.Output<java.lang.String> bitRate)
- Parameters:
bitRate- The bit rate of the video stream in the output file, in kilobits/second. You can configure variable bit rate or constant bit rate encoding.- Returns:
- builder
-
bitRate
public PresetVideoArgs.Builder bitRate(java.lang.String bitRate)
- Parameters:
bitRate- The bit rate of the video stream in the output file, in kilobits/second. You can configure variable bit rate or constant bit rate encoding.- Returns:
- builder
-
codec
public PresetVideoArgs.Builder codec(@Nullable com.pulumi.core.Output<java.lang.String> codec)
- Parameters:
codec- The video codec for the output file. Valid values are `gif`, `H.264`, `mpeg2`, `vp8`, and `vp9`.- Returns:
- builder
-
codec
public PresetVideoArgs.Builder codec(java.lang.String codec)
- Parameters:
codec- The video codec for the output file. Valid values are `gif`, `H.264`, `mpeg2`, `vp8`, and `vp9`.- Returns:
- builder
-
displayAspectRatio
public PresetVideoArgs.Builder displayAspectRatio(@Nullable com.pulumi.core.Output<java.lang.String> displayAspectRatio)
- Parameters:
displayAspectRatio- The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file.- Returns:
- builder
-
displayAspectRatio
public PresetVideoArgs.Builder displayAspectRatio(java.lang.String displayAspectRatio)
- Parameters:
displayAspectRatio- The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file.- Returns:
- builder
-
fixedGop
public PresetVideoArgs.Builder fixedGop(@Nullable com.pulumi.core.Output<java.lang.String> fixedGop)
- Parameters:
fixedGop- Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes.- Returns:
- builder
-
fixedGop
public PresetVideoArgs.Builder fixedGop(java.lang.String fixedGop)
- Parameters:
fixedGop- Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes.- Returns:
- builder
-
frameRate
public PresetVideoArgs.Builder frameRate(@Nullable com.pulumi.core.Output<java.lang.String> frameRate)
- Parameters:
frameRate- The frames per second for the video stream in the output file. The following values are valid: `auto`, `10`, `15`, `23.97`, `24`, `25`, `29.97`, `30`, `50`, `60`.- Returns:
- builder
-
frameRate
public PresetVideoArgs.Builder frameRate(java.lang.String frameRate)
- Parameters:
frameRate- The frames per second for the video stream in the output file. The following values are valid: `auto`, `10`, `15`, `23.97`, `24`, `25`, `29.97`, `30`, `50`, `60`.- Returns:
- builder
-
keyframesMaxDist
public PresetVideoArgs.Builder keyframesMaxDist(@Nullable com.pulumi.core.Output<java.lang.String> keyframesMaxDist)
- Parameters:
keyframesMaxDist- The maximum number of frames between key frames. Not applicable for containers of type gif.- Returns:
- builder
-
keyframesMaxDist
public PresetVideoArgs.Builder keyframesMaxDist(java.lang.String keyframesMaxDist)
- Parameters:
keyframesMaxDist- The maximum number of frames between key frames. Not applicable for containers of type gif.- Returns:
- builder
-
maxFrameRate
public PresetVideoArgs.Builder maxFrameRate(@Nullable com.pulumi.core.Output<java.lang.String> maxFrameRate)
- Parameters:
maxFrameRate- If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30.- Returns:
- builder
-
maxFrameRate
public PresetVideoArgs.Builder maxFrameRate(java.lang.String maxFrameRate)
- Parameters:
maxFrameRate- If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30.- Returns:
- builder
-
maxHeight
public PresetVideoArgs.Builder maxHeight(@Nullable com.pulumi.core.Output<java.lang.String> maxHeight)
- Parameters:
maxHeight- The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072, inclusive.- Returns:
- builder
-
maxHeight
public PresetVideoArgs.Builder maxHeight(java.lang.String maxHeight)
- Parameters:
maxHeight- The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072, inclusive.- Returns:
- builder
-
maxWidth
public PresetVideoArgs.Builder maxWidth(@Nullable com.pulumi.core.Output<java.lang.String> maxWidth)
- Parameters:
maxWidth- The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096, inclusive.- Returns:
- builder
-
maxWidth
public PresetVideoArgs.Builder maxWidth(java.lang.String maxWidth)
- Parameters:
maxWidth- The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096, inclusive.- Returns:
- builder
-
paddingPolicy
public PresetVideoArgs.Builder paddingPolicy(@Nullable com.pulumi.core.Output<java.lang.String> paddingPolicy)
- Parameters:
paddingPolicy- When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified for `maxWidth` and `maxHeight`.- Returns:
- builder
-
paddingPolicy
public PresetVideoArgs.Builder paddingPolicy(java.lang.String paddingPolicy)
- Parameters:
paddingPolicy- When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified for `maxWidth` and `maxHeight`.- Returns:
- builder
-
resolution
public PresetVideoArgs.Builder resolution(@Nullable com.pulumi.core.Output<java.lang.String> resolution)
- Parameters:
resolution- The width and height of the video in the output file, in pixels. Valid values are `auto` and `widthxheight`. (see note for `aspectRatio`)- Returns:
- builder
-
resolution
public PresetVideoArgs.Builder resolution(java.lang.String resolution)
- Parameters:
resolution- The width and height of the video in the output file, in pixels. Valid values are `auto` and `widthxheight`. (see note for `aspectRatio`)- Returns:
- builder
-
sizingPolicy
public PresetVideoArgs.Builder sizingPolicy(@Nullable com.pulumi.core.Output<java.lang.String> sizingPolicy)
- Parameters:
sizingPolicy- A value that controls scaling of the output video. Valid values are: `Fit`, `Fill`, `Stretch`, `Keep`, `ShrinkToFit`, `ShrinkToFill`.- Returns:
- builder
-
sizingPolicy
public PresetVideoArgs.Builder sizingPolicy(java.lang.String sizingPolicy)
- Parameters:
sizingPolicy- A value that controls scaling of the output video. Valid values are: `Fit`, `Fill`, `Stretch`, `Keep`, `ShrinkToFit`, `ShrinkToFill`.- Returns:
- builder
-
build
public PresetVideoArgs build()
-
-