@NotThreadSafe public static final class ImmutableScimUserListResponse.Builder extends Object
ImmutableScimUserListResponse.
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.
public final ImmutableScimUserListResponse.Builder from(ScimUserListResponse instance)
ScimUserListResponse 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.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableScimUserListResponse.Builder addSchemas(String element)
schemas set.element - A schemas elementthis builder for use in a chained invocationpublic final ImmutableScimUserListResponse.Builder addSchemas(String... elements)
schemas set.elements - An array of schemas elementsthis builder for use in a chained invocationpublic final ImmutableScimUserListResponse.Builder withSchemas(@Nullable Iterable<String> elements)
schemas set.elements - An iterable of schemas elementsthis builder for use in a chained invocationpublic final ImmutableScimUserListResponse.Builder addAllSchemas(Iterable<String> elements)
schemas set.elements - An iterable of schemas elementsthis builder for use in a chained invocationpublic final ImmutableScimUserListResponse.Builder withTotalResults(@Nullable Integer totalResults)
totalResults attribute.totalResults - The value for totalResults (can be null)this builder for use in a chained invocationpublic final ImmutableScimUserListResponse.Builder withStartIndex(@Nullable Integer startIndex)
startIndex attribute.startIndex - The value for startIndex (can be null)this builder for use in a chained invocationpublic final ImmutableScimUserListResponse.Builder withItemsPerPage(@Nullable Integer itemsPerPage)
itemsPerPage attribute.itemsPerPage - The value for itemsPerPage (can be null)this builder for use in a chained invocationpublic final ImmutableScimUserListResponse.Builder addResources(ScimUser element)
resources list.element - A resources elementthis builder for use in a chained invocationpublic final ImmutableScimUserListResponse.Builder addResources(ScimUser... elements)
resources list.elements - An array of resources elementsthis builder for use in a chained invocationpublic final ImmutableScimUserListResponse.Builder withResources(@Nullable Iterable<? extends ScimUser> elements)
resources list.elements - An iterable of resources elementsthis builder for use in a chained invocationpublic final ImmutableScimUserListResponse.Builder addAllResources(Iterable<? extends ScimUser> elements)
resources list.elements - An iterable of resources elementsthis builder for use in a chained invocationpublic ImmutableScimUserListResponse build()
ImmutableScimUserListResponse.IllegalStateException - if any required attributes are missingCopyright © 2016 Atlassian. All rights reserved.