Class SlackEventSkeleton
java.lang.Object
com.hubspot.slack.client.models.events.SlackEventSkeleton
- All Implemented Interfaces:
SlackEvent,SlackEventSkeletonIF
@Generated(from="SlackEventSkeletonIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackEventSkeleton
extends Object
implements SlackEventSkeletonIF
Immutable implementation of
SlackEventSkeletonIF.
Use the builder to create immutable instances:
SlackEventSkeleton.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SlackEventSkeleton.Builderbuilder()Creates a builder forSlackEventSkeleton.static SlackEventSkeletoncopyOf(SlackEventSkeletonIF instance) Creates an immutable copy of aSlackEventSkeletonIFvalue.booleanThis instance is equal to all instances ofSlackEventSkeletonthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,channelMaybe.toString()Prints the immutable valueSlackEventSkeletonwith attribute values.final SlackEventSkeletonwithChannelMaybe(String value) Copy the current immutable object by setting a present value for the optionalchannelMaybeattribute.final SlackEventSkeletonwithChannelMaybe(Optional<String> optional) Copy the current immutable object by setting an optional value for thechannelMaybeattribute.final SlackEventSkeletonwithType(SlackEventType value) Copy the current immutable object by setting a value for thetypeattribute.Methods inherited from interface com.hubspot.slack.client.models.events.SlackEventSkeletonIF
getTs
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackEvent- Returns:
- The value of the
typeattribute
-
getChannelMaybe
- Specified by:
getChannelMaybein interfaceSlackEventSkeletonIF- Returns:
- The value of the
channelMaybeattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withChannelMaybe
Copy the current immutable object by setting a present value for the optionalchannelMaybeattribute.- Parameters:
value- The value for channelMaybe,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withChannelMaybe
Copy the current immutable object by setting an optional value for thechannelMaybeattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for channelMaybe- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofSlackEventSkeletonthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,channelMaybe. -
toString
Prints the immutable valueSlackEventSkeletonwith attribute values. -
copyOf
Creates an immutable copy of aSlackEventSkeletonIFvalue. 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 SlackEventSkeleton instance
-
builder
Creates a builder forSlackEventSkeleton.SlackEventSkeleton.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setChannelMaybe(Optional<String>) // optionalchannelMaybe.build();- Returns:
- A new SlackEventSkeleton builder
-