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

com.ovhcloud.pulumi.ovh.Iam.inputs.PermissionsGroupState Maven / Gradle / Ivy

There is a newer version: 1.1.0
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.ovhcloud.pulumi.ovh.Iam.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 PermissionsGroupState extends com.pulumi.resources.ResourceArgs {

    public static final PermissionsGroupState Empty = new PermissionsGroupState();

    /**
     * Set of actions allowed by the permissions group.
     * 
     */
    @Import(name="allows")
    private @Nullable Output> allows;

    /**
     * @return Set of actions allowed by the permissions group.
     * 
     */
    public Optional>> allows() {
        return Optional.ofNullable(this.allows);
    }

    /**
     * Creation date of this group.
     * 
     */
    @Import(name="createdAt")
    private @Nullable Output createdAt;

    /**
     * @return Creation date of this group.
     * 
     */
    public Optional> createdAt() {
        return Optional.ofNullable(this.createdAt);
    }

    /**
     * Set of actions that will be denied no matter what permissions group exists.
     * 
     */
    @Import(name="denies")
    private @Nullable Output> denies;

    /**
     * @return Set of actions that will be denied no matter what permissions group exists.
     * 
     */
    public Optional>> denies() {
        return Optional.ofNullable(this.denies);
    }

    /**
     * Group description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Group description.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Set of actions that will be subtracted from the `allow` list.
     * 
     */
    @Import(name="excepts")
    private @Nullable Output> excepts;

    /**
     * @return Set of actions that will be subtracted from the `allow` list.
     * 
     */
    public Optional>> excepts() {
        return Optional.ofNullable(this.excepts);
    }

    /**
     * Name of the permissions group.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the permissions group.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Owner of the permissions group.
     * 
     */
    @Import(name="owner")
    private @Nullable Output owner;

    /**
     * @return Owner of the permissions group.
     * 
     */
    public Optional> owner() {
        return Optional.ofNullable(this.owner);
    }

    /**
     * Date of the last update of this group.
     * 
     */
    @Import(name="updatedAt")
    private @Nullable Output updatedAt;

    /**
     * @return Date of the last update of this group.
     * 
     */
    public Optional> updatedAt() {
        return Optional.ofNullable(this.updatedAt);
    }

    /**
     * URN of the permissions group.
     * 
     */
    @Import(name="urn")
    private @Nullable Output urn;

    /**
     * @return URN of the permissions group.
     * 
     */
    public Optional> urn() {
        return Optional.ofNullable(this.urn);
    }

    private PermissionsGroupState() {}

    private PermissionsGroupState(PermissionsGroupState $) {
        this.allows = $.allows;
        this.createdAt = $.createdAt;
        this.denies = $.denies;
        this.description = $.description;
        this.excepts = $.excepts;
        this.name = $.name;
        this.owner = $.owner;
        this.updatedAt = $.updatedAt;
        this.urn = $.urn;
    }

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

    public static final class Builder {
        private PermissionsGroupState $;

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

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

        /**
         * @param allows Set of actions allowed by the permissions group.
         * 
         * @return builder
         * 
         */
        public Builder allows(@Nullable Output> allows) {
            $.allows = allows;
            return this;
        }

        /**
         * @param allows Set of actions allowed by the permissions group.
         * 
         * @return builder
         * 
         */
        public Builder allows(List allows) {
            return allows(Output.of(allows));
        }

        /**
         * @param allows Set of actions allowed by the permissions group.
         * 
         * @return builder
         * 
         */
        public Builder allows(String... allows) {
            return allows(List.of(allows));
        }

        /**
         * @param createdAt Creation date of this group.
         * 
         * @return builder
         * 
         */
        public Builder createdAt(@Nullable Output createdAt) {
            $.createdAt = createdAt;
            return this;
        }

        /**
         * @param createdAt Creation date of this group.
         * 
         * @return builder
         * 
         */
        public Builder createdAt(String createdAt) {
            return createdAt(Output.of(createdAt));
        }

        /**
         * @param denies Set of actions that will be denied no matter what permissions group exists.
         * 
         * @return builder
         * 
         */
        public Builder denies(@Nullable Output> denies) {
            $.denies = denies;
            return this;
        }

        /**
         * @param denies Set of actions that will be denied no matter what permissions group exists.
         * 
         * @return builder
         * 
         */
        public Builder denies(List denies) {
            return denies(Output.of(denies));
        }

        /**
         * @param denies Set of actions that will be denied no matter what permissions group exists.
         * 
         * @return builder
         * 
         */
        public Builder denies(String... denies) {
            return denies(List.of(denies));
        }

        /**
         * @param description Group description.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Group description.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param excepts Set of actions that will be subtracted from the `allow` list.
         * 
         * @return builder
         * 
         */
        public Builder excepts(@Nullable Output> excepts) {
            $.excepts = excepts;
            return this;
        }

        /**
         * @param excepts Set of actions that will be subtracted from the `allow` list.
         * 
         * @return builder
         * 
         */
        public Builder excepts(List excepts) {
            return excepts(Output.of(excepts));
        }

        /**
         * @param excepts Set of actions that will be subtracted from the `allow` list.
         * 
         * @return builder
         * 
         */
        public Builder excepts(String... excepts) {
            return excepts(List.of(excepts));
        }

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

        /**
         * @param name Name of the permissions group.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param owner Owner of the permissions group.
         * 
         * @return builder
         * 
         */
        public Builder owner(@Nullable Output owner) {
            $.owner = owner;
            return this;
        }

        /**
         * @param owner Owner of the permissions group.
         * 
         * @return builder
         * 
         */
        public Builder owner(String owner) {
            return owner(Output.of(owner));
        }

        /**
         * @param updatedAt Date of the last update of this group.
         * 
         * @return builder
         * 
         */
        public Builder updatedAt(@Nullable Output updatedAt) {
            $.updatedAt = updatedAt;
            return this;
        }

        /**
         * @param updatedAt Date of the last update of this group.
         * 
         * @return builder
         * 
         */
        public Builder updatedAt(String updatedAt) {
            return updatedAt(Output.of(updatedAt));
        }

        /**
         * @param urn URN of the permissions group.
         * 
         * @return builder
         * 
         */
        public Builder urn(@Nullable Output urn) {
            $.urn = urn;
            return this;
        }

        /**
         * @param urn URN of the permissions group.
         * 
         * @return builder
         * 
         */
        public Builder urn(String urn) {
            return urn(Output.of(urn));
        }

        public PermissionsGroupState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy