io.imunity.scim.console.AttributeEditorData Maven / Gradle / Ivy
/*
* Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package io.imunity.scim.console;
import java.util.List;
import java.util.Collections;
class AttributeEditorData
{
final List attributeTypes;
final List identityTypes;
private AttributeEditorData(Builder builder)
{
this.attributeTypes = List.copyOf(builder.attributeTypes);
this.identityTypes = List.copyOf(builder.identityTypes);
}
static Builder builder()
{
return new Builder();
}
static final class Builder
{
private List attributeTypes = Collections.emptyList();
private List identityTypes = Collections.emptyList();
private Builder()
{
}
Builder withAttributeTypes(List attributeTypes)
{
this.attributeTypes = attributeTypes;
return this;
}
Builder withIdentityTypes(List identityTypes)
{
this.identityTypes = identityTypes;
return this;
}
AttributeEditorData build()
{
return new AttributeEditorData(this);
}
}
}