Class ImmutableUserCreationSetResponse.Builder
java.lang.Object
com.iland.core.web.rest.response.user.ImmutableUserCreationSetResponse.Builder
- Enclosing class:
- ImmutableUserCreationSetResponse
@Generated(from="UserCreationSetResponse",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableUserCreationSetResponse.Builder
extends Object
Builds instances of type
ImmutableUserCreationSetResponse.
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 Summary
Modifier and TypeMethodDescriptionaddAllUsers(Iterable<? extends UserCreationResponse> elements) Adds elements tousersset.addUsers(UserCreationResponse element) Adds one element tousersset.addUsers(UserCreationResponse... elements) Adds elements tousersset.build()Builds a newImmutableUserCreationSetResponse.from(UserCreationSetResponse instance) Fill a builder with attribute values from the providedUserCreationSetResponseinstance.users(Iterable<? extends UserCreationResponse> elements) Sets or replaces all elements forusersset.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableUserCreationSetResponse.Builder from(UserCreationSetResponse instance) Fill a builder with attribute values from the providedUserCreationSetResponseinstance. 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
-
addUsers
@CanIgnoreReturnValue public final ImmutableUserCreationSetResponse.Builder addUsers(UserCreationResponse element) Adds one element tousersset.- Parameters:
element- A users element- Returns:
thisbuilder for use in a chained invocation
-
addUsers
@CanIgnoreReturnValue public final ImmutableUserCreationSetResponse.Builder addUsers(UserCreationResponse... elements) Adds elements tousersset.- Parameters:
elements- An array of users elements- Returns:
thisbuilder for use in a chained invocation
-
users
@CanIgnoreReturnValue public final ImmutableUserCreationSetResponse.Builder users(Iterable<? extends UserCreationResponse> elements) Sets or replaces all elements forusersset.- Parameters:
elements- An iterable of users elements- Returns:
thisbuilder for use in a chained invocation
-
addAllUsers
@CanIgnoreReturnValue public final ImmutableUserCreationSetResponse.Builder addAllUsers(Iterable<? extends UserCreationResponse> elements) Adds elements tousersset.- Parameters:
elements- An iterable of users elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableUserCreationSetResponse.- Returns:
- An immutable instance of UserCreationSetResponse
- Throws:
IllegalStateException- if any required attributes are missing
-