Class PngImageArgs.Builder

  • Enclosing class:
    PngImageArgs

    public static final class PngImageArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • keyFrameInterval

        public PngImageArgs.Builder keyFrameInterval​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> keyFrameInterval)
        Parameters:
        keyFrameInterval - The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting.
        Returns:
        builder
      • keyFrameInterval

        public PngImageArgs.Builder keyFrameInterval​(java.lang.String keyFrameInterval)
        Parameters:
        keyFrameInterval - The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting.
        Returns:
        builder
      • label

        public PngImageArgs.Builder label​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> label)
        Parameters:
        label - An optional label for the codec. The label can be used to control muxing behavior.
        Returns:
        builder
      • label

        public PngImageArgs.Builder label​(java.lang.String label)
        Parameters:
        label - An optional label for the codec. The label can be used to control muxing behavior.
        Returns:
        builder
      • layers

        public PngImageArgs.Builder layers​(@Nullable
                                           com.pulumi.core.Output<java.util.List<PngLayerArgs>> layers)
        Parameters:
        layers - A collection of output PNG image layers to be produced by the encoder.
        Returns:
        builder
      • layers

        public PngImageArgs.Builder layers​(java.util.List<PngLayerArgs> layers)
        Parameters:
        layers - A collection of output PNG image layers to be produced by the encoder.
        Returns:
        builder
      • layers

        public PngImageArgs.Builder layers​(PngLayerArgs... layers)
        Parameters:
        layers - A collection of output PNG image layers to be produced by the encoder.
        Returns:
        builder
      • odataType

        public PngImageArgs.Builder odataType​(com.pulumi.core.Output<java.lang.String> odataType)
        Parameters:
        odataType - The discriminator for derived types. Expected value is '#Microsoft.Media.PngImage'.
        Returns:
        builder
      • odataType

        public PngImageArgs.Builder odataType​(java.lang.String odataType)
        Parameters:
        odataType - The discriminator for derived types. Expected value is '#Microsoft.Media.PngImage'.
        Returns:
        builder
      • range

        public PngImageArgs.Builder range​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> range)
        Parameters:
        range - The position relative to transform preset start time in the input video at which to stop generating thumbnails. The value can be in ISO 8601 format (For example, PT5M30S to stop at 5 minutes and 30 seconds from start time), or a frame count (For example, 300 to stop at the 300th frame from the frame at start time. If this value is 1, it means only producing one thumbnail at start time), or a relative value to the stream duration (For example, 50% to stop at half of stream duration from start time). The default value is 100%, which means to stop at the end of the stream.
        Returns:
        builder
      • range

        public PngImageArgs.Builder range​(java.lang.String range)
        Parameters:
        range - The position relative to transform preset start time in the input video at which to stop generating thumbnails. The value can be in ISO 8601 format (For example, PT5M30S to stop at 5 minutes and 30 seconds from start time), or a frame count (For example, 300 to stop at the 300th frame from the frame at start time. If this value is 1, it means only producing one thumbnail at start time), or a relative value to the stream duration (For example, 50% to stop at half of stream duration from start time). The default value is 100%, which means to stop at the end of the stream.
        Returns:
        builder
      • start

        public PngImageArgs.Builder start​(com.pulumi.core.Output<java.lang.String> start)
        Parameters:
        start - The position in the input video from where to start generating thumbnails. The value can be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video and will only produce one thumbnail, no matter what other settings are for Step and Range. The default value is macro {Best}.
        Returns:
        builder
      • start

        public PngImageArgs.Builder start​(java.lang.String start)
        Parameters:
        start - The position in the input video from where to start generating thumbnails. The value can be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video and will only produce one thumbnail, no matter what other settings are for Step and Range. The default value is macro {Best}.
        Returns:
        builder
      • step

        public PngImageArgs.Builder step​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> step)
        Parameters:
        step - The intervals at which thumbnails are generated. The value can be in ISO 8601 format (For example, PT05S for one image every 5 seconds), or a frame count (For example, 30 for one image every 30 frames), or a relative value to stream duration (For example, 10% for one image every 10% of stream duration). Note: Step value will affect the first generated thumbnail, which may not be exactly the one specified at transform preset start time. This is due to the encoder, which tries to select the best thumbnail between start time and Step position from start time as the first output. As the default value is 10%, it means if stream has long duration, the first generated thumbnail might be far away from the one specified at start time. Try to select reasonable value for Step if the first thumbnail is expected close to start time, or set Range value at 1 if only one thumbnail is needed at start time.
        Returns:
        builder
      • step

        public PngImageArgs.Builder step​(java.lang.String step)
        Parameters:
        step - The intervals at which thumbnails are generated. The value can be in ISO 8601 format (For example, PT05S for one image every 5 seconds), or a frame count (For example, 30 for one image every 30 frames), or a relative value to stream duration (For example, 10% for one image every 10% of stream duration). Note: Step value will affect the first generated thumbnail, which may not be exactly the one specified at transform preset start time. This is due to the encoder, which tries to select the best thumbnail between start time and Step position from start time as the first output. As the default value is 10%, it means if stream has long duration, the first generated thumbnail might be far away from the one specified at start time. Try to select reasonable value for Step if the first thumbnail is expected close to start time, or set Range value at 1 if only one thumbnail is needed at start time.
        Returns:
        builder
      • stretchMode

        public PngImageArgs.Builder stretchMode​(@Nullable
                                                com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,​StretchMode>> stretchMode)
        Parameters:
        stretchMode - The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize
        Returns:
        builder
      • stretchMode

        public PngImageArgs.Builder stretchMode​(com.pulumi.core.Either<java.lang.String,​StretchMode> stretchMode)
        Parameters:
        stretchMode - The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize
        Returns:
        builder
      • stretchMode

        public PngImageArgs.Builder stretchMode​(java.lang.String stretchMode)
        Parameters:
        stretchMode - The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize
        Returns:
        builder
      • stretchMode

        public PngImageArgs.Builder stretchMode​(StretchMode stretchMode)
        Parameters:
        stretchMode - The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize
        Returns:
        builder
      • syncMode

        public PngImageArgs.Builder syncMode​(@Nullable
                                             com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,​VideoSyncMode>> syncMode)
        Parameters:
        syncMode - The Video Sync Mode
        Returns:
        builder
      • syncMode

        public PngImageArgs.Builder syncMode​(com.pulumi.core.Either<java.lang.String,​VideoSyncMode> syncMode)
        Parameters:
        syncMode - The Video Sync Mode
        Returns:
        builder
      • syncMode

        public PngImageArgs.Builder syncMode​(java.lang.String syncMode)
        Parameters:
        syncMode - The Video Sync Mode
        Returns:
        builder