Class ImChannel
java.lang.Object
com.hubspot.slack.client.models.channel.ImChannel
- All Implemented Interfaces:
ImChannelIF
@Generated(from="ImChannelIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImChannel
extends Object
implements ImChannelIF
Immutable implementation of
ImChannelIF.
Use the builder to create immutable instances:
ImChannel.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImChannel.Builderbuilder()Creates a builder forImChannel.static ImChannelcopyOf(ImChannelIF instance) Creates an immutable copy of aImChannelIFvalue.booleanThis instance is equal to all instances ofImChannelthat have equal attribute values.intgetId()booleangetIsIm()booleanbooleangetUser()inthashCode()Computes a hash code from attributes:id,created,isIm,isOrgShared,user,isOpen.toString()Prints the immutable valueImChannelwith attribute values.final ImChannelwithCreated(int value) Copy the current immutable object by setting a value for thecreatedattribute.final ImChannelCopy the current immutable object by setting a value for theidattribute.final ImChannelwithIsIm(boolean value) Copy the current immutable object by setting a value for theisImattribute.final ImChannelwithIsOpen(boolean value) Copy the current immutable object by setting a value for theisOpenattribute.final ImChannelwithIsOrgShared(boolean value) Copy the current immutable object by setting a value for theisOrgSharedattribute.final ImChannelCopy the current immutable object by setting a value for theuserattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceImChannelIF- Returns:
- The value of the
idattribute
-
getCreated
public int getCreated()- Specified by:
getCreatedin interfaceImChannelIF- Returns:
- The value of the
createdattribute
-
getIsIm
public boolean getIsIm()- Specified by:
getIsImin interfaceImChannelIF- Returns:
- The value of the
isImattribute
-
getUser
- Specified by:
getUserin interfaceImChannelIF- Returns:
- The value of the
userattribute
-
getIsOpen
public boolean getIsOpen()- Specified by:
getIsOpenin interfaceImChannelIF- Returns:
- The value of the
isOpenattribute
-
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
-
withCreated
Copy the current immutable object by setting a value for thecreatedattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for created- Returns:
- A modified copy or the
thisobject
-
withIsIm
Copy the current immutable object by setting a value for theisImattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isIm- Returns:
- A modified copy or the
thisobject
-
withUser
Copy the current immutable object by setting a value for theuserattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for user- Returns:
- A modified copy or the
thisobject
-
withIsOpen
Copy the current immutable object by setting a value for theisOpenattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isOpen- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImChannelthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,created,isIm,isOrgShared,user,isOpen. -
toString
Prints the immutable valueImChannelwith attribute values. -
copyOf
Creates an immutable copy of aImChannelIFvalue. 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 ImChannel instance
-
builder
Creates a builder forImChannel.ImChannel.builder() .setId(String) // requiredid.setCreated(int) // requiredcreated.setIsIm(boolean) // requiredisIm.setIsOrgShared(boolean) // requiredisOrgShared.setUser(String) // requireduser.setIsOpen(boolean) // requiredisOpen.build();- Returns:
- A new ImChannel builder
-