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

package com.azure.resourcemanager.powerbidedicated.models;

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

/** Details of capacity name request body. */
@Fluent
public final class CheckCapacityNameAvailabilityParameters {
    /*
     * Name for checking availability.
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * The resource type of PowerBI dedicated.
     */
    @JsonProperty(value = "type")
    private String type;

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

    /**
     * Get the name property: Name for checking availability.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Name for checking availability.
     *
     * @param name the name value to set.
     * @return the CheckCapacityNameAvailabilityParameters object itself.
     */
    public CheckCapacityNameAvailabilityParameters withName(String name) {
        this.name = name;
        return this;
    }

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

    /**
     * Set the type property: The resource type of PowerBI dedicated.
     *
     * @param type the type value to set.
     * @return the CheckCapacityNameAvailabilityParameters object itself.
     */
    public CheckCapacityNameAvailabilityParameters withType(String type) {
        this.type = type;
        return this;
    }

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