@NotThreadSafe public static final class SlackUserLite.Builder extends Object
SlackUserLite.
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 |
|---|---|
SlackUserLite |
build()
Builds a new
SlackUserLite. |
SlackUserLite.Builder |
from(SlackUserCore instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.users.SlackUserCore instance. |
SlackUserLite.Builder |
from(SlackUserLiteIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.users.SlackUserLiteIF instance. |
SlackUserLite.Builder |
setId(String id)
Initializes the value for the
id attribute. |
SlackUserLite.Builder |
setUsername(Optional<String> username)
Initializes the optional value
username to username. |
SlackUserLite.Builder |
setUsername(String username)
Initializes the optional value
username to username. |
public final SlackUserLite.Builder from(SlackUserCore instance)
com.hubspot.slack.client.models.users.SlackUserCore instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackUserLite.Builder from(SlackUserLiteIF instance)
com.hubspot.slack.client.models.users.SlackUserLiteIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackUserLite.Builder setId(String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final SlackUserLite.Builder setUsername(@Nullable String username)
username to username.username - The value for username, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUserLite.Builder setUsername(Optional<String> username)
username to username.username - The value for usernamethis builder for use in a chained invocationpublic SlackUserLite build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
SlackUserLite.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.