Class ImmutableUaaUser.Builder

  • Enclosing class:
    ImmutableUaaUser

    @NotThreadSafe
    public static final class ImmutableUaaUser.Builder
    extends Object
    Builds instances of type ImmutableUaaUser. 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.

    • Method Detail

      • from

        public final ImmutableUaaUser.Builder from​(UaaUser instance)
        Fill a builder with attribute values from the provided io.dialob.security.uaa.spi.model.UaaUser instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final ImmutableUaaUser.Builder from​(UaaEntity instance)
        Fill a builder with attribute values from the provided io.dialob.security.uaa.spi.model.UaaEntity instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • id

        public final ImmutableUaaUser.Builder id​(String id)
        Initializes the value for the id attribute.
        Parameters:
        id - The value for id
        Returns:
        this builder for use in a chained invocation
      • addSchemas

        public final ImmutableUaaUser.Builder addSchemas​(String element)
        Adds one element to schemas list.
        Parameters:
        element - A schemas element
        Returns:
        this builder for use in a chained invocation
      • addSchemas

        public final ImmutableUaaUser.Builder addSchemas​(String... elements)
        Adds elements to schemas list.
        Parameters:
        elements - An array of schemas elements
        Returns:
        this builder for use in a chained invocation
      • schemas

        public final ImmutableUaaUser.Builder schemas​(Iterable<String> elements)
        Sets or replaces all elements for schemas list.
        Parameters:
        elements - An iterable of schemas elements
        Returns:
        this builder for use in a chained invocation
      • addAllSchemas

        public final ImmutableUaaUser.Builder addAllSchemas​(Iterable<String> elements)
        Adds elements to schemas list.
        Parameters:
        elements - An iterable of schemas elements
        Returns:
        this builder for use in a chained invocation
      • meta

        public final ImmutableUaaUser.Builder meta​(UaaMeta meta)
        Initializes the value for the meta attribute.
        Parameters:
        meta - The value for meta (can be null)
        Returns:
        this builder for use in a chained invocation
      • name

        public final ImmutableUaaUser.Builder name​(UaaUser.Name name)
        Initializes the value for the name attribute.
        Parameters:
        name - The value for name (can be null)
        Returns:
        this builder for use in a chained invocation
      • addEmails

        public final ImmutableUaaUser.Builder addEmails​(UaaUser.Email... elements)
        Adds elements to emails list.
        Parameters:
        elements - An array of emails elements
        Returns:
        this builder for use in a chained invocation
      • emails

        public final ImmutableUaaUser.Builder emails​(Iterable<? extends UaaUser.Email> elements)
        Sets or replaces all elements for emails list.
        Parameters:
        elements - An iterable of emails elements
        Returns:
        this builder for use in a chained invocation
      • externalId

        public final ImmutableUaaUser.Builder externalId​(String externalId)
        Initializes the value for the externalId attribute.
        Parameters:
        externalId - The value for externalId (can be null)
        Returns:
        this builder for use in a chained invocation
      • userName

        public final ImmutableUaaUser.Builder userName​(String userName)
        Initializes the value for the userName attribute.
        Parameters:
        userName - The value for userName (can be null)
        Returns:
        this builder for use in a chained invocation
      • addGroups

        public final ImmutableUaaUser.Builder addGroups​(UaaUser.Group... elements)
        Adds elements to groups list.
        Parameters:
        elements - An array of groups elements
        Returns:
        this builder for use in a chained invocation
      • groups

        public final ImmutableUaaUser.Builder groups​(Iterable<? extends UaaUser.Group> elements)
        Sets or replaces all elements for groups list.
        Parameters:
        elements - An iterable of groups elements
        Returns:
        this builder for use in a chained invocation
      • active

        public final ImmutableUaaUser.Builder active​(Boolean active)
        Initializes the value for the active attribute.
        Parameters:
        active - The value for active (can be null)
        Returns:
        this builder for use in a chained invocation
      • verified

        public final ImmutableUaaUser.Builder verified​(Boolean verified)
        Initializes the value for the verified attribute.
        Parameters:
        verified - The value for verified (can be null)
        Returns:
        this builder for use in a chained invocation
      • origin

        public final ImmutableUaaUser.Builder origin​(String origin)
        Initializes the value for the origin attribute.
        Parameters:
        origin - The value for origin (can be null)
        Returns:
        this builder for use in a chained invocation
      • zoneId

        public final ImmutableUaaUser.Builder zoneId​(String zoneId)
        Initializes the value for the zoneId attribute.
        Parameters:
        zoneId - The value for zoneId (can be null)
        Returns:
        this builder for use in a chained invocation
      • passwordLastModified

        public final ImmutableUaaUser.Builder passwordLastModified​(OffsetDateTime passwordLastModified)
        Initializes the value for the passwordLastModified attribute.
        Parameters:
        passwordLastModified - The value for passwordLastModified (can be null)
        Returns:
        this builder for use in a chained invocation
      • previousLogonTime

        public final ImmutableUaaUser.Builder previousLogonTime​(Long previousLogonTime)
        Initializes the value for the previousLogonTime attribute.
        Parameters:
        previousLogonTime - The value for previousLogonTime (can be null)
        Returns:
        this builder for use in a chained invocation
      • lastLogonTime

        public final ImmutableUaaUser.Builder lastLogonTime​(Long lastLogonTime)
        Initializes the value for the lastLogonTime attribute.
        Parameters:
        lastLogonTime - The value for lastLogonTime (can be null)
        Returns:
        this builder for use in a chained invocation