Package io.dialob.security.uaa.spi.model
Class ImmutableUaaUser.Group.Builder
- java.lang.Object
-
- io.dialob.security.uaa.spi.model.ImmutableUaaUser.Group.Builder
-
- Enclosing class:
- ImmutableUaaUser.Group
@NotThreadSafe public static final class ImmutableUaaUser.Group.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableUaaUser.Groupbuild()Builds a newGroup.ImmutableUaaUser.Group.Builderdisplay(String display)Initializes the value for thedisplayattribute.ImmutableUaaUser.Group.Builderfrom(UaaUser.Group instance)Fill a builder with attribute values from the providedGroupinstance.ImmutableUaaUser.Group.Buildertype(String type)Initializes the value for thetypeattribute.ImmutableUaaUser.Group.Buildervalue(String value)Initializes the value for thevalueattribute.
-
-
-
Method Detail
-
from
public final ImmutableUaaUser.Group.Builder from(UaaUser.Group instance)
Fill a builder with attribute values from the providedGroupinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
value
public final ImmutableUaaUser.Group.Builder value(String value)
Initializes the value for thevalueattribute.- Parameters:
value- The value for value (can benull)- Returns:
thisbuilder for use in a chained invocation
-
display
public final ImmutableUaaUser.Group.Builder display(String display)
Initializes the value for thedisplayattribute.- Parameters:
display- The value for display (can benull)- Returns:
thisbuilder for use in a chained invocation
-
type
public final ImmutableUaaUser.Group.Builder type(String type)
Initializes the value for thetypeattribute.- Parameters:
type- The value for type (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableUaaUser.Group build()
Builds a newGroup.- Returns:
- An immutable instance of Group
- Throws:
IllegalStateException- if any required attributes are missing
-
-