
com.pulumi.aws.identitystore.outputs.GetGroupResult 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.GetGroupAlternateIdentifier;
import com.pulumi.aws.identitystore.outputs.GetGroupExternalId;
import com.pulumi.aws.identitystore.outputs.GetGroupFilter;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetGroupResult {
private @Nullable GetGroupAlternateIdentifier alternateIdentifier;
/**
* @return Description of the specified group.
*
*/
private String description;
/**
* @return Group's display name value.
*
*/
private String displayName;
/**
* @return List of identifiers issued to this resource by an external identity provider.
*
*/
private List externalIds;
/**
* @deprecated
* Use the alternate_identifier attribute instead.
*
*/
@Deprecated /* Use the alternate_identifier attribute instead. */
private @Nullable GetGroupFilter filter;
private String groupId;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private String identityStoreId;
private GetGroupResult() {}
public Optional alternateIdentifier() {
return Optional.ofNullable(this.alternateIdentifier);
}
/**
* @return Description of the specified group.
*
*/
public String description() {
return this.description;
}
/**
* @return Group's display name value.
*
*/
public String displayName() {
return this.displayName;
}
/**
* @return List of identifiers issued to this resource by an external identity provider.
*
*/
public List externalIds() {
return this.externalIds;
}
/**
* @deprecated
* Use the alternate_identifier attribute instead.
*
*/
@Deprecated /* Use the alternate_identifier attribute instead. */
public Optional filter() {
return Optional.ofNullable(this.filter);
}
public String groupId() {
return this.groupId;
}
/**
* @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(GetGroupResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable GetGroupAlternateIdentifier alternateIdentifier;
private String description;
private String displayName;
private List externalIds;
private @Nullable GetGroupFilter filter;
private String groupId;
private String id;
private String identityStoreId;
public Builder() {}
public Builder(GetGroupResult defaults) {
Objects.requireNonNull(defaults);
this.alternateIdentifier = defaults.alternateIdentifier;
this.description = defaults.description;
this.displayName = defaults.displayName;
this.externalIds = defaults.externalIds;
this.filter = defaults.filter;
this.groupId = defaults.groupId;
this.id = defaults.id;
this.identityStoreId = defaults.identityStoreId;
}
@CustomType.Setter
public Builder alternateIdentifier(@Nullable GetGroupAlternateIdentifier alternateIdentifier) {
this.alternateIdentifier = alternateIdentifier;
return this;
}
@CustomType.Setter
public Builder description(String description) {
if (description == null) {
throw new MissingRequiredPropertyException("GetGroupResult", "description");
}
this.description = description;
return this;
}
@CustomType.Setter
public Builder displayName(String displayName) {
if (displayName == null) {
throw new MissingRequiredPropertyException("GetGroupResult", "displayName");
}
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder externalIds(List externalIds) {
if (externalIds == null) {
throw new MissingRequiredPropertyException("GetGroupResult", "externalIds");
}
this.externalIds = externalIds;
return this;
}
public Builder externalIds(GetGroupExternalId... externalIds) {
return externalIds(List.of(externalIds));
}
@CustomType.Setter
public Builder filter(@Nullable GetGroupFilter filter) {
this.filter = filter;
return this;
}
@CustomType.Setter
public Builder groupId(String groupId) {
if (groupId == null) {
throw new MissingRequiredPropertyException("GetGroupResult", "groupId");
}
this.groupId = groupId;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetGroupResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder identityStoreId(String identityStoreId) {
if (identityStoreId == null) {
throw new MissingRequiredPropertyException("GetGroupResult", "identityStoreId");
}
this.identityStoreId = identityStoreId;
return this;
}
public GetGroupResult build() {
final var _resultValue = new GetGroupResult();
_resultValue.alternateIdentifier = alternateIdentifier;
_resultValue.description = description;
_resultValue.displayName = displayName;
_resultValue.externalIds = externalIds;
_resultValue.filter = filter;
_resultValue.groupId = groupId;
_resultValue.id = id;
_resultValue.identityStoreId = identityStoreId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy