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

com.pulumi.linode.inputs.GetUsersUserDomainGrantArgs 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 GetUsersUserDomainGrantArgs extends com.pulumi.resources.ResourceArgs {

    public static final GetUsersUserDomainGrantArgs Empty = new GetUsersUserDomainGrantArgs();

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

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

    /**
     * The current label of the entity this grant applies to, for display purposes.
     * 
     */
    @Import(name="label", required=true)
    private Output label;

    /**
     * @return The current label of the entity this grant applies to, for display purposes.
     * 
     */
    public Output label() {
        return this.label;
    }

    /**
     * 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 GetUsersUserDomainGrantArgs() {}

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

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

    public static final class Builder {
        private GetUsersUserDomainGrantArgs $;

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

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

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

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

        /**
         * @param label The current label of the entity this grant applies to, for display purposes.
         * 
         * @return builder
         * 
         */
        public Builder label(Output label) {
            $.label = label;
            return this;
        }

        /**
         * @param label The current label of the entity this grant applies to, for display purposes.
         * 
         * @return builder
         * 
         */
        public Builder label(String label) {
            return label(Output.of(label));
        }

        /**
         * @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 GetUsersUserDomainGrantArgs build() {
            if ($.id == null) {
                throw new MissingRequiredPropertyException("GetUsersUserDomainGrantArgs", "id");
            }
            if ($.label == null) {
                throw new MissingRequiredPropertyException("GetUsersUserDomainGrantArgs", "label");
            }
            if ($.permissions == null) {
                throw new MissingRequiredPropertyException("GetUsersUserDomainGrantArgs", "permissions");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy