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

package com.azure.resourcemanager.machinelearningservices.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The properties for update Quota response. */
@Fluent
public final class UpdateWorkspaceQuotas {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateWorkspaceQuotas.class);

    /*
     * Specifies the resource ID.
     */
    @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
    private String id;

    /*
     * Specifies the resource type.
     */
    @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
    private String type;

    /*
     * The maximum permitted quota of the resource.
     */
    @JsonProperty(value = "limit")
    private Long limit;

    /*
     * An enum describing the unit of quota measurement.
     */
    @JsonProperty(value = "unit", access = JsonProperty.Access.WRITE_ONLY)
    private QuotaUnit unit;

    /*
     * Status of update workspace quota.
     */
    @JsonProperty(value = "status")
    private Status status;

    /**
     * Get the id property: Specifies the resource ID.
     *
     * @return the id value.
     */
    public String id() {
        return this.id;
    }

    /**
     * Get the type property: Specifies the resource type.
     *
     * @return the type value.
     */
    public String type() {
        return this.type;
    }

    /**
     * Get the limit property: The maximum permitted quota of the resource.
     *
     * @return the limit value.
     */
    public Long limit() {
        return this.limit;
    }

    /**
     * Set the limit property: The maximum permitted quota of the resource.
     *
     * @param limit the limit value to set.
     * @return the UpdateWorkspaceQuotas object itself.
     */
    public UpdateWorkspaceQuotas withLimit(Long limit) {
        this.limit = limit;
        return this;
    }

    /**
     * Get the unit property: An enum describing the unit of quota measurement.
     *
     * @return the unit value.
     */
    public QuotaUnit unit() {
        return this.unit;
    }

    /**
     * Get the status property: Status of update workspace quota.
     *
     * @return the status value.
     */
    public Status status() {
        return this.status;
    }

    /**
     * Set the status property: Status of update workspace quota.
     *
     * @param status the status value to set.
     * @return the UpdateWorkspaceQuotas object itself.
     */
    public UpdateWorkspaceQuotas withStatus(Status status) {
        this.status = status;
        return this;
    }

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