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

com.pulumi.azurenative.videoanalyzer.inputs.VideoSourceArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.videoanalyzer.inputs;

import com.pulumi.azurenative.videoanalyzer.inputs.VideoSequenceAbsoluteTimeMarkersArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


/**
 * Video source allows for content from a Video Analyzer video resource to be ingested into a pipeline. Currently supported only with batch pipelines.
 * 
 */
public final class VideoSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final VideoSourceArgs Empty = new VideoSourceArgs();

    /**
     * Node name. Must be unique within the topology.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Node name. Must be unique within the topology.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Describes a sequence of datetime ranges. The video source only picks up recorded media within these ranges.
     * 
     */
    @Import(name="timeSequences", required=true)
    private Output timeSequences;

    /**
     * @return Describes a sequence of datetime ranges. The video source only picks up recorded media within these ranges.
     * 
     */
    public Output timeSequences() {
        return this.timeSequences;
    }

    /**
     * The discriminator for derived types.
     * Expected value is '#Microsoft.VideoAnalyzer.VideoSource'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The discriminator for derived types.
     * Expected value is '#Microsoft.VideoAnalyzer.VideoSource'.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * Name of the Video Analyzer video resource to be used as the source.
     * 
     */
    @Import(name="videoName", required=true)
    private Output videoName;

    /**
     * @return Name of the Video Analyzer video resource to be used as the source.
     * 
     */
    public Output videoName() {
        return this.videoName;
    }

    private VideoSourceArgs() {}

    private VideoSourceArgs(VideoSourceArgs $) {
        this.name = $.name;
        this.timeSequences = $.timeSequences;
        this.type = $.type;
        this.videoName = $.videoName;
    }

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

    public static final class Builder {
        private VideoSourceArgs $;

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

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

        /**
         * @param name Node name. Must be unique within the topology.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Node name. Must be unique within the topology.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param timeSequences Describes a sequence of datetime ranges. The video source only picks up recorded media within these ranges.
         * 
         * @return builder
         * 
         */
        public Builder timeSequences(Output timeSequences) {
            $.timeSequences = timeSequences;
            return this;
        }

        /**
         * @param timeSequences Describes a sequence of datetime ranges. The video source only picks up recorded media within these ranges.
         * 
         * @return builder
         * 
         */
        public Builder timeSequences(VideoSequenceAbsoluteTimeMarkersArgs timeSequences) {
            return timeSequences(Output.of(timeSequences));
        }

        /**
         * @param type The discriminator for derived types.
         * Expected value is '#Microsoft.VideoAnalyzer.VideoSource'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The discriminator for derived types.
         * Expected value is '#Microsoft.VideoAnalyzer.VideoSource'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param videoName Name of the Video Analyzer video resource to be used as the source.
         * 
         * @return builder
         * 
         */
        public Builder videoName(Output videoName) {
            $.videoName = videoName;
            return this;
        }

        /**
         * @param videoName Name of the Video Analyzer video resource to be used as the source.
         * 
         * @return builder
         * 
         */
        public Builder videoName(String videoName) {
            return videoName(Output.of(videoName));
        }

        public VideoSourceArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("VideoSourceArgs", "name");
            }
            if ($.timeSequences == null) {
                throw new MissingRequiredPropertyException("VideoSourceArgs", "timeSequences");
            }
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            if ($.videoName == null) {
                throw new MissingRequiredPropertyException("VideoSourceArgs", "videoName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy