@NotThreadSafe public static final class ImmutableScimUser.Builder extends Object
ImmutableScimUser.
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 ImmutableScimUser.Builder from(ScimUser instance)
ScimUser 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 ImmutableScimUser.Builder addSchemas(String element)
schemas set.element - A schemas elementthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder addSchemas(String... elements)
schemas set.elements - An array of schemas elementsthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder withSchemas(@Nullable Iterable<String> elements)
schemas set.elements - An iterable of schemas elementsthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder addAllSchemas(Iterable<String> elements)
schemas set.elements - An iterable of schemas elementsthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder withId(@Nullable String id)
id attribute.id - The value for id (can be null)this builder for use in a chained invocationpublic final ImmutableScimUser.Builder withUserName(@Nullable String userName)
userName attribute.userName - The value for userName (can be null)this builder for use in a chained invocationpublic final ImmutableScimUser.Builder withActive(@Nullable Boolean active)
active attribute.active - The value for active (can be null)this builder for use in a chained invocationpublic final ImmutableScimUser.Builder withName(@Nullable ScimName name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final ImmutableScimUser.Builder withDisplayName(@Nullable String displayName)
displayName attribute.displayName - The value for displayName (can be null)this builder for use in a chained invocationpublic final ImmutableScimUser.Builder withNickName(@Nullable String nickName)
nickName attribute.nickName - The value for nickName (can be null)this builder for use in a chained invocationpublic final ImmutableScimUser.Builder withProfileUrl(@Nullable String profileUrl)
profileUrl attribute.profileUrl - The value for profileUrl (can be null)this builder for use in a chained invocationpublic final ImmutableScimUser.Builder withPreferredLanguage(@Nullable String preferredLanguage)
preferredLanguage attribute.preferredLanguage - The value for preferredLanguage (can be null)this builder for use in a chained invocationpublic final ImmutableScimUser.Builder withLocale(@Nullable String locale)
locale attribute.locale - The value for locale (can be null)this builder for use in a chained invocationpublic final ImmutableScimUser.Builder addPhoneNumbers(ScimPhoneNumber element)
phoneNumbers list.element - A phoneNumbers elementthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder addPhoneNumbers(ScimPhoneNumber... elements)
phoneNumbers list.elements - An array of phoneNumbers elementsthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder withPhoneNumbers(@Nullable Iterable<? extends ScimPhoneNumber> elements)
phoneNumbers list.elements - An iterable of phoneNumbers elementsthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder addAllPhoneNumbers(Iterable<? extends ScimPhoneNumber> elements)
phoneNumbers list.elements - An iterable of phoneNumbers elementsthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder addEmails(ScimEmail element)
emails list.element - A emails elementthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder addEmails(ScimEmail... elements)
emails list.elements - An array of emails elementsthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder withEmails(@Nullable Iterable<? extends ScimEmail> elements)
emails list.elements - An iterable of emails elementsthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder addAllEmails(Iterable<? extends ScimEmail> elements)
emails list.elements - An iterable of emails elementsthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder withAtlassianScimExtension(@Nullable AtlassianScimExtension atlassianScimExtension)
atlassianScimExtension attribute.atlassianScimExtension - The value for atlassianScimExtension (can be null)this builder for use in a chained invocationpublic final ImmutableScimUser.Builder addGroups(ScimGroupForUser element)
groups list.element - A groups elementthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder addGroups(ScimGroupForUser... elements)
groups list.elements - An array of groups elementsthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder withGroups(@Nullable Iterable<? extends ScimGroupForUser> elements)
groups list.elements - An iterable of groups elementsthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder addAllGroups(Iterable<? extends ScimGroupForUser> elements)
groups list.elements - An iterable of groups elementsthis builder for use in a chained invocationpublic final ImmutableScimUser.Builder withMeta(@Nullable ScimMeta meta)
meta attribute.meta - The value for meta (can be null)this builder for use in a chained invocationpublic final ImmutableScimUser.Builder withTitle(@Nullable String title)
title attribute.title - The value for title (can be null)this builder for use in a chained invocationpublic final ImmutableScimUser.Builder withTimezone(@Nullable String timezone)
timezone attribute.timezone - The value for timezone (can be null)this builder for use in a chained invocationpublic ImmutableScimUser build()
ImmutableScimUser.IllegalStateException - if any required attributes are missingCopyright © 2016 Atlassian. All rights reserved.