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

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


/**
 * Defines the common properties for all audio codecs.
 * 
 */
public final class AudioArgs extends com.pulumi.resources.ResourceArgs {

    public static final AudioArgs Empty = new AudioArgs();

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

    /**
     * @return The discriminator for derived types.
     * Expected value is '#Microsoft.Media.Audio'.
     * 
     */
    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 AudioArgs() {}

    private AudioArgs(AudioArgs $) {
        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(AudioArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private AudioArgs $;

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

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

        /**
         * @param odataType The discriminator for derived types.
         * Expected value is '#Microsoft.Media.Audio'.
         * 
         * @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 AudioArgs build() {
            $.odataType = Codegen.stringProp("odataType").output().arg($.odataType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy