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

package com.azure.resourcemanager.loadtesting.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.loadtesting.models.ResourceState;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Quota bucket resource properties. */
@Fluent
public final class QuotaResourceProperties {
    /*
     * Current quota limit of the quota bucket.
     */
    @JsonProperty(value = "limit")
    private Integer limit;

    /*
     * Current quota usage of the quota bucket.
     */
    @JsonProperty(value = "usage")
    private Integer usage;

    /*
     * Resource provisioning state.
     */
    @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private ResourceState provisioningState;

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

    /**
     * Get the limit property: Current quota limit of the quota bucket.
     *
     * @return the limit value.
     */
    public Integer limit() {
        return this.limit;
    }

    /**
     * Set the limit property: Current quota limit of the quota bucket.
     *
     * @param limit the limit value to set.
     * @return the QuotaResourceProperties object itself.
     */
    public QuotaResourceProperties withLimit(Integer limit) {
        this.limit = limit;
        return this;
    }

    /**
     * Get the usage property: Current quota usage of the quota bucket.
     *
     * @return the usage value.
     */
    public Integer usage() {
        return this.usage;
    }

    /**
     * Set the usage property: Current quota usage of the quota bucket.
     *
     * @param usage the usage value to set.
     * @return the QuotaResourceProperties object itself.
     */
    public QuotaResourceProperties withUsage(Integer usage) {
        this.usage = usage;
        return this;
    }

    /**
     * Get the provisioningState property: Resource provisioning state.
     *
     * @return the provisioningState value.
     */
    public ResourceState provisioningState() {
        return this.provisioningState;
    }

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