Package io.dialob.security.uaa.spi.model
Class ImmutableUaaUserList.Builder
- java.lang.Object
-
- io.dialob.security.uaa.spi.model.ImmutableUaaUserList.Builder
-
- Enclosing class:
- ImmutableUaaUserList
@NotThreadSafe public static final class ImmutableUaaUserList.Builder extends Object
Builds instances of typeImmutableUaaUserList. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
-
-
-
Method Detail
-
from
public final ImmutableUaaUserList.Builder from(UaaUserList instance)
Fill a builder with attribute values from the providedUaaUserListinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addResources
public final ImmutableUaaUserList.Builder addResources(UaaUser element)
Adds one element toresourceslist.- Parameters:
element- A resources element- Returns:
thisbuilder for use in a chained invocation
-
addResources
public final ImmutableUaaUserList.Builder addResources(UaaUser... elements)
Adds elements toresourceslist.- Parameters:
elements- An array of resources elements- Returns:
thisbuilder for use in a chained invocation
-
resources
public final ImmutableUaaUserList.Builder resources(Iterable<? extends UaaUser> elements)
Sets or replaces all elements forresourceslist.- Parameters:
elements- An iterable of resources elements- Returns:
thisbuilder for use in a chained invocation
-
addAllResources
public final ImmutableUaaUserList.Builder addAllResources(Iterable<? extends UaaUser> elements)
Adds elements toresourceslist.- Parameters:
elements- An iterable of resources elements- Returns:
thisbuilder for use in a chained invocation
-
startIndex
public final ImmutableUaaUserList.Builder startIndex(Integer startIndex)
Initializes the value for thestartIndexattribute.- Parameters:
startIndex- The value for startIndex- Returns:
thisbuilder for use in a chained invocation
-
itemsPerPage
public final ImmutableUaaUserList.Builder itemsPerPage(Integer itemsPerPage)
Initializes the value for theitemsPerPageattribute.- Parameters:
itemsPerPage- The value for itemsPerPage- Returns:
thisbuilder for use in a chained invocation
-
totalResults
public final ImmutableUaaUserList.Builder totalResults(Integer totalResults)
Initializes the value for thetotalResultsattribute.- Parameters:
totalResults- The value for totalResults- Returns:
thisbuilder for use in a chained invocation
-
addSchemas
public final ImmutableUaaUserList.Builder addSchemas(String element)
Adds one element toschemaslist.- Parameters:
element- A schemas element- Returns:
thisbuilder for use in a chained invocation
-
addSchemas
public final ImmutableUaaUserList.Builder addSchemas(String... elements)
Adds elements toschemaslist.- Parameters:
elements- An array of schemas elements- Returns:
thisbuilder for use in a chained invocation
-
schemas
public final ImmutableUaaUserList.Builder schemas(Iterable<String> elements)
Sets or replaces all elements forschemaslist.- Parameters:
elements- An iterable of schemas elements- Returns:
thisbuilder for use in a chained invocation
-
addAllSchemas
public final ImmutableUaaUserList.Builder addAllSchemas(Iterable<String> elements)
Adds elements toschemaslist.- Parameters:
elements- An iterable of schemas elements- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableUaaUserList build()
Builds a newImmutableUaaUserList.- Returns:
- An immutable instance of UaaUserList
- Throws:
IllegalStateException- if any required attributes are missing
-
-