@NotThreadSafe public static final class SlackEventSkeleton.Builder extends Object
SlackEventSkeleton.
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.
| Modifier and Type | Method and Description |
|---|---|
SlackEventSkeleton |
build()
Builds a new
SlackEventSkeleton. |
SlackEventSkeleton.Builder |
from(SlackEvent instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.SlackEvent instance. |
SlackEventSkeleton.Builder |
from(SlackEventSkeletonIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.SlackEventSkeletonIF instance. |
SlackEventSkeleton.Builder |
setChannelMaybe(Optional<String> channelMaybe)
Initializes the optional value
channelMaybe to channelMaybe. |
SlackEventSkeleton.Builder |
setChannelMaybe(String channelMaybe)
Initializes the optional value
channelMaybe to channelMaybe. |
SlackEventSkeleton.Builder |
setTs(String ts)
Initializes the value for the
ts attribute. |
SlackEventSkeleton.Builder |
setType(SlackEventType type)
Initializes the value for the
type attribute. |
public final SlackEventSkeleton.Builder from(SlackEventSkeletonIF instance)
com.hubspot.slack.client.models.events.SlackEventSkeletonIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackEventSkeleton.Builder from(SlackEvent instance)
com.hubspot.slack.client.models.events.SlackEvent instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackEventSkeleton.Builder setChannelMaybe(@Nullable String channelMaybe)
channelMaybe to channelMaybe.channelMaybe - The value for channelMaybe, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackEventSkeleton.Builder setChannelMaybe(Optional<String> channelMaybe)
channelMaybe to channelMaybe.channelMaybe - The value for channelMaybethis builder for use in a chained invocationpublic final SlackEventSkeleton.Builder setType(SlackEventType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic final SlackEventSkeleton.Builder setTs(String ts)
ts attribute.ts - The value for tsthis builder for use in a chained invocationpublic SlackEventSkeleton build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
SlackEventSkeleton.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.