// *** 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.azure.media.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class TransformOutputCustomPresetCodecDdAudio {
    /**
     * @return The bitrate of the audio in bits per second. Default to `192000`.
     * 
     */
    private @Nullable Integer bitrate;
    /**
     * @return The number of audio channels. Default to `2`.
     * 
     */
    private @Nullable Integer channels;
    /**
     * @return Specifies the label for the codec. The label can be used to control muxing behavior.
     * 
     */
    private @Nullable String label;
    /**
     * @return The sampling rate to use for encoding in Hertz. Default to `48000`.
     * 
     */
    private @Nullable Integer samplingRate;

    private TransformOutputCustomPresetCodecDdAudio() {}
    /**
     * @return The bitrate of the audio in bits per second. Default to `192000`.
     * 
     */
    public Optional<Integer> bitrate() {
        return Optional.ofNullable(this.bitrate);
    }
    /**
     * @return The number of audio channels. Default to `2`.
     * 
     */
    public Optional<Integer> channels() {
        return Optional.ofNullable(this.channels);
    }
    /**
     * @return Specifies the label for the codec. The label can be used to control muxing behavior.
     * 
     */
    public Optional<String> label() {
        return Optional.ofNullable(this.label);
    }
    /**
     * @return The sampling rate to use for encoding in Hertz. Default to `48000`.
     * 
     */
    public Optional<Integer> samplingRate() {
        return Optional.ofNullable(this.samplingRate);
    }

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

    public static Builder builder(TransformOutputCustomPresetCodecDdAudio defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer bitrate;
        private @Nullable Integer channels;
        private @Nullable String label;
        private @Nullable Integer samplingRate;
        public Builder() {}
        public Builder(TransformOutputCustomPresetCodecDdAudio defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.bitrate = defaults.bitrate;
    	      this.channels = defaults.channels;
    	      this.label = defaults.label;
    	      this.samplingRate = defaults.samplingRate;
        }

        @CustomType.Setter
        public Builder bitrate(@Nullable Integer bitrate) {
            this.bitrate = bitrate;
            return this;
        }
        @CustomType.Setter
        public Builder channels(@Nullable Integer channels) {
            this.channels = channels;
            return this;
        }
        @CustomType.Setter
        public Builder label(@Nullable String label) {
            this.label = label;
            return this;
        }
        @CustomType.Setter
        public Builder samplingRate(@Nullable Integer samplingRate) {
            this.samplingRate = samplingRate;
            return this;
        }
        public TransformOutputCustomPresetCodecDdAudio build() {
            final var o = new TransformOutputCustomPresetCodecDdAudio();
            o.bitrate = bitrate;
            o.channels = channels;
            o.label = label;
            o.samplingRate = samplingRate;
            return o;
        }
    }
}
