@NotThreadSafe public static final class InteractiveLoadOptionsRequest.Builder extends Object
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.
public final InteractiveLoadOptionsRequest.Builder from(InteractiveLoadOptionsRequestIF instance)
InteractiveLoadOptionsRequestIF instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final InteractiveLoadOptionsRequest.Builder setName(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final InteractiveLoadOptionsRequest.Builder setValue(String value)
value attribute.value - The value for valuethis builder for use in a chained invocationpublic final InteractiveLoadOptionsRequest.Builder setCallbackId(String callbackId)
callbackId attribute.callbackId - The value for callbackIdthis builder for use in a chained invocationpublic final InteractiveLoadOptionsRequest.Builder setTeam(SlackTeam team)
team attribute.team - The value for teamthis builder for use in a chained invocationpublic final InteractiveLoadOptionsRequest.Builder setChannel(SlackChannel channel)
channel attribute.channel - The value for channelthis builder for use in a chained invocationpublic final InteractiveLoadOptionsRequest.Builder setUser(SlackUserLite user)
user attribute.user - The value for userthis builder for use in a chained invocationpublic final InteractiveLoadOptionsRequest.Builder setType(InteractiveLoadOptionsRequestType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic final InteractiveLoadOptionsRequest.Builder setActionTs(String actionTs)
actionTs attribute.actionTs - The value for actionTsthis builder for use in a chained invocationpublic final InteractiveLoadOptionsRequest.Builder setMessageTs(@Nullable String messageTs)
messageTs to messageTs.messageTs - The value for messageTs, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final InteractiveLoadOptionsRequest.Builder setMessageTs(Optional<String> messageTs)
messageTs to messageTs.messageTs - The value for messageTsthis builder for use in a chained invocationpublic final InteractiveLoadOptionsRequest.Builder setAttachmentId(@Nullable String attachmentId)
attachmentId to attachmentId.attachmentId - The value for attachmentId, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final InteractiveLoadOptionsRequest.Builder setAttachmentId(Optional<String> attachmentId)
attachmentId to attachmentId.attachmentId - The value for attachmentIdthis builder for use in a chained invocationpublic final InteractiveLoadOptionsRequest.Builder setToken(String token)
token attribute.token - The value for tokenthis builder for use in a chained invocationpublic InteractiveLoadOptionsRequest build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
InteractiveLoadOptionsRequest.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.