@NotThreadSafe public static final class ImmutableUserCreateRequestSet.Builder extends Object
ImmutableUserCreateRequestSet.
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.
| Modifier and Type | Method and Description |
|---|---|
ImmutableUserCreateRequestSet.Builder |
addAllUsers(Iterable<? extends UserCreateRequest> elements)
Adds elements to
users set. |
ImmutableUserCreateRequestSet.Builder |
addUsers(UserCreateRequest... elements)
Adds elements to
users set. |
ImmutableUserCreateRequestSet.Builder |
addUsers(UserCreateRequest element)
Adds one element to
users set. |
ImmutableUserCreateRequestSet |
build()
Builds a new
ImmutableUserCreateRequestSet. |
ImmutableUserCreateRequestSet.Builder |
from(UserCreateRequestSet instance)
Fill a builder with attribute values from the provided
UserCreateRequestSet instance. |
ImmutableUserCreateRequestSet.Builder |
users(Iterable<? extends UserCreateRequest> elements)
Sets or replaces all elements for
users set. |
public final ImmutableUserCreateRequestSet.Builder from(UserCreateRequestSet instance)
UserCreateRequestSet 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 ImmutableUserCreateRequestSet.Builder addUsers(UserCreateRequest element)
users set.element - A users elementthis builder for use in a chained invocationpublic final ImmutableUserCreateRequestSet.Builder addUsers(UserCreateRequest... elements)
users set.elements - An array of users elementsthis builder for use in a chained invocationpublic final ImmutableUserCreateRequestSet.Builder users(Iterable<? extends UserCreateRequest> elements)
users set.elements - An iterable of users elementsthis builder for use in a chained invocationpublic final ImmutableUserCreateRequestSet.Builder addAllUsers(Iterable<? extends UserCreateRequest> elements)
users set.elements - An iterable of users elementsthis builder for use in a chained invocationpublic ImmutableUserCreateRequestSet build()
ImmutableUserCreateRequestSet.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.