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

com.pulumi.azurenative.videoanalyzer.inputs.EncoderSystemPresetArgs 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.enums.EncoderSystemPresetType;
import com.pulumi.core.Either;
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;


/**
 * Describes a built-in preset for encoding the input content using the encoder processor.
 * 
 */
public final class EncoderSystemPresetArgs extends com.pulumi.resources.ResourceArgs {

    public static final EncoderSystemPresetArgs Empty = new EncoderSystemPresetArgs();

    /**
     * Name of the built-in encoding preset.
     * 
     */
    @Import(name="name", required=true)
    private Output> name;

    /**
     * @return Name of the built-in encoding preset.
     * 
     */
    public Output> name() {
        return this.name;
    }

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

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

    private EncoderSystemPresetArgs() {}

    private EncoderSystemPresetArgs(EncoderSystemPresetArgs $) {
        this.name = $.name;
        this.type = $.type;
    }

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

    public static final class Builder {
        private EncoderSystemPresetArgs $;

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

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

        /**
         * @param name Name of the built-in encoding preset.
         * 
         * @return builder
         * 
         */
        public Builder name(Output> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the built-in encoding preset.
         * 
         * @return builder
         * 
         */
        public Builder name(Either name) {
            return name(Output.of(name));
        }

        /**
         * @param name Name of the built-in encoding preset.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Either.ofLeft(name));
        }

        /**
         * @param name Name of the built-in encoding preset.
         * 
         * @return builder
         * 
         */
        public Builder name(EncoderSystemPresetType name) {
            return name(Either.ofRight(name));
        }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy