Package io.dialob.security.uaa.spi.model
Class ImmutableUaaGroupList.Builder
- java.lang.Object
-
- io.dialob.security.uaa.spi.model.ImmutableUaaGroupList.Builder
-
- Enclosing class:
- ImmutableUaaGroupList
@NotThreadSafe public static final class ImmutableUaaGroupList.Builder extends Object
Builds instances of typeImmutableUaaGroupList. 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 ImmutableUaaGroupList.Builder from(UaaGroupList instance)
Fill a builder with attribute values from the providedUaaGroupListinstance. 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 ImmutableUaaGroupList.Builder addResources(UaaGroup element)
Adds one element toresourceslist.- Parameters:
element- A resources element- Returns:
thisbuilder for use in a chained invocation
-
addResources
public final ImmutableUaaGroupList.Builder addResources(UaaGroup... elements)
Adds elements toresourceslist.- Parameters:
elements- An array of resources elements- Returns:
thisbuilder for use in a chained invocation
-
resources
public final ImmutableUaaGroupList.Builder resources(Iterable<? extends UaaGroup> 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 ImmutableUaaGroupList.Builder addAllResources(Iterable<? extends UaaGroup> elements)
Adds elements toresourceslist.- Parameters:
elements- An iterable of resources elements- Returns:
thisbuilder for use in a chained invocation
-
startIndex
public final ImmutableUaaGroupList.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 ImmutableUaaGroupList.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 ImmutableUaaGroupList.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 ImmutableUaaGroupList.Builder addSchemas(String element)
Adds one element toschemaslist.- Parameters:
element- A schemas element- Returns:
thisbuilder for use in a chained invocation
-
addSchemas
public final ImmutableUaaGroupList.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 ImmutableUaaGroupList.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 ImmutableUaaGroupList.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 ImmutableUaaGroupList build()
Builds a newImmutableUaaGroupList.- Returns:
- An immutable instance of UaaGroupList
- Throws:
IllegalStateException- if any required attributes are missing
-
-