@NotThreadSafe public static final class ImmutableScimName.Builder extends Object
ImmutableScimName.
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 |
|---|---|
ImmutableScimName |
build()
Builds a new
ImmutableScimName. |
ImmutableScimName.Builder |
from(ScimName instance)
Fill a builder with attribute values from the provided
ScimName instance. |
ImmutableScimName.Builder |
withFamilyName(String familyName)
Initializes the value for the
familyName attribute. |
ImmutableScimName.Builder |
withFormattedName(String formattedName)
Initializes the value for the
formattedName attribute. |
ImmutableScimName.Builder |
withGivenName(String givenName)
Initializes the value for the
givenName attribute. |
public final ImmutableScimName.Builder from(ScimName instance)
ScimName instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableScimName.Builder withFamilyName(@Nullable String familyName)
familyName attribute.familyName - The value for familyName (can be null)this builder for use in a chained invocationpublic final ImmutableScimName.Builder withGivenName(@Nullable String givenName)
givenName attribute.givenName - The value for givenName (can be null)this builder for use in a chained invocationpublic final ImmutableScimName.Builder withFormattedName(@Nullable String formattedName)
formattedName attribute.formattedName - The value for formattedName (can be null)this builder for use in a chained invocationpublic ImmutableScimName build()
ImmutableScimName.IllegalStateException - if any required attributes are missingCopyright © 2016 Atlassian. All rights reserved.