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

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

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

/** Properties of a project. These properties can be updated after the resource has been created. */
@Fluent
public class ProjectUpdateProperties {
    /*
     * Resource Id of an associated DevCenter
     */
    @JsonProperty(value = "devCenterId")
    private String devCenterId;

    /*
     * Description of the project.
     */
    @JsonProperty(value = "description")
    private String description;

    /*
     * When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.
     * This will have no effect on existing Dev Boxes when reduced.
     */
    @JsonProperty(value = "maxDevBoxesPerUser")
    private Integer maxDevBoxesPerUser;

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

    /**
     * Get the devCenterId property: Resource Id of an associated DevCenter.
     *
     * @return the devCenterId value.
     */
    public String devCenterId() {
        return this.devCenterId;
    }

    /**
     * Set the devCenterId property: Resource Id of an associated DevCenter.
     *
     * @param devCenterId the devCenterId value to set.
     * @return the ProjectUpdateProperties object itself.
     */
    public ProjectUpdateProperties withDevCenterId(String devCenterId) {
        this.devCenterId = devCenterId;
        return this;
    }

    /**
     * Get the description property: Description of the project.
     *
     * @return the description value.
     */
    public String description() {
        return this.description;
    }

    /**
     * Set the description property: Description of the project.
     *
     * @param description the description value to set.
     * @return the ProjectUpdateProperties object itself.
     */
    public ProjectUpdateProperties withDescription(String description) {
        this.description = description;
        return this;
    }

    /**
     * Get the maxDevBoxesPerUser property: When specified, limits the maximum number of Dev Boxes a single user can
     * create across all pools in the project. This will have no effect on existing Dev Boxes when reduced.
     *
     * @return the maxDevBoxesPerUser value.
     */
    public Integer maxDevBoxesPerUser() {
        return this.maxDevBoxesPerUser;
    }

    /**
     * Set the maxDevBoxesPerUser property: When specified, limits the maximum number of Dev Boxes a single user can
     * create across all pools in the project. This will have no effect on existing Dev Boxes when reduced.
     *
     * @param maxDevBoxesPerUser the maxDevBoxesPerUser value to set.
     * @return the ProjectUpdateProperties object itself.
     */
    public ProjectUpdateProperties withMaxDevBoxesPerUser(Integer maxDevBoxesPerUser) {
        this.maxDevBoxesPerUser = maxDevBoxesPerUser;
        return this;
    }

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