Class SlackTeamIcon
java.lang.Object
com.hubspot.slack.client.models.teams.SlackTeamIcon
- All Implemented Interfaces:
SlackTeamIconIF
@Generated(from="SlackTeamIconIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackTeamIcon
extends Object
implements SlackTeamIconIF
Immutable implementation of
SlackTeamIconIF.
Use the builder to create immutable instances:
SlackTeamIcon.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SlackTeamIcon.Builderbuilder()Creates a builder forSlackTeamIcon.static SlackTeamIconcopyOf(SlackTeamIconIF instance) Creates an immutable copy of aSlackTeamIconIFvalue.booleanThis instance is equal to all instances ofSlackTeamIconthat have equal attribute values.Deprecated.inthashCode()Computes a hash code from attributes:image88,imageOriginal.toString()Prints the immutable valueSlackTeamIconwith attribute values.final SlackTeamIconwithImage88(String value) Copy the current immutable object by setting a present value for the optionalimage88attribute.final SlackTeamIconwithImage88(Optional<String> optional) Copy the current immutable object by setting an optional value for theimage88attribute.final SlackTeamIconwithImageOriginal(String value) Deprecated.final SlackTeamIconwithImageOriginal(Optional<String> optional) Deprecated.
-
Method Details
-
getImage88
- Specified by:
getImage88in interfaceSlackTeamIconIF- Returns:
- The value of the
image88attribute
-
getImageOriginal
Deprecated.- Specified by:
getImageOriginalin interfaceSlackTeamIconIF- Returns:
- The value of the
imageOriginalattribute
-
withImage88
Copy the current immutable object by setting a present value for the optionalimage88attribute.- Parameters:
value- The value for image88,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withImage88
Copy the current immutable object by setting an optional value for theimage88attribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for image88- Returns:
- A modified copy or
thisif not changed
-
withImageOriginal
Deprecated.Copy the current immutable object by setting a present value for the optionalimageOriginalattribute.- Parameters:
value- The value for imageOriginal,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withImageOriginal
Deprecated.Copy the current immutable object by setting an optional value for theimageOriginalattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for imageOriginal- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofSlackTeamIconthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:image88,imageOriginal. -
toString
Prints the immutable valueSlackTeamIconwith attribute values. -
copyOf
Creates an immutable copy of aSlackTeamIconIFvalue. 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 SlackTeamIcon instance
-
builder
Creates a builder forSlackTeamIcon.SlackTeamIcon.builder() .setImage88(Optional<String>) // optionalimage88.setImageOriginal(Optional<String>) // optionalimageOriginal.build();- Returns:
- A new SlackTeamIcon builder
-