Class Metadata
java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.Metadata
- All Implemented Interfaces:
MetadataIF
@Generated(from="MetadataIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class Metadata
extends Object
implements MetadataIF
Immutable implementation of
MetadataIF.
Use the builder to create immutable instances:
Metadata.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Metadata.Builderbuilder()Creates a builder forMetadata.static MetadatacopyOf(MetadataIF instance) Creates an immutable copy of aMetadataIFvalue.booleanThis instance is equal to all instances ofMetadatathat have equal attribute values.inthashCode()Computes a hash code from attributes:entities.toString()Prints the immutable valueMetadatawith attribute values.final MetadatawithEntities(WorkObject... elements) Copy the current immutable object with elements that replace the content ofentities.final MetadatawithEntities(Iterable<? extends WorkObject> elements) Copy the current immutable object with elements that replace the content ofentities.
-
Method Details
-
getEntities
- Specified by:
getEntitiesin interfaceMetadataIF- Returns:
- The value of the
entitiesattribute
-
withEntities
Copy the current immutable object with elements that replace the content ofentities.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withEntities
Copy the current immutable object with elements that replace the content ofentities. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of entities elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofMetadatathat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:entities. -
toString
Prints the immutable valueMetadatawith attribute values. -
copyOf
Creates an immutable copy of aMetadataIFvalue. 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 Metadata instance
-
builder
Creates a builder forMetadata.Metadata.builder() .addEntities|addAllEntities(WorkObject) //entitieselements .build();- Returns:
- A new Metadata builder
-