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

package com.azure.resourcemanager.videoanalyzer.models;

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

/** A custom preset for encoding video with the H.264 (AVC) codec. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type")
@JsonTypeName("#Microsoft.VideoAnalyzer.VideoEncoderH264")
@Fluent
public final class VideoEncoderH264 extends VideoEncoderBase {
    /** {@inheritDoc} */
    @Override
    public VideoEncoderH264 withBitrateKbps(String bitrateKbps) {
        super.withBitrateKbps(bitrateKbps);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public VideoEncoderH264 withFrameRate(String frameRate) {
        super.withFrameRate(frameRate);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public VideoEncoderH264 withScale(VideoScale scale) {
        super.withScale(scale);
        return this;
    }

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