Class MessageAttachmentContainer.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.MessageAttachmentContainer.Builder
- Enclosing class:
MessageAttachmentContainer
@Generated(from="MessageAttachmentContainerIF",
generator="Immutables")
@NotThreadSafe
public static final class MessageAttachmentContainer.Builder
extends Object
Builds instances of type
MessageAttachmentContainer.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newMessageAttachmentContainer.Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.Containerinstance.from(MessageAttachmentContainerIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.MessageAttachmentContainerIFinstance.setAppUnfurl(boolean appUnfurl) Initializes the value for theappUnfurlattribute.setAttachmentId(int attachmentId) Initializes the value for theattachmentIdattribute.setChannelId(String channelId) Initializes the value for thechannelIdattribute.setEntityUrl(String entityUrl) Initializes the optional valueentityUrlto entityUrl.setEntityUrl(Optional<String> entityUrl) Initializes the optional valueentityUrlto entityUrl.setEphemeral(boolean ephemeral) Initializes the value for theephemeralattribute.setExternalRef(ExternalRef externalRef) Initializes the optional valueexternalRefto externalRef.setExternalRef(Optional<? extends ExternalRef> externalRef) Initializes the optional valueexternalRefto externalRef.setMessageTs(String messageTs) Initializes the value for themessageTsattribute.setType(ContainerType type) Initializes the value for thetypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.MessageAttachmentContainerIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.Containerinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setType
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
setMessageTs
Initializes the value for themessageTsattribute.- Parameters:
messageTs- The value for messageTs- Returns:
thisbuilder for use in a chained invocation
-
setChannelId
Initializes the value for thechannelIdattribute.- Parameters:
channelId- The value for channelId- Returns:
thisbuilder for use in a chained invocation
-
setEphemeral
Initializes the value for theephemeralattribute.- Parameters:
ephemeral- The value for ephemeral- Returns:
thisbuilder for use in a chained invocation
-
setAppUnfurl
Initializes the value for theappUnfurlattribute.- Parameters:
appUnfurl- The value for appUnfurl- Returns:
thisbuilder for use in a chained invocation
-
setAttachmentId
Initializes the value for theattachmentIdattribute.- Parameters:
attachmentId- The value for attachmentId- Returns:
thisbuilder for use in a chained invocation
-
setExternalRef
Initializes the optional valueexternalRefto externalRef.- Parameters:
externalRef- The value for externalRef,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setExternalRef
public final MessageAttachmentContainer.Builder setExternalRef(Optional<? extends ExternalRef> externalRef) Initializes the optional valueexternalRefto externalRef.- Parameters:
externalRef- The value for externalRef- Returns:
thisbuilder for use in a chained invocation
-
setEntityUrl
Initializes the optional valueentityUrlto entityUrl.- Parameters:
entityUrl- The value for entityUrl,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setEntityUrl
Initializes the optional valueentityUrlto entityUrl.- Parameters:
entityUrl- The value for entityUrl- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newMessageAttachmentContainer.- Returns:
- An immutable instance of MessageAttachmentContainer
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-