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

com.pulumi.azurenative.media.inputs.AacAudioArgs 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.media.inputs;

import com.pulumi.azurenative.media.enums.AacAudioProfile;
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.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes Advanced Audio Codec (AAC) audio encoding settings.
 * 
 */
public final class AacAudioArgs extends com.pulumi.resources.ResourceArgs {

    public static final AacAudioArgs Empty = new AacAudioArgs();

    /**
     * The bitrate, in bits per second, of the output encoded audio.
     * 
     */
    @Import(name="bitrate")
    private @Nullable Output bitrate;

    /**
     * @return The bitrate, in bits per second, of the output encoded audio.
     * 
     */
    public Optional> bitrate() {
        return Optional.ofNullable(this.bitrate);
    }

    /**
     * The number of channels in the audio.
     * 
     */
    @Import(name="channels")
    private @Nullable Output channels;

    /**
     * @return The number of channels in the audio.
     * 
     */
    public Optional> channels() {
        return Optional.ofNullable(this.channels);
    }

    /**
     * An optional label for the codec. The label can be used to control muxing behavior.
     * 
     */
    @Import(name="label")
    private @Nullable Output label;

    /**
     * @return An optional label for the codec. The label can be used to control muxing behavior.
     * 
     */
    public Optional> label() {
        return Optional.ofNullable(this.label);
    }

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

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

    /**
     * The encoding profile to be used when encoding audio with AAC.
     * 
     */
    @Import(name="profile")
    private @Nullable Output> profile;

    /**
     * @return The encoding profile to be used when encoding audio with AAC.
     * 
     */
    public Optional>> profile() {
        return Optional.ofNullable(this.profile);
    }

    /**
     * The sampling rate to use for encoding in hertz.
     * 
     */
    @Import(name="samplingRate")
    private @Nullable Output samplingRate;

    /**
     * @return The sampling rate to use for encoding in hertz.
     * 
     */
    public Optional> samplingRate() {
        return Optional.ofNullable(this.samplingRate);
    }

    private AacAudioArgs() {}

    private AacAudioArgs(AacAudioArgs $) {
        this.bitrate = $.bitrate;
        this.channels = $.channels;
        this.label = $.label;
        this.odataType = $.odataType;
        this.profile = $.profile;
        this.samplingRate = $.samplingRate;
    }

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

    public static final class Builder {
        private AacAudioArgs $;

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

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

        /**
         * @param bitrate The bitrate, in bits per second, of the output encoded audio.
         * 
         * @return builder
         * 
         */
        public Builder bitrate(@Nullable Output bitrate) {
            $.bitrate = bitrate;
            return this;
        }

        /**
         * @param bitrate The bitrate, in bits per second, of the output encoded audio.
         * 
         * @return builder
         * 
         */
        public Builder bitrate(Integer bitrate) {
            return bitrate(Output.of(bitrate));
        }

        /**
         * @param channels The number of channels in the audio.
         * 
         * @return builder
         * 
         */
        public Builder channels(@Nullable Output channels) {
            $.channels = channels;
            return this;
        }

        /**
         * @param channels The number of channels in the audio.
         * 
         * @return builder
         * 
         */
        public Builder channels(Integer channels) {
            return channels(Output.of(channels));
        }

        /**
         * @param label An optional label for the codec. The label can be used to control muxing behavior.
         * 
         * @return builder
         * 
         */
        public Builder label(@Nullable Output label) {
            $.label = label;
            return this;
        }

        /**
         * @param label An optional label for the codec. The label can be used to control muxing behavior.
         * 
         * @return builder
         * 
         */
        public Builder label(String label) {
            return label(Output.of(label));
        }

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

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

        /**
         * @param profile The encoding profile to be used when encoding audio with AAC.
         * 
         * @return builder
         * 
         */
        public Builder profile(@Nullable Output> profile) {
            $.profile = profile;
            return this;
        }

        /**
         * @param profile The encoding profile to be used when encoding audio with AAC.
         * 
         * @return builder
         * 
         */
        public Builder profile(Either profile) {
            return profile(Output.of(profile));
        }

        /**
         * @param profile The encoding profile to be used when encoding audio with AAC.
         * 
         * @return builder
         * 
         */
        public Builder profile(String profile) {
            return profile(Either.ofLeft(profile));
        }

        /**
         * @param profile The encoding profile to be used when encoding audio with AAC.
         * 
         * @return builder
         * 
         */
        public Builder profile(AacAudioProfile profile) {
            return profile(Either.ofRight(profile));
        }

        /**
         * @param samplingRate The sampling rate to use for encoding in hertz.
         * 
         * @return builder
         * 
         */
        public Builder samplingRate(@Nullable Output samplingRate) {
            $.samplingRate = samplingRate;
            return this;
        }

        /**
         * @param samplingRate The sampling rate to use for encoding in hertz.
         * 
         * @return builder
         * 
         */
        public Builder samplingRate(Integer samplingRate) {
            return samplingRate(Output.of(samplingRate));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy