Class EntityDetailContainer
java.lang.Object
com.hubspot.slack.client.models.interaction.EntityDetailContainer
- All Implemented Interfaces:
Container,EntityDetailContainerIF
@Generated(from="EntityDetailContainerIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class EntityDetailContainer
extends Object
implements EntityDetailContainerIF
Immutable implementation of
EntityDetailContainerIF.
Use the builder to create immutable instances:
EntityDetailContainer.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeEntityDetailContainer. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forEntityDetailContainer.static EntityDetailContainercopyOf(EntityDetailContainerIF instance) Creates an immutable copy of aEntityDetailContainerIFvalue.booleanThis instance is equal to all instances ofEntityDetailContainerthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,messageTs,channelId,externalRef,entityUrl,appUnfurlUrl.toString()Prints the immutable valueEntityDetailContainerwith attribute values.final EntityDetailContainerwithAppUnfurlUrl(String value) Copy the current immutable object by setting a present value for the optionalappUnfurlUrlattribute.final EntityDetailContainerwithAppUnfurlUrl(Optional<String> optional) Copy the current immutable object by setting an optional value for theappUnfurlUrlattribute.final EntityDetailContainerwithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final EntityDetailContainerwithEntityUrl(String value) Copy the current immutable object by setting a present value for the optionalentityUrlattribute.final EntityDetailContainerwithEntityUrl(Optional<String> optional) Copy the current immutable object by setting an optional value for theentityUrlattribute.final EntityDetailContainerwithExternalRef(ExternalRef value) Copy the current immutable object by setting a present value for the optionalexternalRefattribute.final EntityDetailContainerwithExternalRef(Optional<? extends ExternalRef> optional) Copy the current immutable object by setting an optional value for theexternalRefattribute.final EntityDetailContainerwithMessageTs(String value) Copy the current immutable object by setting a value for themessageTsattribute.final EntityDetailContainerwithType(ContainerType value) Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
getType
-
getMessageTs
- Specified by:
getMessageTsin interfaceEntityDetailContainerIF- Returns:
- The value of the
messageTsattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceEntityDetailContainerIF- Returns:
- The value of the
channelIdattribute
-
getExternalRef
- Specified by:
getExternalRefin interfaceEntityDetailContainerIF- Returns:
- The value of the
externalRefattribute
-
getEntityUrl
- Specified by:
getEntityUrlin interfaceEntityDetailContainerIF- Returns:
- The value of the
entityUrlattribute
-
getAppUnfurlUrl
- Specified by:
getAppUnfurlUrlin interfaceEntityDetailContainerIF- Returns:
- The value of the
appUnfurlUrlattribute
-
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
-
withMessageTs
Copy the current immutable object by setting a value for themessageTsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for messageTs- Returns:
- A modified copy or the
thisobject
-
withChannelId
Copy the current immutable object by setting a value for thechannelIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channelId- Returns:
- A modified copy or the
thisobject
-
withExternalRef
Copy the current immutable object by setting a present value for the optionalexternalRefattribute.- Parameters:
value- The value for externalRef,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withExternalRef
Copy the current immutable object by setting an optional value for theexternalRefattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for externalRef- Returns:
- A modified copy or
thisif not changed
-
withEntityUrl
Copy the current immutable object by setting a present value for the optionalentityUrlattribute.- Parameters:
value- The value for entityUrl,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withEntityUrl
Copy the current immutable object by setting an optional value for theentityUrlattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for entityUrl- Returns:
- A modified copy or
thisif not changed
-
withAppUnfurlUrl
Copy the current immutable object by setting a present value for the optionalappUnfurlUrlattribute.- Parameters:
value- The value for appUnfurlUrl,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withAppUnfurlUrl
Copy the current immutable object by setting an optional value for theappUnfurlUrlattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for appUnfurlUrl- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofEntityDetailContainerthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,messageTs,channelId,externalRef,entityUrl,appUnfurlUrl. -
toString
Prints the immutable valueEntityDetailContainerwith attribute values. -
copyOf
Creates an immutable copy of aEntityDetailContainerIFvalue. 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 EntityDetailContainer instance
-
builder
Creates a builder forEntityDetailContainer.EntityDetailContainer.builder() .setType(com.hubspot.slack.client.models.interaction.ContainerType) // requiredtype.setMessageTs(String) // requiredmessageTs.setChannelId(String) // requiredchannelId.setExternalRef(Optional<com.hubspot.slack.client.methods.params.chat.workobject.ExternalRef>) // optionalexternalRef.setEntityUrl(Optional<String>) // optionalentityUrl.setAppUnfurlUrl(Optional<String>) // optionalappUnfurlUrl.build();- Returns:
- A new EntityDetailContainer builder
-