public static final class AttributeMappings.Builder extends Object
AttributeMappings.
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 |
|---|---|
AttributeMappings.Builder |
addAllExternalGroups(Iterable<String> elements)
Adds elements to
externalGroups list. |
AttributeMappings |
build()
Builds a new
AttributeMappings. |
AttributeMappings.Builder |
email(String email)
Initializes the value for the
email attribute. |
AttributeMappings.Builder |
externalGroup(String element)
Adds one element to
externalGroups list. |
AttributeMappings.Builder |
externalGroups(Iterable<String> elements)
Sets or replaces all elements for
externalGroups list. |
AttributeMappings.Builder |
externalGroups(String... elements)
Adds elements to
externalGroups list. |
AttributeMappings.Builder |
familyName(String familyName)
Initializes the value for the
familyName attribute. |
AttributeMappings.Builder |
firstName(String firstName)
Initializes the value for the
firstName attribute. |
AttributeMappings.Builder |
from(AttributeMappings instance)
Fill a builder with attribute values from the provided
AttributeMappings instance. |
AttributeMappings.Builder |
givenName(String givenName)
Initializes the value for the
givenName attribute. |
AttributeMappings.Builder |
phoneNumber(String phoneNumber)
Initializes the value for the
phoneNumber attribute. |
public final AttributeMappings.Builder from(AttributeMappings instance)
AttributeMappings instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final AttributeMappings.Builder email(String email)
email attribute.email - The value for email (can be null)this builder for use in a chained invocationpublic final AttributeMappings.Builder externalGroup(String element)
externalGroups list.element - A externalGroups elementthis builder for use in a chained invocationpublic final AttributeMappings.Builder externalGroups(String... elements)
externalGroups list.elements - An array of externalGroups elementsthis builder for use in a chained invocationpublic final AttributeMappings.Builder externalGroups(Iterable<String> elements)
externalGroups list.elements - An iterable of externalGroups elementsthis builder for use in a chained invocationpublic final AttributeMappings.Builder addAllExternalGroups(Iterable<String> elements)
externalGroups list.elements - An iterable of externalGroups elementsthis builder for use in a chained invocationpublic final AttributeMappings.Builder familyName(String familyName)
familyName attribute.familyName - The value for familyName (can be null)this builder for use in a chained invocationpublic final AttributeMappings.Builder firstName(String firstName)
firstName attribute.firstName - The value for firstName (can be null)this builder for use in a chained invocationpublic final AttributeMappings.Builder givenName(String givenName)
givenName attribute.givenName - The value for givenName (can be null)this builder for use in a chained invocationpublic final AttributeMappings.Builder phoneNumber(String phoneNumber)
phoneNumber attribute.phoneNumber - The value for phoneNumber (can be null)this builder for use in a chained invocationpublic AttributeMappings build()
AttributeMappings.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.