Class ImmutableUaaGroupList.Builder

  • Enclosing class:
    ImmutableUaaGroupList

    @NotThreadSafe
    public static final class ImmutableUaaGroupList.Builder
    extends Object
    Builds instances of type ImmutableUaaGroupList. 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 ImmutableUaaGroupList.Builder from​(UaaGroupList instance)
        Fill a builder with attribute values from the provided UaaGroupList 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 ImmutableUaaGroupList.Builder addResources​(UaaGroup... 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 ImmutableUaaGroupList.Builder resources​(Iterable<? extends UaaGroup> 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
      • startIndex

        public final ImmutableUaaGroupList.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 ImmutableUaaGroupList.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 ImmutableUaaGroupList.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 ImmutableUaaGroupList.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 ImmutableUaaGroupList.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 ImmutableUaaGroupList.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