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

com.pulumi.azure.cosmosdb.inputs.MongoRoleDefinitionPrivilegeArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.cosmosdb.inputs;

import com.pulumi.azure.cosmosdb.inputs.MongoRoleDefinitionPrivilegeResourceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;


public final class MongoRoleDefinitionPrivilegeArgs extends com.pulumi.resources.ResourceArgs {

    public static final MongoRoleDefinitionPrivilegeArgs Empty = new MongoRoleDefinitionPrivilegeArgs();

    /**
     * A list of actions that are allowed.
     * 
     */
    @Import(name="actions", required=true)
    private Output> actions;

    /**
     * @return A list of actions that are allowed.
     * 
     */
    public Output> actions() {
        return this.actions;
    }

    /**
     * A `resource` block as defined below.
     * 
     */
    @Import(name="resource", required=true)
    private Output resource;

    /**
     * @return A `resource` block as defined below.
     * 
     */
    public Output resource() {
        return this.resource;
    }

    private MongoRoleDefinitionPrivilegeArgs() {}

    private MongoRoleDefinitionPrivilegeArgs(MongoRoleDefinitionPrivilegeArgs $) {
        this.actions = $.actions;
        this.resource = $.resource;
    }

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

    public static final class Builder {
        private MongoRoleDefinitionPrivilegeArgs $;

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

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

        /**
         * @param actions A list of actions that are allowed.
         * 
         * @return builder
         * 
         */
        public Builder actions(Output> actions) {
            $.actions = actions;
            return this;
        }

        /**
         * @param actions A list of actions that are allowed.
         * 
         * @return builder
         * 
         */
        public Builder actions(List actions) {
            return actions(Output.of(actions));
        }

        /**
         * @param actions A list of actions that are allowed.
         * 
         * @return builder
         * 
         */
        public Builder actions(String... actions) {
            return actions(List.of(actions));
        }

        /**
         * @param resource A `resource` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder resource(Output resource) {
            $.resource = resource;
            return this;
        }

        /**
         * @param resource A `resource` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder resource(MongoRoleDefinitionPrivilegeResourceArgs resource) {
            return resource(Output.of(resource));
        }

        public MongoRoleDefinitionPrivilegeArgs build() {
            if ($.actions == null) {
                throw new MissingRequiredPropertyException("MongoRoleDefinitionPrivilegeArgs", "actions");
            }
            if ($.resource == null) {
                throw new MissingRequiredPropertyException("MongoRoleDefinitionPrivilegeArgs", "resource");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy