WorkspaceUpdateParameters.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;
import java.util.Map;

/** Parameters for updating a workspace resource. */
@Fluent
public final class WorkspaceUpdateParameters {
    /*
     * The resource tags.
     */
    @JsonProperty(value = "tags")
    private Map<String, String> tags;

    /*
     * Managed service identity of the workspace.
     */
    @JsonProperty(value = "identity")
    private WorkspaceIdentity identity;

    /**
     * Get the tags property: The resource tags.
     *
     * @return the tags value.
     */
    public Map<String, String> getTags() {
        return this.tags;
    }

    /**
     * Set the tags property: The resource tags.
     *
     * @param tags the tags value to set.
     * @return the WorkspaceUpdateParameters object itself.
     */
    public WorkspaceUpdateParameters setTags(Map<String, String> tags) {
        this.tags = tags;
        return this;
    }

    /**
     * Get the identity property: Managed service identity of the workspace.
     *
     * @return the identity value.
     */
    public WorkspaceIdentity getIdentity() {
        return this.identity;
    }

    /**
     * Set the identity property: Managed service identity of the workspace.
     *
     * @param identity the identity value to set.
     * @return the WorkspaceUpdateParameters object itself.
     */
    public WorkspaceUpdateParameters setIdentity(WorkspaceIdentity identity) {
        this.identity = identity;
        return this;
    }
}