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

com.pulumi.mongodbatlas.outputs.GetCustomDbRoleAction Maven / Gradle / Ivy

// *** 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.mongodbatlas.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.mongodbatlas.outputs.GetCustomDbRoleActionResource;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetCustomDbRoleAction {
    /**
     * @return (Required) Name of the privilege action. For a complete list of actions available in the Atlas API, see Custom Role Actions.
     * 
     */
    private String action;
    /**
     * @return (Required) Contains information on where the action is granted. Each object in the array either indicates a database and collection on which the action is granted, or indicates that the action is granted on the cluster resource.
     * 
     */
    private List resources;

    private GetCustomDbRoleAction() {}
    /**
     * @return (Required) Name of the privilege action. For a complete list of actions available in the Atlas API, see Custom Role Actions.
     * 
     */
    public String action() {
        return this.action;
    }
    /**
     * @return (Required) Contains information on where the action is granted. Each object in the array either indicates a database and collection on which the action is granted, or indicates that the action is granted on the cluster resource.
     * 
     */
    public List resources() {
        return this.resources;
    }

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

    public static Builder builder(GetCustomDbRoleAction defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String action;
        private List resources;
        public Builder() {}
        public Builder(GetCustomDbRoleAction defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.action = defaults.action;
    	      this.resources = defaults.resources;
        }

        @CustomType.Setter
        public Builder action(String action) {
            if (action == null) {
              throw new MissingRequiredPropertyException("GetCustomDbRoleAction", "action");
            }
            this.action = action;
            return this;
        }
        @CustomType.Setter
        public Builder resources(List resources) {
            if (resources == null) {
              throw new MissingRequiredPropertyException("GetCustomDbRoleAction", "resources");
            }
            this.resources = resources;
            return this;
        }
        public Builder resources(GetCustomDbRoleActionResource... resources) {
            return resources(List.of(resources));
        }
        public GetCustomDbRoleAction build() {
            final var _resultValue = new GetCustomDbRoleAction();
            _resultValue.action = action;
            _resultValue.resources = resources;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy