// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.mediaservices.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.time.Duration;

/** Describes the properties of an audio overlay. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type")
@JsonTypeName("#Microsoft.Media.AudioOverlay")
@Fluent
public final class AudioOverlay extends Overlay {
    /** Creates an instance of AudioOverlay class. */
    public AudioOverlay() {
    }

    /** {@inheritDoc} */
    @Override
    public AudioOverlay withInputLabel(String inputLabel) {
        super.withInputLabel(inputLabel);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AudioOverlay withStart(Duration start) {
        super.withStart(start);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AudioOverlay withEnd(Duration end) {
        super.withEnd(end);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AudioOverlay withFadeInDuration(Duration fadeInDuration) {
        super.withFadeInDuration(fadeInDuration);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AudioOverlay withFadeOutDuration(Duration fadeOutDuration) {
        super.withFadeOutDuration(fadeOutDuration);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AudioOverlay withAudioGainLevel(Double audioGainLevel) {
        super.withAudioGainLevel(audioGainLevel);
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
