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

com.pulumi.signalfx.inputs.DashboardGroupPermissionArgs 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.signalfx.inputs;

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;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DashboardGroupPermissionArgs Empty = new DashboardGroupPermissionArgs();

    /**
     * Action the user, team, or organization can take with the dashboard group. List of values (value can be "READ" or "WRITE").
     * 
     */
    @Import(name="actions")
    private @Nullable Output> actions;

    /**
     * @return Action the user, team, or organization can take with the dashboard group. List of values (value can be "READ" or "WRITE").
     * 
     */
    public Optional>> actions() {
        return Optional.ofNullable(this.actions);
    }

    /**
     * ID of the user, team, or organization for which you're granting permissions.
     * 
     */
    @Import(name="principalId", required=true)
    private Output principalId;

    /**
     * @return ID of the user, team, or organization for which you're granting permissions.
     * 
     */
    public Output principalId() {
        return this.principalId;
    }

    /**
     * Clarify whether this permission configuration is for a user, a team, or an organization. Value can be one of "USER", "TEAM", or "ORG".
     * 
     */
    @Import(name="principalType", required=true)
    private Output principalType;

    /**
     * @return Clarify whether this permission configuration is for a user, a team, or an organization. Value can be one of "USER", "TEAM", or "ORG".
     * 
     */
    public Output principalType() {
        return this.principalType;
    }

    private DashboardGroupPermissionArgs() {}

    private DashboardGroupPermissionArgs(DashboardGroupPermissionArgs $) {
        this.actions = $.actions;
        this.principalId = $.principalId;
        this.principalType = $.principalType;
    }

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

    public static final class Builder {
        private DashboardGroupPermissionArgs $;

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

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

        /**
         * @param actions Action the user, team, or organization can take with the dashboard group. List of values (value can be "READ" or "WRITE").
         * 
         * @return builder
         * 
         */
        public Builder actions(@Nullable Output> actions) {
            $.actions = actions;
            return this;
        }

        /**
         * @param actions Action the user, team, or organization can take with the dashboard group. List of values (value can be "READ" or "WRITE").
         * 
         * @return builder
         * 
         */
        public Builder actions(List actions) {
            return actions(Output.of(actions));
        }

        /**
         * @param actions Action the user, team, or organization can take with the dashboard group. List of values (value can be "READ" or "WRITE").
         * 
         * @return builder
         * 
         */
        public Builder actions(String... actions) {
            return actions(List.of(actions));
        }

        /**
         * @param principalId ID of the user, team, or organization for which you're granting permissions.
         * 
         * @return builder
         * 
         */
        public Builder principalId(Output principalId) {
            $.principalId = principalId;
            return this;
        }

        /**
         * @param principalId ID of the user, team, or organization for which you're granting permissions.
         * 
         * @return builder
         * 
         */
        public Builder principalId(String principalId) {
            return principalId(Output.of(principalId));
        }

        /**
         * @param principalType Clarify whether this permission configuration is for a user, a team, or an organization. Value can be one of "USER", "TEAM", or "ORG".
         * 
         * @return builder
         * 
         */
        public Builder principalType(Output principalType) {
            $.principalType = principalType;
            return this;
        }

        /**
         * @param principalType Clarify whether this permission configuration is for a user, a team, or an organization. Value can be one of "USER", "TEAM", or "ORG".
         * 
         * @return builder
         * 
         */
        public Builder principalType(String principalType) {
            return principalType(Output.of(principalType));
        }

        public DashboardGroupPermissionArgs build() {
            if ($.principalId == null) {
                throw new MissingRequiredPropertyException("DashboardGroupPermissionArgs", "principalId");
            }
            if ($.principalType == null) {
                throw new MissingRequiredPropertyException("DashboardGroupPermissionArgs", "principalType");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy