All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.cosmos.models.Permission Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure CosmosDB SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt

There is a newer version: 2.46.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.cosmos.models;

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

/**
 * The set of data plane operations permitted through this Role Definition.
 */
@Fluent
public final class Permission {
    /*
     * An array of data actions that are allowed.
     */
    @JsonProperty(value = "dataActions")
    private List dataActions;

    /*
     * An array of data actions that are denied.
     */
    @JsonProperty(value = "notDataActions")
    private List notDataActions;

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

    /**
     * Get the dataActions property: An array of data actions that are allowed.
     * 
     * @return the dataActions value.
     */
    public List dataActions() {
        return this.dataActions;
    }

    /**
     * Set the dataActions property: An array of data actions that are allowed.
     * 
     * @param dataActions the dataActions value to set.
     * @return the Permission object itself.
     */
    public Permission withDataActions(List dataActions) {
        this.dataActions = dataActions;
        return this;
    }

    /**
     * Get the notDataActions property: An array of data actions that are denied.
     * 
     * @return the notDataActions value.
     */
    public List notDataActions() {
        return this.notDataActions;
    }

    /**
     * Set the notDataActions property: An array of data actions that are denied.
     * 
     * @param notDataActions the notDataActions value to set.
     * @return the Permission object itself.
     */
    public Permission withNotDataActions(List notDataActions) {
        this.notDataActions = notDataActions;
        return this;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy