All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.media.inputs.FadeArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.media.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes the properties of a Fade effect applied to the input media.
 * 
 */
public final class FadeArgs extends com.pulumi.resources.ResourceArgs {

    public static final FadeArgs Empty = new FadeArgs();

    /**
     * The Duration of the fade effect in the video. The value can be in ISO 8601 format (For example, PT05S to fade In/Out a color during 5 seconds), or a frame count (For example, 10 to fade 10 frames from the start time), or a relative value to stream duration (For example, 10% to fade 10% of stream duration)
     * 
     */
    @Import(name="duration", required=true)
    private Output duration;

    /**
     * @return The Duration of the fade effect in the video. The value can be in ISO 8601 format (For example, PT05S to fade In/Out a color during 5 seconds), or a frame count (For example, 10 to fade 10 frames from the start time), or a relative value to stream duration (For example, 10% to fade 10% of stream duration)
     * 
     */
    public Output duration() {
        return this.duration;
    }

    /**
     * The Color for the fade In/Out. it can be on the CSS Level1 colors https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords or an RGB/hex value: e.g: rgb(255,0,0), 0xFF0000 or #FF0000
     * 
     */
    @Import(name="fadeColor", required=true)
    private Output fadeColor;

    /**
     * @return The Color for the fade In/Out. it can be on the CSS Level1 colors https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords or an RGB/hex value: e.g: rgb(255,0,0), 0xFF0000 or #FF0000
     * 
     */
    public Output fadeColor() {
        return this.fadeColor;
    }

    /**
     * The position in the input video from where to start fade. 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). Default is 0
     * 
     */
    @Import(name="start")
    private @Nullable Output start;

    /**
     * @return The position in the input video from where to start fade. 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). Default is 0
     * 
     */
    public Optional> start() {
        return Optional.ofNullable(this.start);
    }

    private FadeArgs() {}

    private FadeArgs(FadeArgs $) {
        this.duration = $.duration;
        this.fadeColor = $.fadeColor;
        this.start = $.start;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(FadeArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private FadeArgs $;

        public Builder() {
            $ = new FadeArgs();
        }

        public Builder(FadeArgs defaults) {
            $ = new FadeArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param duration The Duration of the fade effect in the video. The value can be in ISO 8601 format (For example, PT05S to fade In/Out a color during 5 seconds), or a frame count (For example, 10 to fade 10 frames from the start time), or a relative value to stream duration (For example, 10% to fade 10% of stream duration)
         * 
         * @return builder
         * 
         */
        public Builder duration(Output duration) {
            $.duration = duration;
            return this;
        }

        /**
         * @param duration The Duration of the fade effect in the video. The value can be in ISO 8601 format (For example, PT05S to fade In/Out a color during 5 seconds), or a frame count (For example, 10 to fade 10 frames from the start time), or a relative value to stream duration (For example, 10% to fade 10% of stream duration)
         * 
         * @return builder
         * 
         */
        public Builder duration(String duration) {
            return duration(Output.of(duration));
        }

        /**
         * @param fadeColor The Color for the fade In/Out. it can be on the CSS Level1 colors https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords or an RGB/hex value: e.g: rgb(255,0,0), 0xFF0000 or #FF0000
         * 
         * @return builder
         * 
         */
        public Builder fadeColor(Output fadeColor) {
            $.fadeColor = fadeColor;
            return this;
        }

        /**
         * @param fadeColor The Color for the fade In/Out. it can be on the CSS Level1 colors https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords or an RGB/hex value: e.g: rgb(255,0,0), 0xFF0000 or #FF0000
         * 
         * @return builder
         * 
         */
        public Builder fadeColor(String fadeColor) {
            return fadeColor(Output.of(fadeColor));
        }

        /**
         * @param start The position in the input video from where to start fade. 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). Default is 0
         * 
         * @return builder
         * 
         */
        public Builder start(@Nullable Output start) {
            $.start = start;
            return this;
        }

        /**
         * @param start The position in the input video from where to start fade. 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). Default is 0
         * 
         * @return builder
         * 
         */
        public Builder start(String start) {
            return start(Output.of(start));
        }

        public FadeArgs build() {
            if ($.duration == null) {
                throw new MissingRequiredPropertyException("FadeArgs", "duration");
            }
            if ($.fadeColor == null) {
                throw new MissingRequiredPropertyException("FadeArgs", "fadeColor");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy