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

com.pulumi.rabbitmq.inputs.PermissionsState Maven / Gradle / Ivy

There is a newer version: 3.4.0-alpha.1731737837
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.rabbitmq.inputs;

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


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

    public static final PermissionsState Empty = new PermissionsState();

    /**
     * The settings of the permissions. The structure is
     * described below.
     * 
     */
    @Import(name="permissions")
    private @Nullable Output permissions;

    /**
     * @return The settings of the permissions. The structure is
     * described below.
     * 
     */
    public Optional> permissions() {
        return Optional.ofNullable(this.permissions);
    }

    /**
     * The user to apply the permissions to.
     * 
     */
    @Import(name="user")
    private @Nullable Output user;

    /**
     * @return The user to apply the permissions to.
     * 
     */
    public Optional> user() {
        return Optional.ofNullable(this.user);
    }

    /**
     * The vhost to create the resource in.
     * 
     */
    @Import(name="vhost")
    private @Nullable Output vhost;

    /**
     * @return The vhost to create the resource in.
     * 
     */
    public Optional> vhost() {
        return Optional.ofNullable(this.vhost);
    }

    private PermissionsState() {}

    private PermissionsState(PermissionsState $) {
        this.permissions = $.permissions;
        this.user = $.user;
        this.vhost = $.vhost;
    }

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

    public static final class Builder {
        private PermissionsState $;

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

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

        /**
         * @param permissions The settings of the permissions. The structure is
         * described below.
         * 
         * @return builder
         * 
         */
        public Builder permissions(@Nullable Output permissions) {
            $.permissions = permissions;
            return this;
        }

        /**
         * @param permissions The settings of the permissions. The structure is
         * described below.
         * 
         * @return builder
         * 
         */
        public Builder permissions(PermissionsPermissionsArgs permissions) {
            return permissions(Output.of(permissions));
        }

        /**
         * @param user The user to apply the permissions to.
         * 
         * @return builder
         * 
         */
        public Builder user(@Nullable Output user) {
            $.user = user;
            return this;
        }

        /**
         * @param user The user to apply the permissions to.
         * 
         * @return builder
         * 
         */
        public Builder user(String user) {
            return user(Output.of(user));
        }

        /**
         * @param vhost The vhost to create the resource in.
         * 
         * @return builder
         * 
         */
        public Builder vhost(@Nullable Output vhost) {
            $.vhost = vhost;
            return this;
        }

        /**
         * @param vhost The vhost to create the resource in.
         * 
         * @return builder
         * 
         */
        public Builder vhost(String vhost) {
            return vhost(Output.of(vhost));
        }

        public PermissionsState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy