Class SlackTeamLite
java.lang.Object
com.hubspot.slack.client.models.teams.SlackTeamLite
- All Implemented Interfaces:
SlackTeamLiteIF
@Generated(from="SlackTeamLiteIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackTeamLite
extends Object
implements SlackTeamLiteIF
Immutable implementation of
SlackTeamLiteIF.
Use the builder to create immutable instances:
SlackTeamLite.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SlackTeamLite.Builderbuilder()Creates a builder forSlackTeamLite.static SlackTeamLitecopyOf(SlackTeamLiteIF instance) Creates an immutable copy of aSlackTeamLiteIFvalue.booleanThis instance is equal to all instances ofSlackTeamLitethat have equal attribute values.getId()getName()inthashCode()Computes a hash code from attributes:id,name.toString()Prints the immutable valueSlackTeamLitewith attribute values.final SlackTeamLiteCopy the current immutable object by setting a value for theidattribute.final SlackTeamLiteCopy the current immutable object by setting a value for thenameattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceSlackTeamLiteIF- Returns:
- The value of the
idattribute
-
getName
- Specified by:
getNamein interfaceSlackTeamLiteIF- Returns:
- The value of the
nameattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy or the
thisobject
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSlackTeamLitethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,name. -
toString
Prints the immutable valueSlackTeamLitewith attribute values. -
copyOf
Creates an immutable copy of aSlackTeamLiteIFvalue. 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 SlackTeamLite instance
-
builder
Creates a builder forSlackTeamLite.SlackTeamLite.builder() .setId(String) // requiredid.setName(String) // requiredname.build();- Returns:
- A new SlackTeamLite builder
-