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

com.pulumi.aws.cognito.UserInGroupArgs 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.aws.cognito;

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


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

    public static final UserInGroupArgs Empty = new UserInGroupArgs();

    /**
     * The name of the group to which the user is to be added.
     * 
     */
    @Import(name="groupName", required=true)
    private Output groupName;

    /**
     * @return The name of the group to which the user is to be added.
     * 
     */
    public Output groupName() {
        return this.groupName;
    }

    /**
     * The user pool ID of the user and group.
     * 
     */
    @Import(name="userPoolId", required=true)
    private Output userPoolId;

    /**
     * @return The user pool ID of the user and group.
     * 
     */
    public Output userPoolId() {
        return this.userPoolId;
    }

    /**
     * The username of the user to be added to the group.
     * 
     */
    @Import(name="username", required=true)
    private Output username;

    /**
     * @return The username of the user to be added to the group.
     * 
     */
    public Output username() {
        return this.username;
    }

    private UserInGroupArgs() {}

    private UserInGroupArgs(UserInGroupArgs $) {
        this.groupName = $.groupName;
        this.userPoolId = $.userPoolId;
        this.username = $.username;
    }

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

    public static final class Builder {
        private UserInGroupArgs $;

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

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

        /**
         * @param groupName The name of the group to which the user is to be added.
         * 
         * @return builder
         * 
         */
        public Builder groupName(Output groupName) {
            $.groupName = groupName;
            return this;
        }

        /**
         * @param groupName The name of the group to which the user is to be added.
         * 
         * @return builder
         * 
         */
        public Builder groupName(String groupName) {
            return groupName(Output.of(groupName));
        }

        /**
         * @param userPoolId The user pool ID of the user and group.
         * 
         * @return builder
         * 
         */
        public Builder userPoolId(Output userPoolId) {
            $.userPoolId = userPoolId;
            return this;
        }

        /**
         * @param userPoolId The user pool ID of the user and group.
         * 
         * @return builder
         * 
         */
        public Builder userPoolId(String userPoolId) {
            return userPoolId(Output.of(userPoolId));
        }

        /**
         * @param username The username of the user to be added to the group.
         * 
         * @return builder
         * 
         */
        public Builder username(Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username The username of the user to be added to the group.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public UserInGroupArgs build() {
            if ($.groupName == null) {
                throw new MissingRequiredPropertyException("UserInGroupArgs", "groupName");
            }
            if ($.userPoolId == null) {
                throw new MissingRequiredPropertyException("UserInGroupArgs", "userPoolId");
            }
            if ($.username == null) {
                throw new MissingRequiredPropertyException("UserInGroupArgs", "username");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy