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

package com.azure.resourcemanager.sql.models;

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

/** ARM resource. */
@Fluent
public class ResourceWithWritableName extends ProxyResource {
    /*
     * Resource name.
     */
    @JsonProperty(value = "name")
    private String name;

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

    /**
     * Get the name property: Resource name.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Resource name.
     *
     * @param name the name value to set.
     * @return the ResourceWithWritableName object itself.
     */
    public ResourceWithWritableName withName(String name) {
        this.name = name;
        return this;
    }

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