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

com.pulumi.googlenative.apigateway.v1beta.ApiConfigIamBindingArgs Maven / Gradle / Ivy

// *** 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.googlenative.apigateway.v1beta;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.iam.v1.inputs.ConditionArgs;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ApiConfigIamBindingArgs Empty = new ApiConfigIamBindingArgs();

    /**
     * An IAM Condition for a given binding.
     * 
     */
    @Import(name="condition")
    private @Nullable Output condition;

    /**
     * @return An IAM Condition for a given binding.
     * 
     */
    public Optional> condition() {
        return Optional.ofNullable(this.condition);
    }

    /**
     * Identities that will be granted the privilege in role. Each entry can have one of the following values:
     * 
     *  * user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
     *  * serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
     *  * group:{emailid}: An email address that represents a Google group. For example, [email protected].
     *  * domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
     * 
     */
    @Import(name="members", required=true)
    private Output> members;

    /**
     * @return Identities that will be granted the privilege in role. Each entry can have one of the following values:
     * 
     *  * user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
     *  * serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
     *  * group:{emailid}: An email address that represents a Google group. For example, [email protected].
     *  * domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
     * 
     */
    public Output> members() {
        return this.members;
    }

    /**
     * The name of the resource to manage IAM policies for.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the resource to manage IAM policies for.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The role that should be applied. Only one `IamBinding` can be used per role.
     * 
     */
    @Import(name="role", required=true)
    private Output role;

    /**
     * @return The role that should be applied. Only one `IamBinding` can be used per role.
     * 
     */
    public Output role() {
        return this.role;
    }

    private ApiConfigIamBindingArgs() {}

    private ApiConfigIamBindingArgs(ApiConfigIamBindingArgs $) {
        this.condition = $.condition;
        this.members = $.members;
        this.name = $.name;
        this.role = $.role;
    }

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

    public static final class Builder {
        private ApiConfigIamBindingArgs $;

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

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

        /**
         * @param condition An IAM Condition for a given binding.
         * 
         * @return builder
         * 
         */
        public Builder condition(@Nullable Output condition) {
            $.condition = condition;
            return this;
        }

        /**
         * @param condition An IAM Condition for a given binding.
         * 
         * @return builder
         * 
         */
        public Builder condition(ConditionArgs condition) {
            return condition(Output.of(condition));
        }

        /**
         * @param members Identities that will be granted the privilege in role. Each entry can have one of the following values:
         * 
         *  * user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
         *  * serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
         *  * group:{emailid}: An email address that represents a Google group. For example, [email protected].
         *  * domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
         * 
         * @return builder
         * 
         */
        public Builder members(Output> members) {
            $.members = members;
            return this;
        }

        /**
         * @param members Identities that will be granted the privilege in role. Each entry can have one of the following values:
         * 
         *  * user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
         *  * serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
         *  * group:{emailid}: An email address that represents a Google group. For example, [email protected].
         *  * domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
         * 
         * @return builder
         * 
         */
        public Builder members(List members) {
            return members(Output.of(members));
        }

        /**
         * @param members Identities that will be granted the privilege in role. Each entry can have one of the following values:
         * 
         *  * user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
         *  * serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
         *  * group:{emailid}: An email address that represents a Google group. For example, [email protected].
         *  * domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
         * 
         * @return builder
         * 
         */
        public Builder members(String... members) {
            return members(List.of(members));
        }

        /**
         * @param name The name of the resource to manage IAM policies for.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the resource to manage IAM policies for.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param role The role that should be applied. Only one `IamBinding` can be used per role.
         * 
         * @return builder
         * 
         */
        public Builder role(Output role) {
            $.role = role;
            return this;
        }

        /**
         * @param role The role that should be applied. Only one `IamBinding` can be used per role.
         * 
         * @return builder
         * 
         */
        public Builder role(String role) {
            return role(Output.of(role));
        }

        public ApiConfigIamBindingArgs build() {
            $.members = Objects.requireNonNull($.members, "expected parameter 'members' to be non-null");
            $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null");
            $.role = Objects.requireNonNull($.role, "expected parameter 'role' to be non-null");
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy