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