WorkspaceIdentity.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;

/** Identity properties of the workspace resource. */
@Fluent
public final class WorkspaceIdentity {
    /*
     * The identity type. Currently the only supported type is
     * 'SystemAssigned'.
     */
    @JsonProperty(value = "type", required = true)
    private String type = "SystemAssigned";

    /*
     * The principal id of the identity.
     */
    @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY)
    private String principalId;

    /*
     * The client tenant id of the identity.
     */
    @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY)
    private String tenantId;

    /** Creates an instance of WorkspaceIdentity class. */
    public WorkspaceIdentity() {
        type = "SystemAssigned";
    }

    /**
     * Get the type property: The identity type. Currently the only supported type is 'SystemAssigned'.
     *
     * @return the type value.
     */
    public String getType() {
        return this.type;
    }

    /**
     * Set the type property: The identity type. Currently the only supported type is 'SystemAssigned'.
     *
     * @param type the type value to set.
     * @return the WorkspaceIdentity object itself.
     */
    public WorkspaceIdentity setType(String type) {
        this.type = type;
        return this;
    }

    /**
     * Get the principalId property: The principal id of the identity.
     *
     * @return the principalId value.
     */
    public String getPrincipalId() {
        return this.principalId;
    }

    /**
     * Get the tenantId property: The client tenant id of the identity.
     *
     * @return the tenantId value.
     */
    public String getTenantId() {
        return this.tenantId;
    }
}