@NotThreadSafe public static final class ImmutableScimMeta.Builder extends Object
ImmutableScimMeta.
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 |
|---|---|
ImmutableScimMeta |
build()
Builds a new
ImmutableScimMeta. |
ImmutableScimMeta.Builder |
from(ScimMeta instance)
Fill a builder with attribute values from the provided
ScimMeta instance. |
ImmutableScimMeta.Builder |
withLastModified(OffsetDateTime lastModified)
Initializes the value for the
lastModified attribute. |
ImmutableScimMeta.Builder |
withResourceType(String resourceType)
Initializes the value for the
resourceType attribute. |
public final ImmutableScimMeta.Builder from(ScimMeta instance)
ScimMeta 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 ImmutableScimMeta.Builder withResourceType(@Nullable String resourceType)
resourceType attribute.resourceType - The value for resourceType (can be null)this builder for use in a chained invocationpublic final ImmutableScimMeta.Builder withLastModified(@Nullable OffsetDateTime lastModified)
lastModified attribute.lastModified - The value for lastModified (can be null)this builder for use in a chained invocationpublic ImmutableScimMeta build()
ImmutableScimMeta.IllegalStateException - if any required attributes are missingCopyright © 2016 Atlassian. All rights reserved.