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

com.pulumi.azurenative.media.inputs.StandardEncoderPresetArgs 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.azurenative.media.inputs.AacAudioArgs;
import com.pulumi.azurenative.media.inputs.AudioArgs;
import com.pulumi.azurenative.media.inputs.CopyAudioArgs;
import com.pulumi.azurenative.media.inputs.CopyVideoArgs;
import com.pulumi.azurenative.media.inputs.DDAudioArgs;
import com.pulumi.azurenative.media.inputs.FiltersArgs;
import com.pulumi.azurenative.media.inputs.H264VideoArgs;
import com.pulumi.azurenative.media.inputs.H265VideoArgs;
import com.pulumi.azurenative.media.inputs.ImageArgs;
import com.pulumi.azurenative.media.inputs.ImageFormatArgs;
import com.pulumi.azurenative.media.inputs.JpgFormatArgs;
import com.pulumi.azurenative.media.inputs.JpgImageArgs;
import com.pulumi.azurenative.media.inputs.Mp4FormatArgs;
import com.pulumi.azurenative.media.inputs.MultiBitrateFormatArgs;
import com.pulumi.azurenative.media.inputs.PngFormatArgs;
import com.pulumi.azurenative.media.inputs.PngImageArgs;
import com.pulumi.azurenative.media.inputs.TransportStreamFormatArgs;
import com.pulumi.azurenative.media.inputs.VideoArgs;
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.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes all the settings to be used when encoding the input video with the Standard Encoder.
 * 
 */
public final class StandardEncoderPresetArgs extends com.pulumi.resources.ResourceArgs {

    public static final StandardEncoderPresetArgs Empty = new StandardEncoderPresetArgs();

    /**
     * The list of codecs to be used when encoding the input video.
     * 
     */
    @Import(name="codecs", required=true)
    private Output> codecs;

    /**
     * @return The list of codecs to be used when encoding the input video.
     * 
     */
    public Output> codecs() {
        return this.codecs;
    }

    /**
     * Dictionary containing key value pairs for parameters not exposed in the preset itself
     * 
     */
    @Import(name="experimentalOptions")
    private @Nullable Output> experimentalOptions;

    /**
     * @return Dictionary containing key value pairs for parameters not exposed in the preset itself
     * 
     */
    public Optional>> experimentalOptions() {
        return Optional.ofNullable(this.experimentalOptions);
    }

    /**
     * One or more filtering operations that are applied to the input media before encoding.
     * 
     */
    @Import(name="filters")
    private @Nullable Output filters;

    /**
     * @return One or more filtering operations that are applied to the input media before encoding.
     * 
     */
    public Optional> filters() {
        return Optional.ofNullable(this.filters);
    }

    /**
     * The list of outputs to be produced by the encoder.
     * 
     */
    @Import(name="formats", required=true)
    private Output> formats;

    /**
     * @return The list of outputs to be produced by the encoder.
     * 
     */
    public Output> formats() {
        return this.formats;
    }

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

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

    private StandardEncoderPresetArgs() {}

    private StandardEncoderPresetArgs(StandardEncoderPresetArgs $) {
        this.codecs = $.codecs;
        this.experimentalOptions = $.experimentalOptions;
        this.filters = $.filters;
        this.formats = $.formats;
        this.odataType = $.odataType;
    }

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

    public static final class Builder {
        private StandardEncoderPresetArgs $;

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

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

        /**
         * @param codecs The list of codecs to be used when encoding the input video.
         * 
         * @return builder
         * 
         */
        public Builder codecs(Output> codecs) {
            $.codecs = codecs;
            return this;
        }

        /**
         * @param codecs The list of codecs to be used when encoding the input video.
         * 
         * @return builder
         * 
         */
        public Builder codecs(List codecs) {
            return codecs(Output.of(codecs));
        }

        /**
         * @param codecs The list of codecs to be used when encoding the input video.
         * 
         * @return builder
         * 
         */
        public Builder codecs(Object... codecs) {
            return codecs(List.of(codecs));
        }

        /**
         * @param experimentalOptions Dictionary containing key value pairs for parameters not exposed in the preset itself
         * 
         * @return builder
         * 
         */
        public Builder experimentalOptions(@Nullable Output> experimentalOptions) {
            $.experimentalOptions = experimentalOptions;
            return this;
        }

        /**
         * @param experimentalOptions Dictionary containing key value pairs for parameters not exposed in the preset itself
         * 
         * @return builder
         * 
         */
        public Builder experimentalOptions(Map experimentalOptions) {
            return experimentalOptions(Output.of(experimentalOptions));
        }

        /**
         * @param filters One or more filtering operations that are applied to the input media before encoding.
         * 
         * @return builder
         * 
         */
        public Builder filters(@Nullable Output filters) {
            $.filters = filters;
            return this;
        }

        /**
         * @param filters One or more filtering operations that are applied to the input media before encoding.
         * 
         * @return builder
         * 
         */
        public Builder filters(FiltersArgs filters) {
            return filters(Output.of(filters));
        }

        /**
         * @param formats The list of outputs to be produced by the encoder.
         * 
         * @return builder
         * 
         */
        public Builder formats(Output> formats) {
            $.formats = formats;
            return this;
        }

        /**
         * @param formats The list of outputs to be produced by the encoder.
         * 
         * @return builder
         * 
         */
        public Builder formats(List formats) {
            return formats(Output.of(formats));
        }

        /**
         * @param formats The list of outputs to be produced by the encoder.
         * 
         * @return builder
         * 
         */
        public Builder formats(Object... formats) {
            return formats(List.of(formats));
        }

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

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

        public StandardEncoderPresetArgs build() {
            if ($.codecs == null) {
                throw new MissingRequiredPropertyException("StandardEncoderPresetArgs", "codecs");
            }
            if ($.formats == null) {
                throw new MissingRequiredPropertyException("StandardEncoderPresetArgs", "formats");
            }
            $.odataType = Codegen.stringProp("odataType").output().arg($.odataType).require();
            return $;
        }
    }

}