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

com.pulumi.azurenative.documentdb.inputs.PermissionArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.documentdb.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The set of data plane operations permitted through this Role Definition.
 * 
 */
public final class PermissionArgs extends com.pulumi.resources.ResourceArgs {

    public static final PermissionArgs Empty = new PermissionArgs();

    /**
     * An array of data actions that are allowed.
     * 
     */
    @Import(name="dataActions")
    private @Nullable Output> dataActions;

    /**
     * @return An array of data actions that are allowed.
     * 
     */
    public Optional>> dataActions() {
        return Optional.ofNullable(this.dataActions);
    }

    /**
     * An array of data actions that are denied.
     * 
     */
    @Import(name="notDataActions")
    private @Nullable Output> notDataActions;

    /**
     * @return An array of data actions that are denied.
     * 
     */
    public Optional>> notDataActions() {
        return Optional.ofNullable(this.notDataActions);
    }

    private PermissionArgs() {}

    private PermissionArgs(PermissionArgs $) {
        this.dataActions = $.dataActions;
        this.notDataActions = $.notDataActions;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(PermissionArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private PermissionArgs $;

        public Builder() {
            $ = new PermissionArgs();
        }

        public Builder(PermissionArgs defaults) {
            $ = new PermissionArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param dataActions An array of data actions that are allowed.
         * 
         * @return builder
         * 
         */
        public Builder dataActions(@Nullable Output> dataActions) {
            $.dataActions = dataActions;
            return this;
        }

        /**
         * @param dataActions An array of data actions that are allowed.
         * 
         * @return builder
         * 
         */
        public Builder dataActions(List dataActions) {
            return dataActions(Output.of(dataActions));
        }

        /**
         * @param dataActions An array of data actions that are allowed.
         * 
         * @return builder
         * 
         */
        public Builder dataActions(String... dataActions) {
            return dataActions(List.of(dataActions));
        }

        /**
         * @param notDataActions An array of data actions that are denied.
         * 
         * @return builder
         * 
         */
        public Builder notDataActions(@Nullable Output> notDataActions) {
            $.notDataActions = notDataActions;
            return this;
        }

        /**
         * @param notDataActions An array of data actions that are denied.
         * 
         * @return builder
         * 
         */
        public Builder notDataActions(List notDataActions) {
            return notDataActions(Output.of(notDataActions));
        }

        /**
         * @param notDataActions An array of data actions that are denied.
         * 
         * @return builder
         * 
         */
        public Builder notDataActions(String... notDataActions) {
            return notDataActions(List.of(notDataActions));
        }

        public PermissionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy