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

com.pulumi.vsphere.inputs.RoleState Maven / Gradle / Ivy

There is a newer version: 4.13.0-alpha.1731738919
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.vsphere.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RoleState Empty = new RoleState();

    /**
     * The display label of the role.
     * 
     */
    @Import(name="label")
    private @Nullable Output label;

    /**
     * @return The display label of the role.
     * 
     */
    public Optional> label() {
        return Optional.ofNullable(this.label);
    }

    /**
     * The name of the role.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the role.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The privileges to be associated with this role.
     * 
     */
    @Import(name="rolePrivileges")
    private @Nullable Output> rolePrivileges;

    /**
     * @return The privileges to be associated with this role.
     * 
     */
    public Optional>> rolePrivileges() {
        return Optional.ofNullable(this.rolePrivileges);
    }

    private RoleState() {}

    private RoleState(RoleState $) {
        this.label = $.label;
        this.name = $.name;
        this.rolePrivileges = $.rolePrivileges;
    }

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

    public static final class Builder {
        private RoleState $;

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

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

        /**
         * @param label The display label of the role.
         * 
         * @return builder
         * 
         */
        public Builder label(@Nullable Output label) {
            $.label = label;
            return this;
        }

        /**
         * @param label The display label of the role.
         * 
         * @return builder
         * 
         */
        public Builder label(String label) {
            return label(Output.of(label));
        }

        /**
         * @param name The name of the role.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the role.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param rolePrivileges The privileges to be associated with this role.
         * 
         * @return builder
         * 
         */
        public Builder rolePrivileges(@Nullable Output> rolePrivileges) {
            $.rolePrivileges = rolePrivileges;
            return this;
        }

        /**
         * @param rolePrivileges The privileges to be associated with this role.
         * 
         * @return builder
         * 
         */
        public Builder rolePrivileges(List rolePrivileges) {
            return rolePrivileges(Output.of(rolePrivileges));
        }

        /**
         * @param rolePrivileges The privileges to be associated with this role.
         * 
         * @return builder
         * 
         */
        public Builder rolePrivileges(String... rolePrivileges) {
            return rolePrivileges(List.of(rolePrivileges));
        }

        public RoleState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy