@NotThreadSafe public static final class ImmutableScimAttribute.Builder extends Object
ImmutableScimAttribute.
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 |
|---|---|
ImmutableScimAttribute |
build()
Builds a new
ImmutableScimAttribute. |
ImmutableScimAttribute.Builder |
from(ScimAttribute instance)
Fill a builder with attribute values from the provided
ScimAttribute instance. |
ImmutableScimAttribute.Builder |
withKey(String key)
Initializes the value for the
key attribute. |
ImmutableScimAttribute.Builder |
withValue(String value)
Initializes the value for the
value attribute. |
public final ImmutableScimAttribute.Builder from(ScimAttribute instance)
ScimAttribute 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 ImmutableScimAttribute.Builder withKey(String key)
key attribute.key - The value for keythis builder for use in a chained invocationpublic final ImmutableScimAttribute.Builder withValue(String value)
value attribute.value - The value for valuethis builder for use in a chained invocationpublic ImmutableScimAttribute build()
ImmutableScimAttribute.IllegalStateException - if any required attributes are missingCopyright © 2016 Atlassian. All rights reserved.