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

com.pulumi.azurenative.media.inputs.EnabledProtocolsArgs 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.Boolean;
import java.util.Objects;


/**
 * Class to specify which protocols are enabled
 * 
 */
public final class EnabledProtocolsArgs extends com.pulumi.resources.ResourceArgs {

    public static final EnabledProtocolsArgs Empty = new EnabledProtocolsArgs();

    /**
     * Enable DASH protocol or not
     * 
     */
    @Import(name="dash", required=true)
    private Output dash;

    /**
     * @return Enable DASH protocol or not
     * 
     */
    public Output dash() {
        return this.dash;
    }

    /**
     * Enable Download protocol or not
     * 
     */
    @Import(name="download", required=true)
    private Output download;

    /**
     * @return Enable Download protocol or not
     * 
     */
    public Output download() {
        return this.download;
    }

    /**
     * Enable HLS protocol or not
     * 
     */
    @Import(name="hls", required=true)
    private Output hls;

    /**
     * @return Enable HLS protocol or not
     * 
     */
    public Output hls() {
        return this.hls;
    }

    /**
     * Enable SmoothStreaming protocol or not
     * 
     */
    @Import(name="smoothStreaming", required=true)
    private Output smoothStreaming;

    /**
     * @return Enable SmoothStreaming protocol or not
     * 
     */
    public Output smoothStreaming() {
        return this.smoothStreaming;
    }

    private EnabledProtocolsArgs() {}

    private EnabledProtocolsArgs(EnabledProtocolsArgs $) {
        this.dash = $.dash;
        this.download = $.download;
        this.hls = $.hls;
        this.smoothStreaming = $.smoothStreaming;
    }

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

    public static final class Builder {
        private EnabledProtocolsArgs $;

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

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

        /**
         * @param dash Enable DASH protocol or not
         * 
         * @return builder
         * 
         */
        public Builder dash(Output dash) {
            $.dash = dash;
            return this;
        }

        /**
         * @param dash Enable DASH protocol or not
         * 
         * @return builder
         * 
         */
        public Builder dash(Boolean dash) {
            return dash(Output.of(dash));
        }

        /**
         * @param download Enable Download protocol or not
         * 
         * @return builder
         * 
         */
        public Builder download(Output download) {
            $.download = download;
            return this;
        }

        /**
         * @param download Enable Download protocol or not
         * 
         * @return builder
         * 
         */
        public Builder download(Boolean download) {
            return download(Output.of(download));
        }

        /**
         * @param hls Enable HLS protocol or not
         * 
         * @return builder
         * 
         */
        public Builder hls(Output hls) {
            $.hls = hls;
            return this;
        }

        /**
         * @param hls Enable HLS protocol or not
         * 
         * @return builder
         * 
         */
        public Builder hls(Boolean hls) {
            return hls(Output.of(hls));
        }

        /**
         * @param smoothStreaming Enable SmoothStreaming protocol or not
         * 
         * @return builder
         * 
         */
        public Builder smoothStreaming(Output smoothStreaming) {
            $.smoothStreaming = smoothStreaming;
            return this;
        }

        /**
         * @param smoothStreaming Enable SmoothStreaming protocol or not
         * 
         * @return builder
         * 
         */
        public Builder smoothStreaming(Boolean smoothStreaming) {
            return smoothStreaming(Output.of(smoothStreaming));
        }

        public EnabledProtocolsArgs build() {
            if ($.dash == null) {
                throw new MissingRequiredPropertyException("EnabledProtocolsArgs", "dash");
            }
            if ($.download == null) {
                throw new MissingRequiredPropertyException("EnabledProtocolsArgs", "download");
            }
            if ($.hls == null) {
                throw new MissingRequiredPropertyException("EnabledProtocolsArgs", "hls");
            }
            if ($.smoothStreaming == null) {
                throw new MissingRequiredPropertyException("EnabledProtocolsArgs", "smoothStreaming");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy