Class ImmutableUaaUserList.Builder

  • Enclosing class:
    ImmutableUaaUserList

    @NotThreadSafe
    public static final class ImmutableUaaUserList.Builder
    extends Object
    Builds instances of type ImmutableUaaUserList. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        public final ImmutableUaaUserList.Builder from​(UaaUserList instance)
        Fill a builder with attribute values from the provided UaaUserList instance. 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:
        this builder for use in a chained invocation
      • addResources

        public final ImmutableUaaUserList.Builder addResources​(UaaUser element)
        Adds one element to resources list.
        Parameters:
        element - A resources element
        Returns:
        this builder for use in a chained invocation
      • addResources

        public final ImmutableUaaUserList.Builder addResources​(UaaUser... elements)
        Adds elements to resources list.
        Parameters:
        elements - An array of resources elements
        Returns:
        this builder for use in a chained invocation
      • resources

        public final ImmutableUaaUserList.Builder resources​(Iterable<? extends UaaUser> elements)
        Sets or replaces all elements for resources list.
        Parameters:
        elements - An iterable of resources elements
        Returns:
        this builder for use in a chained invocation
      • addAllResources

        public final ImmutableUaaUserList.Builder addAllResources​(Iterable<? extends UaaUser> elements)
        Adds elements to resources list.
        Parameters:
        elements - An iterable of resources elements
        Returns:
        this builder for use in a chained invocation
      • startIndex

        public final ImmutableUaaUserList.Builder startIndex​(Integer startIndex)
        Initializes the value for the startIndex attribute.
        Parameters:
        startIndex - The value for startIndex
        Returns:
        this builder for use in a chained invocation
      • itemsPerPage

        public final ImmutableUaaUserList.Builder itemsPerPage​(Integer itemsPerPage)
        Initializes the value for the itemsPerPage attribute.
        Parameters:
        itemsPerPage - The value for itemsPerPage
        Returns:
        this builder for use in a chained invocation
      • totalResults

        public final ImmutableUaaUserList.Builder totalResults​(Integer totalResults)
        Initializes the value for the totalResults attribute.
        Parameters:
        totalResults - The value for totalResults
        Returns:
        this builder for use in a chained invocation
      • addSchemas

        public final ImmutableUaaUserList.Builder addSchemas​(String element)
        Adds one element to schemas list.
        Parameters:
        element - A schemas element
        Returns:
        this builder for use in a chained invocation
      • addSchemas

        public final ImmutableUaaUserList.Builder addSchemas​(String... elements)
        Adds elements to schemas list.
        Parameters:
        elements - An array of schemas elements
        Returns:
        this builder for use in a chained invocation
      • schemas

        public final ImmutableUaaUserList.Builder schemas​(Iterable<String> elements)
        Sets or replaces all elements for schemas list.
        Parameters:
        elements - An iterable of schemas elements
        Returns:
        this builder for use in a chained invocation