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

com.ovhcloud.pulumi.ovh.Iam.PermissionsGroupArgs 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;

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


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

    public static final PermissionsGroupArgs Empty = new PermissionsGroupArgs();

    /**
     * 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);
    }

    /**
     * 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", required=true)
    private Output description;

    /**
     * @return Group description.
     * 
     */
    public Output description() {
        return 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);
    }

    /**
     * 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);
    }

    private PermissionsGroupArgs() {}

    private PermissionsGroupArgs(PermissionsGroupArgs $) {
        this.allows = $.allows;
        this.denies = $.denies;
        this.description = $.description;
        this.excepts = $.excepts;
        this.name = $.name;
        this.updatedAt = $.updatedAt;
    }

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

    public static final class Builder {
        private PermissionsGroupArgs $;

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

        public Builder(PermissionsGroupArgs defaults) {
            $ = new PermissionsGroupArgs(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 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(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 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));
        }

        public PermissionsGroupArgs build() {
            if ($.description == null) {
                throw new MissingRequiredPropertyException("PermissionsGroupArgs", "description");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy