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

com.pulumi.azurenative.videoanalyzer.inputs.VideoSinkArgs 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.videoanalyzer.inputs;

import com.pulumi.azurenative.videoanalyzer.inputs.NodeInputArgs;
import com.pulumi.azurenative.videoanalyzer.inputs.VideoCreationPropertiesArgs;
import com.pulumi.azurenative.videoanalyzer.inputs.VideoPublishingOptionsArgs;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Video sink in a live topology allows for video and audio to be captured, optionally archived, and published via a video resource. If archiving is enabled, this results in a video of type 'archive'. If used in a batch topology, this allows for video and audio to be stored as a file, and published via a video resource of type 'file'
 * 
 */
public final class VideoSinkArgs extends com.pulumi.resources.ResourceArgs {

    public static final VideoSinkArgs Empty = new VideoSinkArgs();

    /**
     * An array of upstream node references within the topology to be used as inputs for this node.
     * 
     */
    @Import(name="inputs", required=true)
    private Output> inputs;

    /**
     * @return An array of upstream node references within the topology to be used as inputs for this node.
     * 
     */
    public Output> inputs() {
        return this.inputs;
    }

    /**
     * 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;
    }

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

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

    /**
     * Optional video properties to be used in case a new video resource needs to be created on the service.
     * 
     */
    @Import(name="videoCreationProperties")
    private @Nullable Output videoCreationProperties;

    /**
     * @return Optional video properties to be used in case a new video resource needs to be created on the service.
     * 
     */
    public Optional> videoCreationProperties() {
        return Optional.ofNullable(this.videoCreationProperties);
    }

    /**
     * Name of a new or existing video resource used to capture and publish content. Note: if downstream of RTSP source, and if disableArchive is set to true, then no content is archived.
     * 
     */
    @Import(name="videoName", required=true)
    private Output videoName;

    /**
     * @return Name of a new or existing video resource used to capture and publish content. Note: if downstream of RTSP source, and if disableArchive is set to true, then no content is archived.
     * 
     */
    public Output videoName() {
        return this.videoName;
    }

    /**
     * Options to change how the video sink publishes content via the video resource. This property is only allowed for topologies where "kind" is set to "live".
     * 
     */
    @Import(name="videoPublishingOptions")
    private @Nullable Output videoPublishingOptions;

    /**
     * @return Options to change how the video sink publishes content via the video resource. This property is only allowed for topologies where "kind" is set to "live".
     * 
     */
    public Optional> videoPublishingOptions() {
        return Optional.ofNullable(this.videoPublishingOptions);
    }

    private VideoSinkArgs() {}

    private VideoSinkArgs(VideoSinkArgs $) {
        this.inputs = $.inputs;
        this.name = $.name;
        this.type = $.type;
        this.videoCreationProperties = $.videoCreationProperties;
        this.videoName = $.videoName;
        this.videoPublishingOptions = $.videoPublishingOptions;
    }

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

    public static final class Builder {
        private VideoSinkArgs $;

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

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

        /**
         * @param inputs An array of upstream node references within the topology to be used as inputs for this node.
         * 
         * @return builder
         * 
         */
        public Builder inputs(Output> inputs) {
            $.inputs = inputs;
            return this;
        }

        /**
         * @param inputs An array of upstream node references within the topology to be used as inputs for this node.
         * 
         * @return builder
         * 
         */
        public Builder inputs(List inputs) {
            return inputs(Output.of(inputs));
        }

        /**
         * @param inputs An array of upstream node references within the topology to be used as inputs for this node.
         * 
         * @return builder
         * 
         */
        public Builder inputs(NodeInputArgs... inputs) {
            return inputs(List.of(inputs));
        }

        /**
         * @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 type The discriminator for derived types.
         * Expected value is '#Microsoft.VideoAnalyzer.VideoSink'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

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

        /**
         * @param videoCreationProperties Optional video properties to be used in case a new video resource needs to be created on the service.
         * 
         * @return builder
         * 
         */
        public Builder videoCreationProperties(@Nullable Output videoCreationProperties) {
            $.videoCreationProperties = videoCreationProperties;
            return this;
        }

        /**
         * @param videoCreationProperties Optional video properties to be used in case a new video resource needs to be created on the service.
         * 
         * @return builder
         * 
         */
        public Builder videoCreationProperties(VideoCreationPropertiesArgs videoCreationProperties) {
            return videoCreationProperties(Output.of(videoCreationProperties));
        }

        /**
         * @param videoName Name of a new or existing video resource used to capture and publish content. Note: if downstream of RTSP source, and if disableArchive is set to true, then no content is archived.
         * 
         * @return builder
         * 
         */
        public Builder videoName(Output videoName) {
            $.videoName = videoName;
            return this;
        }

        /**
         * @param videoName Name of a new or existing video resource used to capture and publish content. Note: if downstream of RTSP source, and if disableArchive is set to true, then no content is archived.
         * 
         * @return builder
         * 
         */
        public Builder videoName(String videoName) {
            return videoName(Output.of(videoName));
        }

        /**
         * @param videoPublishingOptions Options to change how the video sink publishes content via the video resource. This property is only allowed for topologies where "kind" is set to "live".
         * 
         * @return builder
         * 
         */
        public Builder videoPublishingOptions(@Nullable Output videoPublishingOptions) {
            $.videoPublishingOptions = videoPublishingOptions;
            return this;
        }

        /**
         * @param videoPublishingOptions Options to change how the video sink publishes content via the video resource. This property is only allowed for topologies where "kind" is set to "live".
         * 
         * @return builder
         * 
         */
        public Builder videoPublishingOptions(VideoPublishingOptionsArgs videoPublishingOptions) {
            return videoPublishingOptions(Output.of(videoPublishingOptions));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy