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

com.pulumi.azurenative.videoanalyzer.inputs.EncoderCustomPresetArgs 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.AudioEncoderAacArgs;
import com.pulumi.azurenative.videoanalyzer.inputs.VideoEncoderH264Args;
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;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes a custom preset for encoding the input content using the encoder processor.
 * 
 */
public final class EncoderCustomPresetArgs extends com.pulumi.resources.ResourceArgs {

    public static final EncoderCustomPresetArgs Empty = new EncoderCustomPresetArgs();

    /**
     * Describes a custom preset for encoding audio.
     * 
     */
    @Import(name="audioEncoder")
    private @Nullable Output audioEncoder;

    /**
     * @return Describes a custom preset for encoding audio.
     * 
     */
    public Optional> audioEncoder() {
        return Optional.ofNullable(this.audioEncoder);
    }

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

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

    /**
     * Describes a custom preset for encoding video.
     * 
     */
    @Import(name="videoEncoder")
    private @Nullable Output videoEncoder;

    /**
     * @return Describes a custom preset for encoding video.
     * 
     */
    public Optional> videoEncoder() {
        return Optional.ofNullable(this.videoEncoder);
    }

    private EncoderCustomPresetArgs() {}

    private EncoderCustomPresetArgs(EncoderCustomPresetArgs $) {
        this.audioEncoder = $.audioEncoder;
        this.type = $.type;
        this.videoEncoder = $.videoEncoder;
    }

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

    public static final class Builder {
        private EncoderCustomPresetArgs $;

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

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

        /**
         * @param audioEncoder Describes a custom preset for encoding audio.
         * 
         * @return builder
         * 
         */
        public Builder audioEncoder(@Nullable Output audioEncoder) {
            $.audioEncoder = audioEncoder;
            return this;
        }

        /**
         * @param audioEncoder Describes a custom preset for encoding audio.
         * 
         * @return builder
         * 
         */
        public Builder audioEncoder(AudioEncoderAacArgs audioEncoder) {
            return audioEncoder(Output.of(audioEncoder));
        }

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

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

        /**
         * @param videoEncoder Describes a custom preset for encoding video.
         * 
         * @return builder
         * 
         */
        public Builder videoEncoder(@Nullable Output videoEncoder) {
            $.videoEncoder = videoEncoder;
            return this;
        }

        /**
         * @param videoEncoder Describes a custom preset for encoding video.
         * 
         * @return builder
         * 
         */
        public Builder videoEncoder(VideoEncoderH264Args videoEncoder) {
            return videoEncoder(Output.of(videoEncoder));
        }

        public EncoderCustomPresetArgs build() {
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy