Class AuthTestResponse
java.lang.Object
com.hubspot.slack.client.models.response.auth.AuthTestResponse
- All Implemented Interfaces:
AuthTestResponseIF,SlackResponse
@Generated(from="AuthTestResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class AuthTestResponse
extends Object
implements AuthTestResponseIF
Immutable implementation of
AuthTestResponseIF.
Use the builder to create immutable instances:
AuthTestResponse.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthTestResponse.Builderbuilder()Creates a builder forAuthTestResponse.static AuthTestResponsecopyOf(AuthTestResponseIF instance) Creates an immutable copy of aAuthTestResponseIFvalue.booleanThis instance is equal to all instances ofAuthTestResponsethat have equal attribute values.getTeam()getUrl()getUser()inthashCode()Computes a hash code from attributes:ok,responseMetadata,url,team,teamId,user,userId.booleanisOk()toString()Prints the immutable valueAuthTestResponsewith attribute values.final AuthTestResponsewithOk(boolean value) Copy the current immutable object by setting a value for theokattribute.final AuthTestResponseCopy the current immutable object by setting a present value for the optionalresponseMetadataattribute.final AuthTestResponsewithResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute.final AuthTestResponseCopy the current immutable object by setting a value for theteamattribute.final AuthTestResponsewithTeamId(String value) Copy the current immutable object by setting a value for theteamIdattribute.final AuthTestResponseCopy the current immutable object by setting a value for theurlattribute.final AuthTestResponseCopy the current immutable object by setting a present value for the optionaluserattribute.final AuthTestResponseCopy the current immutable object by setting an optional value for theuserattribute.final AuthTestResponsewithUserId(String value) Copy the current immutable object by setting a present value for the optionaluserIdattribute.final AuthTestResponsewithUserId(Optional<String> optional) Copy the current immutable object by setting an optional value for theuserIdattribute.
-
Method Details
-
isOk
public boolean isOk()- Specified by:
isOkin interfaceSlackResponse- Returns:
- The value of the
okattribute
-
getResponseMetadata
- Specified by:
getResponseMetadatain interfaceSlackResponse- Returns:
- The value of the
responseMetadataattribute
-
getUrl
- Specified by:
getUrlin interfaceAuthTestResponseIF- Returns:
- The value of the
urlattribute
-
getTeam
- Specified by:
getTeamin interfaceAuthTestResponseIF- Returns:
- The value of the
teamattribute
-
getTeamId
- Specified by:
getTeamIdin interfaceAuthTestResponseIF- Returns:
- The value of the
teamIdattribute
-
getUser
- Specified by:
getUserin interfaceAuthTestResponseIF- Returns:
- The value of the
userattribute
-
getUserId
- Specified by:
getUserIdin interfaceAuthTestResponseIF- Returns:
- The value of the
userIdattribute
-
withOk
Copy the current immutable object by setting a value for theokattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ok- Returns:
- A modified copy or the
thisobject
-
withResponseMetadata
Copy the current immutable object by setting a present value for the optionalresponseMetadataattribute.- Parameters:
value- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withResponseMetadata
Copy the current immutable object by setting an optional value for theresponseMetadataattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for responseMetadata- Returns:
- A modified copy or
thisif not changed
-
withUrl
Copy the current immutable object by setting a value for theurlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for url- Returns:
- A modified copy or the
thisobject
-
withTeam
Copy the current immutable object by setting a value for theteamattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for team- Returns:
- A modified copy or the
thisobject
-
withTeamId
Copy the current immutable object by setting a value for theteamIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for teamId- Returns:
- A modified copy or the
thisobject
-
withUser
Copy the current immutable object by setting a present value for the optionaluserattribute.- Parameters:
value- The value for user,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUser
Copy the current immutable object by setting an optional value for theuserattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for user- Returns:
- A modified copy or
thisif not changed
-
withUserId
Copy the current immutable object by setting a present value for the optionaluserIdattribute.- Parameters:
value- The value for userId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUserId
Copy the current immutable object by setting an optional value for theuserIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for userId- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofAuthTestResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,url,team,teamId,user,userId. -
toString
Prints the immutable valueAuthTestResponsewith attribute values. -
copyOf
Creates an immutable copy of aAuthTestResponseIFvalue. 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 AuthTestResponse instance
-
builder
Creates a builder forAuthTestResponse.AuthTestResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setUrl(String) // requiredurl.setTeam(String) // requiredteam.setTeamId(String) // requiredteamId.setUser(Optional<String>) // optionaluser.setUserId(Optional<String>) // optionaluserId.build();- Returns:
- A new AuthTestResponse builder
-