Package io.dialob.security.uaa.spi.model
Class ImmutableUaaUser.Name.Builder
- java.lang.Object
-
- io.dialob.security.uaa.spi.model.ImmutableUaaUser.Name.Builder
-
- Enclosing class:
- ImmutableUaaUser.Name
@NotThreadSafe public static final class ImmutableUaaUser.Name.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableUaaUser.Namebuild()Builds a newName.ImmutableUaaUser.Name.BuilderfamilyName(String familyName)Initializes the value for thefamilyNameattribute.ImmutableUaaUser.Name.Builderfrom(UaaUser.Name instance)Fill a builder with attribute values from the providedNameinstance.ImmutableUaaUser.Name.BuildergivenName(String givenName)Initializes the value for thegivenNameattribute.
-
-
-
Method Detail
-
from
public final ImmutableUaaUser.Name.Builder from(UaaUser.Name instance)
Fill a builder with attribute values from the providedNameinstance. 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
-
familyName
public final ImmutableUaaUser.Name.Builder familyName(String familyName)
Initializes the value for thefamilyNameattribute.- Parameters:
familyName- The value for familyName (can benull)- Returns:
thisbuilder for use in a chained invocation
-
givenName
public final ImmutableUaaUser.Name.Builder givenName(String givenName)
Initializes the value for thegivenNameattribute.- Parameters:
givenName- The value for givenName (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableUaaUser.Name build()
Builds a newName.- Returns:
- An immutable instance of Name
- Throws:
IllegalStateException- if any required attributes are missing
-
-