ArtifactRenameRequest.java

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

package com.azure.analytics.synapse.artifacts.models;

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

/** Request body structure for rename artifact. */
@Fluent
public final class ArtifactRenameRequest {
    /*
     * New name of the artifact.
     */
    @JsonProperty(value = "newName")
    private String newName;

    /**
     * Get the newName property: New name of the artifact.
     *
     * @return the newName value.
     */
    public String getNewName() {
        return this.newName;
    }

    /**
     * Set the newName property: New name of the artifact.
     *
     * @param newName the newName value to set.
     * @return the ArtifactRenameRequest object itself.
     */
    public ArtifactRenameRequest setNewName(String newName) {
        this.newName = newName;
        return this;
    }
}