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

package com.azure.resourcemanager.webpubsub.models;

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

/** Managed identity settings for upstream. */
@Fluent
public final class ManagedIdentitySettings {
    /*
     * The Resource indicating the App ID URI of the target resource.
     * It also appears in the aud (audience) claim of the issued token.
     */
    @JsonProperty(value = "resource")
    private String resource;

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

    /**
     * Get the resource property: The Resource indicating the App ID URI of the target resource. It also appears in the
     * aud (audience) claim of the issued token.
     *
     * @return the resource value.
     */
    public String resource() {
        return this.resource;
    }

    /**
     * Set the resource property: The Resource indicating the App ID URI of the target resource. It also appears in the
     * aud (audience) claim of the issued token.
     *
     * @param resource the resource value to set.
     * @return the ManagedIdentitySettings object itself.
     */
    public ManagedIdentitySettings withResource(String resource) {
        this.resource = resource;
        return this;
    }

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