com.pulumi.aws.identitystore.outputs.GetGroupsResult 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.identitystore.outputs;
import com.pulumi.aws.identitystore.outputs.GetGroupsGroup;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetGroupsResult {
/**
* @return List of Identity Store Groups
*
*/
private List groups;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private String identityStoreId;
private GetGroupsResult() {}
/**
* @return List of Identity Store Groups
*
*/
public List groups() {
return this.groups;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public String identityStoreId() {
return this.identityStoreId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetGroupsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List groups;
private String id;
private String identityStoreId;
public Builder() {}
public Builder(GetGroupsResult defaults) {
Objects.requireNonNull(defaults);
this.groups = defaults.groups;
this.id = defaults.id;
this.identityStoreId = defaults.identityStoreId;
}
@CustomType.Setter
public Builder groups(List groups) {
if (groups == null) {
throw new MissingRequiredPropertyException("GetGroupsResult", "groups");
}
this.groups = groups;
return this;
}
public Builder groups(GetGroupsGroup... groups) {
return groups(List.of(groups));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetGroupsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder identityStoreId(String identityStoreId) {
if (identityStoreId == null) {
throw new MissingRequiredPropertyException("GetGroupsResult", "identityStoreId");
}
this.identityStoreId = identityStoreId;
return this;
}
public GetGroupsResult build() {
final var _resultValue = new GetGroupsResult();
_resultValue.groups = groups;
_resultValue.id = id;
_resultValue.identityStoreId = identityStoreId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy