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

com.pulumi.linode.inputs.UserStackscriptGrantArgs Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
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.linode.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;


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

    public static final UserStackscriptGrantArgs Empty = new UserStackscriptGrantArgs();

    /**
     * The ID of the entity this grant applies to.
     * 
     */
    @Import(name="id", required=true)
    private Output id;

    /**
     * @return The ID of the entity this grant applies to.
     * 
     */
    public Output id() {
        return this.id;
    }

    /**
     * The level of access this User has to this entity. If null, this User has no access.
     * 
     */
    @Import(name="permissions", required=true)
    private Output permissions;

    /**
     * @return The level of access this User has to this entity. If null, this User has no access.
     * 
     */
    public Output permissions() {
        return this.permissions;
    }

    private UserStackscriptGrantArgs() {}

    private UserStackscriptGrantArgs(UserStackscriptGrantArgs $) {
        this.id = $.id;
        this.permissions = $.permissions;
    }

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

    public static final class Builder {
        private UserStackscriptGrantArgs $;

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

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

        /**
         * @param id The ID of the entity this grant applies to.
         * 
         * @return builder
         * 
         */
        public Builder id(Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The ID of the entity this grant applies to.
         * 
         * @return builder
         * 
         */
        public Builder id(Integer id) {
            return id(Output.of(id));
        }

        /**
         * @param permissions The level of access this User has to this entity. If null, this User has no access.
         * 
         * @return builder
         * 
         */
        public Builder permissions(Output permissions) {
            $.permissions = permissions;
            return this;
        }

        /**
         * @param permissions The level of access this User has to this entity. If null, this User has no access.
         * 
         * @return builder
         * 
         */
        public Builder permissions(String permissions) {
            return permissions(Output.of(permissions));
        }

        public UserStackscriptGrantArgs build() {
            if ($.id == null) {
                throw new MissingRequiredPropertyException("UserStackscriptGrantArgs", "id");
            }
            if ($.permissions == null) {
                throw new MissingRequiredPropertyException("UserStackscriptGrantArgs", "permissions");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy