
com.pulumi.aws.cognito.inputs.GetUserGroupArgs 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.inputs;
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 GetUserGroupArgs extends com.pulumi.resources.InvokeArgs {
public static final GetUserGroupArgs Empty = new GetUserGroupArgs();
/**
* Name of the user group.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return Name of the user group.
*
*/
public Output name() {
return this.name;
}
/**
* User pool the client belongs to.
*
*/
@Import(name="userPoolId", required=true)
private Output userPoolId;
/**
* @return User pool the client belongs to.
*
*/
public Output userPoolId() {
return this.userPoolId;
}
private GetUserGroupArgs() {}
private GetUserGroupArgs(GetUserGroupArgs $) {
this.name = $.name;
this.userPoolId = $.userPoolId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetUserGroupArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetUserGroupArgs $;
public Builder() {
$ = new GetUserGroupArgs();
}
public Builder(GetUserGroupArgs defaults) {
$ = new GetUserGroupArgs(Objects.requireNonNull(defaults));
}
/**
* @param name Name of the user group.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name Name of the user group.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param userPoolId User pool the client belongs to.
*
* @return builder
*
*/
public Builder userPoolId(Output userPoolId) {
$.userPoolId = userPoolId;
return this;
}
/**
* @param userPoolId User pool the client belongs to.
*
* @return builder
*
*/
public Builder userPoolId(String userPoolId) {
return userPoolId(Output.of(userPoolId));
}
public GetUserGroupArgs build() {
if ($.name == null) {
throw new MissingRequiredPropertyException("GetUserGroupArgs", "name");
}
if ($.userPoolId == null) {
throw new MissingRequiredPropertyException("GetUserGroupArgs", "userPoolId");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy