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

com.ovhcloud.pulumi.ovh.Iam.inputs.GetPolicyArgs 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 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 GetPolicyArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetPolicyArgs Empty = new GetPolicyArgs();

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

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

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

    /**
     * @return Set of actions that will be denied no matter what policy 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);
    }

    /**
     * UUID of the policy.
     * 
     */
    @Import(name="id", required=true)
    private Output id;

    /**
     * @return UUID of the policy.
     * 
     */
    public Output id() {
        return this.id;
    }

    /**
     * Set of permissions groups that apply to the policy.
     * 
     */
    @Import(name="permissionsGroups")
    private @Nullable Output> permissionsGroups;

    /**
     * @return Set of permissions groups that apply to the policy.
     * 
     */
    public Optional>> permissionsGroups() {
        return Optional.ofNullable(this.permissionsGroups);
    }

    private GetPolicyArgs() {}

    private GetPolicyArgs(GetPolicyArgs $) {
        this.allows = $.allows;
        this.denies = $.denies;
        this.description = $.description;
        this.excepts = $.excepts;
        this.id = $.id;
        this.permissionsGroups = $.permissionsGroups;
    }

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

    public static final class Builder {
        private GetPolicyArgs $;

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

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

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

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

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

        /**
         * @param denies Set of actions that will be denied no matter what policy 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 policy 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 policy 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 id UUID of the policy.
         * 
         * @return builder
         * 
         */
        public Builder id(Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id UUID of the policy.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param permissionsGroups Set of permissions groups that apply to the policy.
         * 
         * @return builder
         * 
         */
        public Builder permissionsGroups(@Nullable Output> permissionsGroups) {
            $.permissionsGroups = permissionsGroups;
            return this;
        }

        /**
         * @param permissionsGroups Set of permissions groups that apply to the policy.
         * 
         * @return builder
         * 
         */
        public Builder permissionsGroups(List permissionsGroups) {
            return permissionsGroups(Output.of(permissionsGroups));
        }

        /**
         * @param permissionsGroups Set of permissions groups that apply to the policy.
         * 
         * @return builder
         * 
         */
        public Builder permissionsGroups(String... permissionsGroups) {
            return permissionsGroups(List.of(permissionsGroups));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy