Class MessageAttachmentContainer
java.lang.Object
com.hubspot.slack.client.models.interaction.MessageAttachmentContainer
- All Implemented Interfaces:
Container,MessageAttachmentContainerIF
@Generated(from="MessageAttachmentContainerIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class MessageAttachmentContainer
extends Object
implements MessageAttachmentContainerIF
Immutable implementation of
MessageAttachmentContainerIF.
Use the builder to create immutable instances:
MessageAttachmentContainer.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeMessageAttachmentContainer. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forMessageAttachmentContainer.static MessageAttachmentContainercopyOf(MessageAttachmentContainerIF instance) Creates an immutable copy of aMessageAttachmentContainerIFvalue.booleanThis instance is equal to all instances ofMessageAttachmentContainerthat have equal attribute values.intgetType()inthashCode()Computes a hash code from attributes:type,messageTs,channelId,ephemeral,appUnfurl,attachmentId,externalRef,entityUrl.booleanbooleantoString()Prints the immutable valueMessageAttachmentContainerwith attribute values.withAppUnfurl(boolean value) Copy the current immutable object by setting a value for theappUnfurlattribute.withAttachmentId(int value) Copy the current immutable object by setting a value for theattachmentIdattribute.withChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.withEntityUrl(String value) Copy the current immutable object by setting a present value for the optionalentityUrlattribute.withEntityUrl(Optional<String> optional) Copy the current immutable object by setting an optional value for theentityUrlattribute.withEphemeral(boolean value) Copy the current immutable object by setting a value for theephemeralattribute.withExternalRef(ExternalRef value) Copy the current immutable object by setting a present value for the optionalexternalRefattribute.withExternalRef(Optional<? extends ExternalRef> optional) Copy the current immutable object by setting an optional value for theexternalRefattribute.withMessageTs(String value) Copy the current immutable object by setting a value for themessageTsattribute.withType(ContainerType value) Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
getType
-
getMessageTs
- Specified by:
getMessageTsin interfaceMessageAttachmentContainerIF- Returns:
- The value of the
messageTsattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceMessageAttachmentContainerIF- Returns:
- The value of the
channelIdattribute
-
isEphemeral
public boolean isEphemeral()- Specified by:
isEphemeralin interfaceMessageAttachmentContainerIF- Returns:
- The value of the
ephemeralattribute
-
isAppUnfurl
public boolean isAppUnfurl()- Specified by:
isAppUnfurlin interfaceMessageAttachmentContainerIF- Returns:
- The value of the
appUnfurlattribute
-
getAttachmentId
public int getAttachmentId()- Specified by:
getAttachmentIdin interfaceMessageAttachmentContainerIF- Returns:
- The value of the
attachmentIdattribute
-
getExternalRef
- Specified by:
getExternalRefin interfaceMessageAttachmentContainerIF- Returns:
- The value of the
externalRefattribute
-
getEntityUrl
- Specified by:
getEntityUrlin interfaceMessageAttachmentContainerIF- Returns:
- The value of the
entityUrlattribute
-
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
-
withEphemeral
Copy the current immutable object by setting a value for theephemeralattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ephemeral- Returns:
- A modified copy or the
thisobject
-
withAppUnfurl
Copy the current immutable object by setting a value for theappUnfurlattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for appUnfurl- Returns:
- A modified copy or the
thisobject
-
withAttachmentId
Copy the current immutable object by setting a value for theattachmentIdattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for attachmentId- 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
-
equals
This instance is equal to all instances ofMessageAttachmentContainerthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,messageTs,channelId,ephemeral,appUnfurl,attachmentId,externalRef,entityUrl. -
toString
Prints the immutable valueMessageAttachmentContainerwith attribute values. -
copyOf
Creates an immutable copy of aMessageAttachmentContainerIFvalue. 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 MessageAttachmentContainer instance
-
builder
Creates a builder forMessageAttachmentContainer.MessageAttachmentContainer.builder() .setType(com.hubspot.slack.client.models.interaction.ContainerType) // requiredtype.setMessageTs(String) // requiredmessageTs.setChannelId(String) // requiredchannelId.setEphemeral(boolean) // requiredephemeral.setAppUnfurl(boolean) // requiredappUnfurl.setAttachmentId(int) // requiredattachmentId.setExternalRef(Optional<com.hubspot.slack.client.methods.params.chat.workobject.ExternalRef>) // optionalexternalRef.setEntityUrl(Optional<String>) // optionalentityUrl.build();- Returns:
- A new MessageAttachmentContainer builder
-