// *** 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.aws.iam;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;


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

    public static final UserGroupMembershipArgs Empty = new UserGroupMembershipArgs();

    /**
     * A list of IAM Groups to add the user to
     * 
     */
    @Import(name="groups", required=true)
    private Output<List<String>> groups;

    /**
     * @return A list of IAM Groups to add the user to
     * 
     */
    public Output<List<String>> groups() {
        return this.groups;
    }

    /**
     * The name of the IAM User to add to groups
     * 
     */
    @Import(name="user", required=true)
    private Output<String> user;

    /**
     * @return The name of the IAM User to add to groups
     * 
     */
    public Output<String> user() {
        return this.user;
    }

    private UserGroupMembershipArgs() {}

    private UserGroupMembershipArgs(UserGroupMembershipArgs $) {
        this.groups = $.groups;
        this.user = $.user;
    }

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

    public static final class Builder {
        private UserGroupMembershipArgs $;

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

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

        /**
         * @param groups A list of IAM Groups to add the user to
         * 
         * @return builder
         * 
         */
        public Builder groups(Output<List<String>> groups) {
            $.groups = groups;
            return this;
        }

        /**
         * @param groups A list of IAM Groups to add the user to
         * 
         * @return builder
         * 
         */
        public Builder groups(List<String> groups) {
            return groups(Output.of(groups));
        }

        /**
         * @param groups A list of IAM Groups to add the user to
         * 
         * @return builder
         * 
         */
        public Builder groups(String... groups) {
            return groups(List.of(groups));
        }

        /**
         * @param user The name of the IAM User to add to groups
         * 
         * @return builder
         * 
         */
        public Builder user(Output<String> user) {
            $.user = user;
            return this;
        }

        /**
         * @param user The name of the IAM User to add to groups
         * 
         * @return builder
         * 
         */
        public Builder user(String user) {
            return user(Output.of(user));
        }

        public UserGroupMembershipArgs build() {
            $.groups = Objects.requireNonNull($.groups, "expected parameter 'groups' to be non-null");
            $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null");
            return $;
        }
    }

}
