Class InteractiveLoadOptionsRequest.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.InteractiveLoadOptionsRequest.Builder
- Enclosing class:
InteractiveLoadOptionsRequest
@Generated(from="InteractiveLoadOptionsRequestIF",
generator="Immutables")
@NotThreadSafe
public static final class InteractiveLoadOptionsRequest.Builder
extends Object
Builds instances of type
InteractiveLoadOptionsRequest.
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 newInteractiveLoadOptionsRequest.from(InteractiveLoadOptionsRequestIF instance) Fill a builder with attribute values from the providedInteractiveLoadOptionsRequestIFinstance.setActionTs(String actionTs) Initializes the value for theactionTsattribute.setAttachmentId(String attachmentId) Initializes the optional valueattachmentIdto attachmentId.setAttachmentId(Optional<String> attachmentId) Initializes the optional valueattachmentIdto attachmentId.setCallbackId(String callbackId) Initializes the value for thecallbackIdattribute.setChannel(SlackChannel channel) Initializes the value for thechannelattribute.setMessageTs(String messageTs) Initializes the optional valuemessageTsto messageTs.setMessageTs(Optional<String> messageTs) Initializes the optional valuemessageTsto messageTs.Initializes the value for thenameattribute.Initializes the value for theteamattribute.Initializes the value for thetokenattribute.Initializes the value for thetypeattribute.setUser(SlackUserLite user) Initializes the value for theuserattribute.Initializes the value for thevalueattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedInteractiveLoadOptionsRequestIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setName
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
setValue
Initializes the value for thevalueattribute.- Parameters:
value- The value for value- Returns:
thisbuilder for use in a chained invocation
-
setCallbackId
Initializes the value for thecallbackIdattribute.- Parameters:
callbackId- The value for callbackId- Returns:
thisbuilder for use in a chained invocation
-
setTeam
Initializes the value for theteamattribute.- Parameters:
team- The value for team- Returns:
thisbuilder for use in a chained invocation
-
setChannel
Initializes the value for thechannelattribute.- Parameters:
channel- The value for channel- Returns:
thisbuilder for use in a chained invocation
-
setUser
Initializes the value for theuserattribute.- Parameters:
user- The value for user- 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
-
setActionTs
Initializes the value for theactionTsattribute.- Parameters:
actionTs- The value for actionTs- Returns:
thisbuilder for use in a chained invocation
-
setMessageTs
Initializes the optional valuemessageTsto messageTs.- Parameters:
messageTs- The value for messageTs,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setMessageTs
Initializes the optional valuemessageTsto messageTs.- Parameters:
messageTs- The value for messageTs- Returns:
thisbuilder for use in a chained invocation
-
setAttachmentId
Initializes the optional valueattachmentIdto attachmentId.- Parameters:
attachmentId- The value for attachmentId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setAttachmentId
Initializes the optional valueattachmentIdto attachmentId.- Parameters:
attachmentId- The value for attachmentId- Returns:
thisbuilder for use in a chained invocation
-
setToken
Initializes the value for thetokenattribute.- Parameters:
token- The value for token- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newInteractiveLoadOptionsRequest.- Returns:
- An immutable instance of InteractiveLoadOptionsRequest
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-