@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AuthTestResponseIF"}) @Immutable public final class AuthTestResponse extends Object implements AuthTestResponseIF
AuthTestResponseIF.
Use the builder to create immutable instances:
AuthTestResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthTestResponse.Builder
Builds instances of type
AuthTestResponse. |
| Modifier and Type | Method and Description |
|---|---|
static AuthTestResponse.Builder |
builder()
Creates a builder for
AuthTestResponse. |
static AuthTestResponse |
copyOf(AuthTestResponseIF instance)
Creates an immutable copy of a
AuthTestResponseIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
AuthTestResponse that have equal attribute values. |
Optional<ResponseMetadata> |
getResponseMetadata() |
String |
getTeam() |
String |
getTeamId() |
String |
getUrl() |
Optional<String> |
getUser() |
Optional<String> |
getUserId() |
int |
hashCode()
Computes a hash code from attributes:
url, team, teamId, user, userId, ok, responseMetadata. |
boolean |
isOk() |
String |
toString()
Prints the immutable value
AuthTestResponse with attribute values. |
AuthTestResponse |
withOk(boolean ok)
Copy the current immutable object by setting a value for the
ok attribute. |
AuthTestResponse |
withResponseMetadata(Optional<ResponseMetadata> optional)
Copy the current immutable object by setting an optional value for the
responseMetadata attribute. |
AuthTestResponse |
withResponseMetadata(ResponseMetadata value)
Copy the current immutable object by setting a present value for the optional
responseMetadata attribute. |
AuthTestResponse |
withTeam(String team)
Copy the current immutable object by setting a value for the
team attribute. |
AuthTestResponse |
withTeamId(String teamId)
Copy the current immutable object by setting a value for the
teamId attribute. |
AuthTestResponse |
withUrl(String url)
Copy the current immutable object by setting a value for the
url attribute. |
AuthTestResponse |
withUser(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
user attribute. |
AuthTestResponse |
withUser(String value)
Copy the current immutable object by setting a present value for the optional
user attribute. |
AuthTestResponse |
withUserId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
userId attribute. |
AuthTestResponse |
withUserId(String value)
Copy the current immutable object by setting a present value for the optional
userId attribute. |
public String getUrl()
getUrl in interface AuthTestResponseIFurl attributepublic String getTeam()
getTeam in interface AuthTestResponseIFteam attributepublic String getTeamId()
getTeamId in interface AuthTestResponseIFteamId attributepublic Optional<String> getUser()
getUser in interface AuthTestResponseIFuser attributepublic Optional<String> getUserId()
getUserId in interface AuthTestResponseIFuserId attributepublic boolean isOk()
isOk in interface SlackResponseok attributepublic Optional<ResponseMetadata> getResponseMetadata()
getResponseMetadata in interface SlackResponseresponseMetadata attributepublic final AuthTestResponse withUrl(String url)
url attribute.
An equals check used to prevent copying of the same value by returning this.url - A new value for urlthis objectpublic final AuthTestResponse withTeam(String team)
team attribute.
An equals check used to prevent copying of the same value by returning this.team - A new value for teamthis objectpublic final AuthTestResponse withTeamId(String teamId)
teamId attribute.
An equals check used to prevent copying of the same value by returning this.teamId - A new value for teamIdthis objectpublic final AuthTestResponse withUser(@Nullable String value)
user attribute.value - The value for user, null is accepted as java.util.Optional.empty()this objectpublic final AuthTestResponse withUser(Optional<String> optional)
user attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for userthis objectpublic final AuthTestResponse withUserId(@Nullable String value)
userId attribute.value - The value for userId, null is accepted as java.util.Optional.empty()this objectpublic final AuthTestResponse withUserId(Optional<String> optional)
userId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for userIdthis objectpublic final AuthTestResponse withOk(boolean ok)
ok attribute.
A value equality check is used to prevent copying of the same value by returning this.ok - A new value for okthis objectpublic final AuthTestResponse withResponseMetadata(@Nullable ResponseMetadata value)
responseMetadata attribute.value - The value for responseMetadata, null is accepted as java.util.Optional.empty()this objectpublic final AuthTestResponse withResponseMetadata(Optional<ResponseMetadata> optional)
responseMetadata attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for responseMetadatathis objectpublic boolean equals(@Nullable Object another)
AuthTestResponse that have equal attribute values.public int hashCode()
url, team, teamId, user, userId, ok, responseMetadata.public String toString()
AuthTestResponse with attribute values.public static AuthTestResponse copyOf(AuthTestResponseIF instance)
AuthTestResponseIF 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 AuthTestResponse.Builder builder()
AuthTestResponse.Copyright © 2019. All rights reserved.