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

com.pulumi.googlenative.servicedirectory.v1beta1.NamespaceServiceWorkloadIamMemberArgs 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.servicedirectory.v1beta1;

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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NamespaceServiceWorkloadIamMemberArgs Empty = new NamespaceServiceWorkloadIamMemberArgs();

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

    /**
     * Identity that will be granted the privilege in role. The 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="member", required=true)
    private Output member;

    /**
     * @return Identity that will be granted the privilege in role. The 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 member() {
        return this.member;
    }

    /**
     * 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.
     * 
     */
    @Import(name="role", required=true)
    private Output role;

    /**
     * @return The role that should be applied.
     * 
     */
    public Output role() {
        return this.role;
    }

    private NamespaceServiceWorkloadIamMemberArgs() {}

    private NamespaceServiceWorkloadIamMemberArgs(NamespaceServiceWorkloadIamMemberArgs $) {
        this.condition = $.condition;
        this.member = $.member;
        this.name = $.name;
        this.role = $.role;
    }

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

    public static final class Builder {
        private NamespaceServiceWorkloadIamMemberArgs $;

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

        public Builder(NamespaceServiceWorkloadIamMemberArgs defaults) {
            $ = new NamespaceServiceWorkloadIamMemberArgs(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 member Identity that will be granted the privilege in role. The 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 member(Output member) {
            $.member = member;
            return this;
        }

        /**
         * @param member Identity that will be granted the privilege in role. The 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 member(String member) {
            return member(Output.of(member));
        }

        /**
         * @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.
         * 
         * @return builder
         * 
         */
        public Builder role(Output role) {
            $.role = role;
            return this;
        }

        /**
         * @param role The role that should be applied.
         * 
         * @return builder
         * 
         */
        public Builder role(String role) {
            return role(Output.of(role));
        }

        public NamespaceServiceWorkloadIamMemberArgs build() {
            $.member = Objects.requireNonNull($.member, "expected parameter 'member' 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