// 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.JsonProperty;

/** Describes the de-interlacing settings. */
@Fluent
public final class Deinterlace {
    /*
     * The field parity for de-interlacing, defaults to Auto.
     */
    @JsonProperty(value = "parity")
    private DeinterlaceParity parity;

    /*
     * The deinterlacing mode. Defaults to AutoPixelAdaptive.
     */
    @JsonProperty(value = "mode")
    private DeinterlaceMode mode;

    /** Creates an instance of Deinterlace class. */
    public Deinterlace() {
    }

    /**
     * Get the parity property: The field parity for de-interlacing, defaults to Auto.
     *
     * @return the parity value.
     */
    public DeinterlaceParity parity() {
        return this.parity;
    }

    /**
     * Set the parity property: The field parity for de-interlacing, defaults to Auto.
     *
     * @param parity the parity value to set.
     * @return the Deinterlace object itself.
     */
    public Deinterlace withParity(DeinterlaceParity parity) {
        this.parity = parity;
        return this;
    }

    /**
     * Get the mode property: The deinterlacing mode. Defaults to AutoPixelAdaptive.
     *
     * @return the mode value.
     */
    public DeinterlaceMode mode() {
        return this.mode;
    }

    /**
     * Set the mode property: The deinterlacing mode. Defaults to AutoPixelAdaptive.
     *
     * @param mode the mode value to set.
     * @return the Deinterlace object itself.
     */
    public Deinterlace withMode(DeinterlaceMode mode) {
        this.mode = mode;
        return this;
    }

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