Class SlackTeam
java.lang.Object
com.hubspot.slack.client.models.teams.SlackTeam
- All Implemented Interfaces:
SlackTeamIF
@Generated(from="SlackTeamIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackTeam
extends Object
implements SlackTeamIF
Immutable implementation of
SlackTeamIF.
Use the builder to create immutable instances:
SlackTeam.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SlackTeam.Builderbuilder()Creates a builder forSlackTeam.static SlackTeamcopyOf(SlackTeamIF instance) Creates an immutable copy of aSlackTeamIFvalue.booleanThis instance is equal to all instances ofSlackTeamthat have equal attribute values.getIcon()getId()getName()inthashCode()Computes a hash code from attributes:id,domain,name,enterpriseId,enterpriseName,icon.toString()Prints the immutable valueSlackTeamwith attribute values.final SlackTeamwithDomain(String value) Copy the current immutable object by setting a value for thedomainattribute.final SlackTeamwithEnterpriseId(String value) Copy the current immutable object by setting a present value for the optionalenterpriseIdattribute.final SlackTeamwithEnterpriseId(Optional<String> optional) Copy the current immutable object by setting an optional value for theenterpriseIdattribute.final SlackTeamwithEnterpriseName(String value) Copy the current immutable object by setting a present value for the optionalenterpriseNameattribute.final SlackTeamwithEnterpriseName(Optional<String> optional) Copy the current immutable object by setting an optional value for theenterpriseNameattribute.final SlackTeamwithIcon(SlackTeamIcon value) Copy the current immutable object by setting a present value for the optionaliconattribute.final SlackTeamwithIcon(Optional<? extends SlackTeamIcon> optional) Copy the current immutable object by setting an optional value for theiconattribute.final SlackTeamCopy the current immutable object by setting a value for theidattribute.final SlackTeamCopy the current immutable object by setting a present value for the optionalnameattribute.final SlackTeamCopy the current immutable object by setting an optional value for thenameattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceSlackTeamIF- Returns:
- The value of the
idattribute
-
getDomain
- Specified by:
getDomainin interfaceSlackTeamIF- Returns:
- The value of the
domainattribute
-
getName
- Specified by:
getNamein interfaceSlackTeamIF- Returns:
- The value of the
nameattribute
-
getEnterpriseId
- Specified by:
getEnterpriseIdin interfaceSlackTeamIF- Returns:
- The value of the
enterpriseIdattribute
-
getEnterpriseName
- Specified by:
getEnterpriseNamein interfaceSlackTeamIF- Returns:
- The value of the
enterpriseNameattribute
-
getIcon
- Specified by:
getIconin interfaceSlackTeamIF- Returns:
- The value of the
iconattribute
-
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
-
withDomain
Copy the current immutable object by setting a value for thedomainattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for domain- Returns:
- A modified copy or the
thisobject
-
withName
Copy the current immutable object by setting a present value for the optionalnameattribute.- Parameters:
value- The value for name,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withName
Copy the current immutable object by setting an optional value for thenameattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for name- Returns:
- A modified copy or
thisif not changed
-
withEnterpriseId
Copy the current immutable object by setting a present value for the optionalenterpriseIdattribute.- Parameters:
value- The value for enterpriseId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withEnterpriseId
Copy the current immutable object by setting an optional value for theenterpriseIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for enterpriseId- Returns:
- A modified copy or
thisif not changed
-
withEnterpriseName
Copy the current immutable object by setting a present value for the optionalenterpriseNameattribute.- Parameters:
value- The value for enterpriseName,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withEnterpriseName
Copy the current immutable object by setting an optional value for theenterpriseNameattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for enterpriseName- Returns:
- A modified copy or
thisif not changed
-
withIcon
Copy the current immutable object by setting a present value for the optionaliconattribute.- Parameters:
value- The value for icon,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIcon
Copy the current immutable object by setting an optional value for theiconattribute. 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 icon- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofSlackTeamthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,domain,name,enterpriseId,enterpriseName,icon. -
toString
Prints the immutable valueSlackTeamwith attribute values. -
copyOf
Creates an immutable copy of aSlackTeamIFvalue. 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 SlackTeam instance
-
builder
Creates a builder forSlackTeam.SlackTeam.builder() .setId(String) // requiredid.setDomain(String) // requireddomain.setName(Optional<String>) // optionalname.setEnterpriseId(Optional<String>) // optionalenterpriseId.setEnterpriseName(Optional<String>) // optionalenterpriseName.setIcon(Optional<SlackTeamIcon>) // optionalicon.build();- Returns:
- A new SlackTeam builder
-