
com.pulumi.dbtcloud.outputs.GetGroupUsersResult 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.dbtcloud.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.dbtcloud.outputs.GetGroupUsersUser;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetGroupUsersResult {
/**
* @return ID of the group
*
*/
private Integer groupId;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return List of users (map of ID and email) in the group
*
*/
private List users;
private GetGroupUsersResult() {}
/**
* @return ID of the group
*
*/
public Integer groupId() {
return this.groupId;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return List of users (map of ID and email) in the group
*
*/
public List users() {
return this.users;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetGroupUsersResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer groupId;
private String id;
private List users;
public Builder() {}
public Builder(GetGroupUsersResult defaults) {
Objects.requireNonNull(defaults);
this.groupId = defaults.groupId;
this.id = defaults.id;
this.users = defaults.users;
}
@CustomType.Setter
public Builder groupId(Integer groupId) {
if (groupId == null) {
throw new MissingRequiredPropertyException("GetGroupUsersResult", "groupId");
}
this.groupId = groupId;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetGroupUsersResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder users(List users) {
if (users == null) {
throw new MissingRequiredPropertyException("GetGroupUsersResult", "users");
}
this.users = users;
return this;
}
public Builder users(GetGroupUsersUser... users) {
return users(List.of(users));
}
public GetGroupUsersResult build() {
final var _resultValue = new GetGroupUsersResult();
_resultValue.groupId = groupId;
_resultValue.id = id;
_resultValue.users = users;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy