CommunicationIdentityAccessTokenRequest.java

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

package com.azure.communication.identity.implementation.models;

import com.azure.communication.identity.models.CommunicationTokenScope;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** The CommunicationIdentityAccessTokenRequest model. */
@Fluent
public final class CommunicationIdentityAccessTokenRequest {
    /*
     * List of scopes attached to the token.
     */
    @JsonProperty(value = "scopes", required = true)
    private List<CommunicationTokenScope> scopes;

    /**
     * Get the scopes property: List of scopes attached to the token.
     *
     * @return the scopes value.
     */
    public List<CommunicationTokenScope> getScopes() {
        return this.scopes;
    }

    /**
     * Set the scopes property: List of scopes attached to the token.
     *
     * @param scopes the scopes value to set.
     * @return the CommunicationIdentityAccessTokenRequest object itself.
     */
    public CommunicationIdentityAccessTokenRequest setScopes(List<CommunicationTokenScope> scopes) {
        this.scopes = scopes;
        return this;
    }
}