Class ImmutableUaaUser.Approval.Builder

  • Enclosing class:
    ImmutableUaaUser.Approval

    @NotThreadSafe
    public static final class ImmutableUaaUser.Approval.Builder
    extends Object
    Builds instances of type Approval. 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.Approval.Builder from​(UaaUser.Approval instance)
        Fill a builder with attribute values from the provided Approval instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • userId

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

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

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

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