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

package com.azure.resourcemanager.cognitiveservices.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Sku change info of account. */
@Fluent
public final class SkuChangeInfo {
    /*
     * Gets the count of downgrades.
     */
    @JsonProperty(value = "countOfDowngrades")
    private Float countOfDowngrades;

    /*
     * Gets the count of upgrades after downgrades.
     */
    @JsonProperty(value = "countOfUpgradesAfterDowngrades")
    private Float countOfUpgradesAfterDowngrades;

    /*
     * Gets the last change date.
     */
    @JsonProperty(value = "lastChangeDate")
    private String lastChangeDate;

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

    /**
     * Get the countOfDowngrades property: Gets the count of downgrades.
     *
     * @return the countOfDowngrades value.
     */
    public Float countOfDowngrades() {
        return this.countOfDowngrades;
    }

    /**
     * Set the countOfDowngrades property: Gets the count of downgrades.
     *
     * @param countOfDowngrades the countOfDowngrades value to set.
     * @return the SkuChangeInfo object itself.
     */
    public SkuChangeInfo withCountOfDowngrades(Float countOfDowngrades) {
        this.countOfDowngrades = countOfDowngrades;
        return this;
    }

    /**
     * Get the countOfUpgradesAfterDowngrades property: Gets the count of upgrades after downgrades.
     *
     * @return the countOfUpgradesAfterDowngrades value.
     */
    public Float countOfUpgradesAfterDowngrades() {
        return this.countOfUpgradesAfterDowngrades;
    }

    /**
     * Set the countOfUpgradesAfterDowngrades property: Gets the count of upgrades after downgrades.
     *
     * @param countOfUpgradesAfterDowngrades the countOfUpgradesAfterDowngrades value to set.
     * @return the SkuChangeInfo object itself.
     */
    public SkuChangeInfo withCountOfUpgradesAfterDowngrades(Float countOfUpgradesAfterDowngrades) {
        this.countOfUpgradesAfterDowngrades = countOfUpgradesAfterDowngrades;
        return this;
    }

    /**
     * Get the lastChangeDate property: Gets the last change date.
     *
     * @return the lastChangeDate value.
     */
    public String lastChangeDate() {
        return this.lastChangeDate;
    }

    /**
     * Set the lastChangeDate property: Gets the last change date.
     *
     * @param lastChangeDate the lastChangeDate value to set.
     * @return the SkuChangeInfo object itself.
     */
    public SkuChangeInfo withLastChangeDate(String lastChangeDate) {
        this.lastChangeDate = lastChangeDate;
        return this;
    }

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