@Generated(value={"Immutables.generator","LoginResponse"}) public final class ImmutableLoginResponse extends Object implements LoginResponse
LoginResponse.
Use the builder to create immutable instances:
ImmutableLoginResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableLoginResponse.Builder
Builds instances of type
ImmutableLoginResponse. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableLoginResponse.Builder |
builder()
Creates a builder for
ImmutableLoginResponse. |
static ImmutableLoginResponse |
copyOf(LoginResponse instance)
Creates an immutable copy of a
LoginResponse value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableLoginResponse that have equal attribute values. |
boolean |
getAgbAgreed() |
Optional<String> |
getErrormessage()
Error message set by FFB.
|
String |
getFirstname()
The customers first name.
|
String |
getLastname()
The customers last name.
|
String |
getUsername()
The name of the user.
|
String |
getUsertype()
The type of the user.
|
int |
hashCode()
Computes a hash code from attributes:
isLoggedIn, username, firstname, lastname, usertype, errormessage, agbAgreed. |
boolean |
isLoggedIn() |
String |
toString()
Prints the immutable value
LoginResponse with attribute values. |
ImmutableLoginResponse |
withAgbAgreed(boolean value)
Copy the current immutable object by setting a value for the
agbAgreed attribute. |
ImmutableLoginResponse |
withErrormessage(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
errormessage attribute. |
ImmutableLoginResponse |
withErrormessage(String value)
Copy the current immutable object by setting a present value for the optional
errormessage attribute. |
ImmutableLoginResponse |
withFirstname(String value)
Copy the current immutable object by setting a value for the
firstname attribute. |
ImmutableLoginResponse |
withIsLoggedIn(boolean value)
Copy the current immutable object by setting a value for the
isLoggedIn attribute. |
ImmutableLoginResponse |
withLastname(String value)
Copy the current immutable object by setting a value for the
lastname attribute. |
ImmutableLoginResponse |
withUsername(String value)
Copy the current immutable object by setting a value for the
username attribute. |
ImmutableLoginResponse |
withUsertype(String value)
Copy the current immutable object by setting a value for the
usertype attribute. |
public boolean isLoggedIn()
isLoggedIn in interface LoginResponseisLoggedIn attributepublic String getUsername()
getUsername in interface LoginResponsepublic String getFirstname()
getFirstname in interface LoginResponsepublic String getLastname()
getLastname in interface LoginResponsepublic String getUsertype()
Known values:
getUsertype in interface LoginResponsepublic Optional<String> getErrormessage()
getErrormessage in interface LoginResponsepublic boolean getAgbAgreed()
getAgbAgreed in interface LoginResponseagbAgreed attributepublic final ImmutableLoginResponse withIsLoggedIn(boolean value)
isLoggedIn attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isLoggedInthis objectpublic final ImmutableLoginResponse withUsername(String value)
username attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for usernamethis objectpublic final ImmutableLoginResponse withFirstname(String value)
firstname attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for firstnamethis objectpublic final ImmutableLoginResponse withLastname(String value)
lastname attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for lastnamethis objectpublic final ImmutableLoginResponse withUsertype(String value)
usertype attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for usertypethis objectpublic final ImmutableLoginResponse withErrormessage(String value)
errormessage attribute.value - The value for errormessagethis objectpublic final ImmutableLoginResponse withErrormessage(Optional<String> optional)
errormessage attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for errormessagethis objectpublic final ImmutableLoginResponse withAgbAgreed(boolean value)
agbAgreed attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for agbAgreedthis objectpublic boolean equals(Object another)
ImmutableLoginResponse that have equal attribute values.public int hashCode()
isLoggedIn, username, firstname, lastname, usertype, errormessage, agbAgreed.public String toString()
LoginResponse with attribute values.public static ImmutableLoginResponse copyOf(LoginResponse instance)
LoginResponse value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableLoginResponse.Builder builder()
ImmutableLoginResponse.builder in interface LoginResponseCopyright © 2018. All rights reserved.