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

com.pulumi.aws.iam.inputs.UserGroupMembershipState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.pulumi.aws.iam.inputs;

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


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

    public static final UserGroupMembershipState Empty = new UserGroupMembershipState();

    /**
     * A list of IAM Groups to add the user to
     * 
     */
    @Import(name="groups")
    private @Nullable Output> groups;

    /**
     * @return A list of IAM Groups to add the user to
     * 
     */
    public Optional>> groups() {
        return Optional.ofNullable(this.groups);
    }

    /**
     * The name of the IAM User to add to groups
     * 
     */
    @Import(name="user")
    private @Nullable Output user;

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

    private UserGroupMembershipState() {}

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

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

    public static final class Builder {
        private UserGroupMembershipState $;

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

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

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

        /**
         * @param groups A list of IAM Groups to add the user to
         * 
         * @return builder
         * 
         */
        public Builder groups(List 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(@Nullable Output 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 UserGroupMembershipState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy