@NotThreadSafe public static final class SlackUser.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
SlackUser |
build()
Builds a new
SlackUser. |
SlackUser.Builder |
from(SlackUserCore instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.users.SlackUserCore instance. |
SlackUser.Builder |
from(SlackUserIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.users.SlackUserIF instance. |
SlackUser.Builder |
setAdmin(Optional<String> admin)
Initializes the optional value
admin to admin. |
SlackUser.Builder |
setAdmin(String admin)
Initializes the optional value
admin to admin. |
SlackUser.Builder |
setAppUser(Boolean appUser)
Initializes the optional value
appUser to appUser. |
SlackUser.Builder |
setAppUser(Optional<Boolean> appUser)
Initializes the optional value
appUser to appUser. |
SlackUser.Builder |
setBot(Boolean bot)
Initializes the optional value
bot to bot. |
SlackUser.Builder |
setBot(Optional<Boolean> bot)
Initializes the optional value
bot to bot. |
SlackUser.Builder |
setColor(Optional<String> color)
Initializes the optional value
color to color. |
SlackUser.Builder |
setColor(String color)
Initializes the optional value
color to color. |
SlackUser.Builder |
setDeleted(Boolean deleted)
Initializes the optional value
deleted to deleted. |
SlackUser.Builder |
setDeleted(Optional<Boolean> deleted)
Initializes the optional value
deleted to deleted. |
SlackUser.Builder |
setId(String id)
Initializes the value for the
id attribute. |
SlackUser.Builder |
setLocale(Optional<String> locale)
Initializes the optional value
locale to locale. |
SlackUser.Builder |
setLocale(String locale)
Initializes the optional value
locale to locale. |
SlackUser.Builder |
setOwner(Optional<String> owner)
Initializes the optional value
owner to owner. |
SlackUser.Builder |
setOwner(String owner)
Initializes the optional value
owner to owner. |
SlackUser.Builder |
setPrimaryOwner(Boolean primaryOwner)
Initializes the optional value
primaryOwner to primaryOwner. |
SlackUser.Builder |
setPrimaryOwner(Optional<Boolean> primaryOwner)
Initializes the optional value
primaryOwner to primaryOwner. |
SlackUser.Builder |
setProfile(Optional<UserProfile> profile)
Initializes the optional value
profile to profile. |
SlackUser.Builder |
setProfile(UserProfile profile)
Initializes the optional value
profile to profile. |
SlackUser.Builder |
setRawUpdated(Integer rawUpdated)
Initializes the optional value
rawUpdated to rawUpdated. |
SlackUser.Builder |
setRawUpdated(Optional<Integer> rawUpdated)
Initializes the optional value
rawUpdated to rawUpdated. |
SlackUser.Builder |
setRealName(Optional<String> realName)
Initializes the optional value
realName to realName. |
SlackUser.Builder |
setRealName(String realName)
Initializes the optional value
realName to realName. |
SlackUser.Builder |
setRestricted(Boolean restricted)
Initializes the optional value
restricted to restricted. |
SlackUser.Builder |
setRestricted(Optional<Boolean> restricted)
Initializes the optional value
restricted to restricted. |
SlackUser.Builder |
setTeamId(Optional<String> teamId)
Initializes the optional value
teamId to teamId. |
SlackUser.Builder |
setTeamId(String teamId)
Initializes the optional value
teamId to teamId. |
SlackUser.Builder |
setTimezone(Optional<String> timezone)
Initializes the optional value
timezone to timezone. |
SlackUser.Builder |
setTimezone(String timezone)
Initializes the optional value
timezone to timezone. |
SlackUser.Builder |
setTimezoneLabel(Optional<String> timezoneLabel)
Initializes the optional value
timezoneLabel to timezoneLabel. |
SlackUser.Builder |
setTimezoneLabel(String timezoneLabel)
Initializes the optional value
timezoneLabel to timezoneLabel. |
SlackUser.Builder |
setTimezoneOffset(Optional<String> timezoneOffset)
Initializes the optional value
timezoneOffset to timezoneOffset. |
SlackUser.Builder |
setTimezoneOffset(String timezoneOffset)
Initializes the optional value
timezoneOffset to timezoneOffset. |
SlackUser.Builder |
setUltraRestricted(Boolean ultraRestricted)
Initializes the optional value
ultraRestricted to ultraRestricted. |
SlackUser.Builder |
setUltraRestricted(Optional<Boolean> ultraRestricted)
Initializes the optional value
ultraRestricted to ultraRestricted. |
SlackUser.Builder |
setUsername(Optional<String> username)
Initializes the optional value
username to username. |
SlackUser.Builder |
setUsername(String username)
Initializes the optional value
username to username. |
public final SlackUser.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 SlackUser.Builder from(SlackUserIF instance)
com.hubspot.slack.client.models.users.SlackUserIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackUser.Builder setProfile(@Nullable UserProfile profile)
profile to profile.profile - The value for profile, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setProfile(Optional<UserProfile> profile)
profile to profile.profile - The value for profilethis builder for use in a chained invocationpublic final SlackUser.Builder setDeleted(@Nullable Boolean deleted)
deleted to deleted.deleted - The value for deleted, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setDeleted(Optional<Boolean> deleted)
deleted to deleted.deleted - The value for deletedthis builder for use in a chained invocationpublic final SlackUser.Builder setColor(@Nullable String color)
color to color.color - The value for color, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setColor(Optional<String> color)
color to color.color - The value for colorthis builder for use in a chained invocationpublic final SlackUser.Builder setAdmin(@Nullable String admin)
admin to admin.admin - The value for admin, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setAdmin(Optional<String> admin)
admin to admin.admin - The value for adminthis builder for use in a chained invocationpublic final SlackUser.Builder setOwner(@Nullable String owner)
owner to owner.owner - The value for owner, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setOwner(Optional<String> owner)
owner to owner.owner - The value for ownerthis builder for use in a chained invocationpublic final SlackUser.Builder setTeamId(@Nullable String teamId)
teamId to teamId.teamId - The value for teamId, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setTeamId(Optional<String> teamId)
teamId to teamId.teamId - The value for teamIdthis builder for use in a chained invocationpublic final SlackUser.Builder setRealName(@Nullable String realName)
realName to realName.realName - The value for realName, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setRealName(Optional<String> realName)
realName to realName.realName - The value for realNamethis builder for use in a chained invocationpublic final SlackUser.Builder setPrimaryOwner(@Nullable Boolean primaryOwner)
primaryOwner to primaryOwner.primaryOwner - The value for primaryOwner, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setPrimaryOwner(Optional<Boolean> primaryOwner)
primaryOwner to primaryOwner.primaryOwner - The value for primaryOwnerthis builder for use in a chained invocationpublic final SlackUser.Builder setRestricted(@Nullable Boolean restricted)
restricted to restricted.restricted - The value for restricted, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setRestricted(Optional<Boolean> restricted)
restricted to restricted.restricted - The value for restrictedthis builder for use in a chained invocationpublic final SlackUser.Builder setUltraRestricted(@Nullable Boolean ultraRestricted)
ultraRestricted to ultraRestricted.ultraRestricted - The value for ultraRestricted, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setUltraRestricted(Optional<Boolean> ultraRestricted)
ultraRestricted to ultraRestricted.ultraRestricted - The value for ultraRestrictedthis builder for use in a chained invocationpublic final SlackUser.Builder setBot(@Nullable Boolean bot)
bot to bot.bot - The value for bot, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setBot(Optional<Boolean> bot)
bot to bot.bot - The value for botthis builder for use in a chained invocationpublic final SlackUser.Builder setAppUser(@Nullable Boolean appUser)
appUser to appUser.appUser - The value for appUser, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setAppUser(Optional<Boolean> appUser)
appUser to appUser.appUser - The value for appUserthis builder for use in a chained invocationpublic final SlackUser.Builder setTimezone(@Nullable String timezone)
timezone to timezone.timezone - The value for timezone, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setTimezone(Optional<String> timezone)
timezone to timezone.timezone - The value for timezonethis builder for use in a chained invocationpublic final SlackUser.Builder setTimezoneLabel(@Nullable String timezoneLabel)
timezoneLabel to timezoneLabel.timezoneLabel - The value for timezoneLabel, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setTimezoneLabel(Optional<String> timezoneLabel)
timezoneLabel to timezoneLabel.timezoneLabel - The value for timezoneLabelthis builder for use in a chained invocationpublic final SlackUser.Builder setTimezoneOffset(@Nullable String timezoneOffset)
timezoneOffset to timezoneOffset.timezoneOffset - The value for timezoneOffset, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setTimezoneOffset(Optional<String> timezoneOffset)
timezoneOffset to timezoneOffset.timezoneOffset - The value for timezoneOffsetthis builder for use in a chained invocationpublic final SlackUser.Builder setRawUpdated(@Nullable Integer rawUpdated)
rawUpdated to rawUpdated.rawUpdated - The value for rawUpdated, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setRawUpdated(Optional<Integer> rawUpdated)
rawUpdated to rawUpdated.rawUpdated - The value for rawUpdatedthis builder for use in a chained invocationpublic final SlackUser.Builder setLocale(@Nullable String locale)
locale to locale.locale - The value for locale, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUser.Builder setLocale(Optional<String> locale)
locale to locale.locale - The value for localethis builder for use in a chained invocationpublic final SlackUser.Builder setId(String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final SlackUser.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 SlackUser.Builder setUsername(Optional<String> username)
username to username.username - The value for usernamethis builder for use in a chained invocationCopyright © 2019. All rights reserved.