Class ImmutableUaaUser.Approval

    • Method Detail

      • withUserId

        public final ImmutableUaaUser.Approval withUserId​(String value)
        Copy the current immutable object by setting a value for the userId attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for userId (can be null)
        Returns:
        A modified copy of the this object
      • withClientId

        public final ImmutableUaaUser.Approval withClientId​(String value)
        Copy the current immutable object by setting a value for the clientId attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for clientId (can be null)
        Returns:
        A modified copy of the this object
      • withScope

        public final ImmutableUaaUser.Approval withScope​(String value)
        Copy the current immutable object by setting a value for the scope attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for scope (can be null)
        Returns:
        A modified copy of the this object
      • withStatus

        public final ImmutableUaaUser.Approval withStatus​(String value)
        Copy the current immutable object by setting a value for the status attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for status (can be null)
        Returns:
        A modified copy of the this object
      • withLastUpdatedAt

        public final ImmutableUaaUser.Approval withLastUpdatedAt​(OffsetDateTime value)
        Copy the current immutable object by setting a value for the lastUpdatedAt attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for lastUpdatedAt (can be null)
        Returns:
        A modified copy of the this object
      • withExpiresAt

        public final ImmutableUaaUser.Approval withExpiresAt​(OffsetDateTime value)
        Copy the current immutable object by setting a value for the expiresAt attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for expiresAt (can be null)
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of Approval that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: userId, clientId, scope, status, lastUpdatedAt, expiresAt.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value Approval with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableUaaUser.Approval copyOf​(UaaUser.Approval instance)
        Creates an immutable copy of a UaaUser.Approval value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable Approval instance
      • builder

        public static ImmutableUaaUser.Approval.Builder builder()
        Creates a builder for Approval.
         ImmutableUaaUser.Approval.builder()
            .userId(String | null) // nullable userId
            .clientId(String | null) // nullable clientId
            .scope(String | null) // nullable scope
            .status(String | null) // nullable status
            .lastUpdatedAt(java.time.OffsetDateTime | null) // nullable lastUpdatedAt
            .expiresAt(java.time.OffsetDateTime | null) // nullable expiresAt
            .build();
         
        Returns:
        A new Approval builder