@NotThreadSafe public static final class ImmutableScimGroup.Builder extends Object
ImmutableScimGroup.
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 ImmutableScimGroup.Builder from(ScimGroup instance)
ScimGroup 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 ImmutableScimGroup.Builder addSchemas(String element)
schemas set.element - A schemas elementthis builder for use in a chained invocationpublic final ImmutableScimGroup.Builder addSchemas(String... elements)
schemas set.elements - An array of schemas elementsthis builder for use in a chained invocationpublic final ImmutableScimGroup.Builder withSchemas(@Nullable Iterable<String> elements)
schemas set.elements - An iterable of schemas elementsthis builder for use in a chained invocationpublic final ImmutableScimGroup.Builder addAllSchemas(Iterable<String> elements)
schemas set.elements - An iterable of schemas elementsthis builder for use in a chained invocationpublic final ImmutableScimGroup.Builder withId(@Nullable String id)
id attribute.id - The value for id (can be null)this builder for use in a chained invocationpublic final ImmutableScimGroup.Builder withDisplayName(@Nullable String displayName)
displayName attribute.displayName - The value for displayName (can be null)this builder for use in a chained invocationpublic final ImmutableScimGroup.Builder addMembers(ScimGroupMember element)
members list.element - A members elementthis builder for use in a chained invocationpublic final ImmutableScimGroup.Builder addMembers(ScimGroupMember... elements)
members list.elements - An array of members elementsthis builder for use in a chained invocationpublic final ImmutableScimGroup.Builder withMembers(@Nullable Iterable<? extends ScimGroupMember> elements)
members list.elements - An iterable of members elementsthis builder for use in a chained invocationpublic final ImmutableScimGroup.Builder addAllMembers(Iterable<? extends ScimGroupMember> elements)
members list.elements - An iterable of members elementsthis builder for use in a chained invocationpublic final ImmutableScimGroup.Builder withMeta(@Nullable ScimMeta meta)
meta attribute.meta - The value for meta (can be null)this builder for use in a chained invocationpublic final ImmutableScimGroup.Builder withAtlassianScimExtension(@Nullable AtlassianScimExtension atlassianScimExtension)
atlassianScimExtension attribute.atlassianScimExtension - The value for atlassianScimExtension (can be null)this builder for use in a chained invocationpublic ImmutableScimGroup build()
ImmutableScimGroup.IllegalStateException - if any required attributes are missingCopyright © 2016 Atlassian. All rights reserved.