Package io.dialob.security.uaa.spi.model
Class ImmutableUaaGroup.Member.Builder
- java.lang.Object
-
- io.dialob.security.uaa.spi.model.ImmutableUaaGroup.Member.Builder
-
- Enclosing class:
- ImmutableUaaGroup.Member
@NotThreadSafe public static final class ImmutableUaaGroup.Member.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableUaaGroup.Memberbuild()Builds a newMember.ImmutableUaaGroup.Member.Builderfrom(UaaGroup.Member instance)Fill a builder with attribute values from the providedMemberinstance.ImmutableUaaGroup.Member.Builderorigin(String origin)Initializes the value for theoriginattribute.ImmutableUaaGroup.Member.Buildertype(String type)Initializes the value for thetypeattribute.ImmutableUaaGroup.Member.Buildervalue(String value)Initializes the value for thevalueattribute.
-
-
-
Method Detail
-
from
public final ImmutableUaaGroup.Member.Builder from(UaaGroup.Member instance)
Fill a builder with attribute values from the providedMemberinstance. 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 ImmutableUaaGroup.Member.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
-
type
public final ImmutableUaaGroup.Member.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
-
origin
public final ImmutableUaaGroup.Member.Builder origin(String origin)
Initializes the value for theoriginattribute.- Parameters:
origin- The value for origin (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableUaaGroup.Member build()
Builds a newMember.- Returns:
- An immutable instance of Member
- Throws:
IllegalStateException- if any required attributes are missing
-
-