@NotThreadSafe public static final class ImmutableScimEmail.Builder extends Object
ImmutableScimEmail.
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 |
|---|---|
ImmutableScimEmail |
build()
Builds a new
ImmutableScimEmail. |
ImmutableScimEmail.Builder |
from(ScimEmail instance)
Fill a builder with attribute values from the provided
ScimEmail instance. |
ImmutableScimEmail.Builder |
withPrimary(Boolean primary)
Initializes the value for the
primary attribute. |
ImmutableScimEmail.Builder |
withType(String type)
Initializes the value for the
type attribute. |
ImmutableScimEmail.Builder |
withValue(String value)
Initializes the value for the
value attribute. |
public final ImmutableScimEmail.Builder from(ScimEmail instance)
ScimEmail 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 ImmutableScimEmail.Builder withValue(String value)
value attribute.value - The value for valuethis builder for use in a chained invocationpublic final ImmutableScimEmail.Builder withType(@Nullable String type)
type attribute.type - The value for type (can be null)this builder for use in a chained invocationpublic final ImmutableScimEmail.Builder withPrimary(@Nullable Boolean primary)
primary attribute.
If not set, this attribute will have a default value as returned by the initializer of primary.
primary - The value for primary (can be null)this builder for use in a chained invocationpublic ImmutableScimEmail build()
ImmutableScimEmail.IllegalStateException - if any required attributes are missingCopyright © 2016 Atlassian. All rights reserved.