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

com.pulumi.azurenative.media.inputs.DDAudioArgs 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.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 Dolby Digital Audio Codec (AC3) audio encoding settings. The current implementation for Dolby Digital Audio support are: Audio channel numbers at 1((mono), 2(stereo), 6(5.1side); Audio sampling frequency rates at: 32K/44.1K/48K Hz; Audio bitrate values as AC3 specification supports: 32000, 40000, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 160000, 192000, 224000, 256000, 320000, 384000, 448000, 512000, 576000, 640000 bps.
 * 
 */
public final class DDAudioArgs extends com.pulumi.resources.ResourceArgs {

    public static final DDAudioArgs Empty = new DDAudioArgs();

    /**
     * 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.DDAudio'.
     * 
     */
    @Import(name="odataType", required=true)
    private Output odataType;

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

    /**
     * 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 DDAudioArgs() {}

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

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

    public static final class Builder {
        private DDAudioArgs $;

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

        public Builder(DDAudioArgs defaults) {
            $ = new DDAudioArgs(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.DDAudio'.
         * 
         * @return builder
         * 
         */
        public Builder odataType(Output odataType) {
            $.odataType = odataType;
            return this;
        }

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

        /**
         * @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 DDAudioArgs build() {
            $.odataType = Codegen.stringProp("odataType").output().arg($.odataType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy