Class StreamMetadata
java.lang.Object
com.hubspot.slack.client.methods.params.stream.StreamMetadata
- All Implemented Interfaces:
StreamMetadataIF
@Generated(from="StreamMetadataIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class StreamMetadata
extends Object
implements StreamMetadataIF
Immutable implementation of
StreamMetadataIF.
Use the builder to create immutable instances:
StreamMetadata.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamMetadata.Builderbuilder()Creates a builder forStreamMetadata.static StreamMetadatacopyOf(StreamMetadataIF instance) Creates an immutable copy of aStreamMetadataIFvalue.booleanThis instance is equal to all instances ofStreamMetadatathat have equal attribute values.inthashCode()Computes a hash code from attributes:eventType,eventPayload.toString()Prints the immutable valueStreamMetadatawith attribute values.final StreamMetadatawithEventPayload(Map<String, ? extends Object> entries) Copy the current immutable object by replacing theeventPayloadmap with the specified map.final StreamMetadatawithEventType(String value) Copy the current immutable object by setting a value for theeventTypeattribute.
-
Method Details
-
getEventType
- Specified by:
getEventTypein interfaceStreamMetadataIF- Returns:
- The value of the
eventTypeattribute
-
getEventPayload
- Specified by:
getEventPayloadin interfaceStreamMetadataIF- Returns:
- The value of the
eventPayloadattribute
-
withEventType
Copy the current immutable object by setting a value for theeventTypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for eventType- Returns:
- A modified copy or the
thisobject
-
withEventPayload
Copy the current immutable object by replacing theeventPayloadmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to replace the eventPayload map- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofStreamMetadatathat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:eventType,eventPayload. -
toString
Prints the immutable valueStreamMetadatawith attribute values. -
copyOf
Creates an immutable copy of aStreamMetadataIFvalue. 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 StreamMetadata instance
-
builder
Creates a builder forStreamMetadata.StreamMetadata.builder() .setEventType(String) // requiredeventType.putEventPayload|putAllEventPayload(String => Object) //eventPayloadmappings .build();- Returns:
- A new StreamMetadata builder
-