CheckPrincipalAccessRequest.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.accesscontrol.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Check access request details. */
@Fluent
public final class CheckPrincipalAccessRequest {
    /*
     * Subject details
     */
    @JsonProperty(value = "subject", required = true)
    private SubjectInfo subject;

    /*
     * List of actions.
     */
    @JsonProperty(value = "actions", required = true)
    private List<RequiredAction> actions;

    /*
     * Scope at which the check access is done.
     */
    @JsonProperty(value = "scope", required = true)
    private String scope;

    /**
     * Get the subject property: Subject details.
     *
     * @return the subject value.
     */
    public SubjectInfo getSubject() {
        return this.subject;
    }

    /**
     * Set the subject property: Subject details.
     *
     * @param subject the subject value to set.
     * @return the CheckPrincipalAccessRequest object itself.
     */
    public CheckPrincipalAccessRequest setSubject(SubjectInfo subject) {
        this.subject = subject;
        return this;
    }

    /**
     * Get the actions property: List of actions.
     *
     * @return the actions value.
     */
    public List<RequiredAction> getActions() {
        return this.actions;
    }

    /**
     * Set the actions property: List of actions.
     *
     * @param actions the actions value to set.
     * @return the CheckPrincipalAccessRequest object itself.
     */
    public CheckPrincipalAccessRequest setActions(List<RequiredAction> actions) {
        this.actions = actions;
        return this;
    }

    /**
     * Get the scope property: Scope at which the check access is done.
     *
     * @return the scope value.
     */
    public String getScope() {
        return this.scope;
    }

    /**
     * Set the scope property: Scope at which the check access is done.
     *
     * @param scope the scope value to set.
     * @return the CheckPrincipalAccessRequest object itself.
     */
    public CheckPrincipalAccessRequest setScope(String scope) {
        this.scope = scope;
        return this;
    }
}