Class TeamInfoResponse
java.lang.Object
com.hubspot.slack.client.models.response.team.TeamInfoResponse
- All Implemented Interfaces:
SlackResponse,TeamInfoResponseIF
@Generated(from="TeamInfoResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class TeamInfoResponse
extends Object
implements TeamInfoResponseIF
Immutable implementation of
TeamInfoResponseIF.
Use the builder to create immutable instances:
TeamInfoResponse.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TeamInfoResponse.Builderbuilder()Creates a builder forTeamInfoResponse.static TeamInfoResponsecopyOf(TeamInfoResponseIF instance) Creates an immutable copy of aTeamInfoResponseIFvalue.booleanThis instance is equal to all instances ofTeamInfoResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:ok,responseMetadata,slackTeam.booleanisOk()toString()Prints the immutable valueTeamInfoResponsewith attribute values.final TeamInfoResponsewithOk(boolean value) Copy the current immutable object by setting a value for theokattribute.final TeamInfoResponseCopy the current immutable object by setting a present value for the optionalresponseMetadataattribute.final TeamInfoResponsewithResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute.final TeamInfoResponsewithSlackTeam(SlackTeam value) Copy the current immutable object by setting a value for theslackTeamattribute.
-
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
-
getSlackTeam
- Specified by:
getSlackTeamin interfaceTeamInfoResponseIF- Returns:
- The value of the
slackTeamattribute
-
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
-
withSlackTeam
Copy the current immutable object by setting a value for theslackTeamattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for slackTeam- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofTeamInfoResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,slackTeam. -
toString
Prints the immutable valueTeamInfoResponsewith attribute values. -
copyOf
Creates an immutable copy of aTeamInfoResponseIFvalue. 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 TeamInfoResponse instance
-
builder
Creates a builder forTeamInfoResponse.TeamInfoResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setSlackTeam(com.hubspot.slack.client.models.teams.SlackTeam) // requiredslackTeam.build();- Returns:
- A new TeamInfoResponse builder
-