Package com.hubspot.slack.client.models
Class ChannelMetadata
java.lang.Object
com.hubspot.slack.client.models.ChannelMetadata
- All Implemented Interfaces:
ChannelMetadataIF
@Generated(from="ChannelMetadataIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChannelMetadata
extends Object
implements ChannelMetadataIF
Immutable implementation of
ChannelMetadataIF.
Use the builder to create immutable instances:
ChannelMetadata.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelMetadata.Builderbuilder()Creates a builder forChannelMetadata.static ChannelMetadatacopyOf(ChannelMetadataIF instance) Creates an immutable copy of aChannelMetadataIFvalue.booleanThis instance is equal to all instances ofChannelMetadatathat have equal attribute values.longgetValue()inthashCode()Computes a hash code from attributes:value,creatorId,lastSetEpochSeconds.toString()Prints the immutable valueChannelMetadatawith attribute values.final ChannelMetadatawithCreatorId(String value) Copy the current immutable object by setting a value for thecreatorIdattribute.final ChannelMetadatawithLastSetEpochSeconds(long value) Copy the current immutable object by setting a value for thelastSetEpochSecondsattribute.final ChannelMetadataCopy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
getValue
- Specified by:
getValuein interfaceChannelMetadataIF- Returns:
- The value of the
valueattribute
-
getCreatorId
- Specified by:
getCreatorIdin interfaceChannelMetadataIF- Returns:
- The value of the
creatorIdattribute
-
getLastSetEpochSeconds
public long getLastSetEpochSeconds()- Specified by:
getLastSetEpochSecondsin interfaceChannelMetadataIF- Returns:
- The value of the
lastSetEpochSecondsattribute
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy or the
thisobject
-
withCreatorId
Copy the current immutable object by setting a value for thecreatorIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for creatorId- Returns:
- A modified copy or the
thisobject
-
withLastSetEpochSeconds
Copy the current immutable object by setting a value for thelastSetEpochSecondsattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for lastSetEpochSeconds- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofChannelMetadatathat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:value,creatorId,lastSetEpochSeconds. -
toString
Prints the immutable valueChannelMetadatawith attribute values. -
copyOf
Creates an immutable copy of aChannelMetadataIFvalue. 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 ChannelMetadata instance
-
builder
Creates a builder forChannelMetadata.ChannelMetadata.builder() .setValue(String) // requiredvalue.setCreatorId(String) // requiredcreatorId.setLastSetEpochSeconds(long) // requiredlastSetEpochSeconds.build();- Returns:
- A new ChannelMetadata builder
-