Class SlackUser.Builder
java.lang.Object
com.hubspot.slack.client.models.users.SlackUser.Builder
- Enclosing class:
SlackUser
@Generated(from="SlackUserIF",
generator="Immutables")
@NotThreadSafe
public static final class SlackUser.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newSlackUser.final SlackUser.Builderfrom(SlackUserCore instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.users.SlackUserCoreinstance.final SlackUser.Builderfrom(SlackUserIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.users.SlackUserIFinstance.final SlackUser.BuilderInitializes the optional valueadminto admin.final SlackUser.BuilderInitializes the optional valueadminto admin.final SlackUser.BuildersetAppUser(Boolean appUser) Initializes the optional valueappUserto appUser.final SlackUser.BuildersetAppUser(Optional<Boolean> appUser) Initializes the optional valueappUserto appUser.final SlackUser.BuilderInitializes the optional valuebotto bot.final SlackUser.BuilderInitializes the optional valuebotto bot.final SlackUser.BuilderInitializes the optional valuecolorto color.final SlackUser.BuilderInitializes the optional valuecolorto color.final SlackUser.BuildersetDeleted(Boolean deleted) Initializes the optional valuedeletedto deleted.final SlackUser.BuildersetDeleted(Optional<Boolean> deleted) Initializes the optional valuedeletedto deleted.final SlackUser.BuildersetExternalTeamId(String externalTeamId) Initializes the optional valueexternalTeamIdto externalTeamId.final SlackUser.BuildersetExternalTeamId(Optional<String> externalTeamId) Initializes the optional valueexternalTeamIdto externalTeamId.final SlackUser.BuilderInitializes the value for theidattribute.final SlackUser.BuilderInitializes the optional valuelocaleto locale.final SlackUser.BuilderInitializes the optional valuelocaleto locale.final SlackUser.BuilderInitializes the optional valueownerto owner.final SlackUser.BuilderInitializes the optional valueownerto owner.final SlackUser.BuildersetPrimaryOwner(Boolean primaryOwner) Initializes the optional valueprimaryOwnerto primaryOwner.final SlackUser.BuildersetPrimaryOwner(Optional<Boolean> primaryOwner) Initializes the optional valueprimaryOwnerto primaryOwner.final SlackUser.BuildersetProfile(UserProfile profile) Initializes the optional valueprofileto profile.final SlackUser.BuildersetProfile(Optional<? extends UserProfile> profile) Initializes the optional valueprofileto profile.final SlackUser.BuildersetRawUpdated(Integer rawUpdated) Initializes the optional valuerawUpdatedto rawUpdated.final SlackUser.BuildersetRawUpdated(Optional<Integer> rawUpdated) Initializes the optional valuerawUpdatedto rawUpdated.final SlackUser.BuildersetRealName(String realName) Initializes the optional valuerealNameto realName.final SlackUser.BuildersetRealName(Optional<String> realName) Initializes the optional valuerealNameto realName.final SlackUser.BuildersetRestricted(Boolean restricted) Initializes the optional valuerestrictedto restricted.final SlackUser.BuildersetRestricted(Optional<Boolean> restricted) Initializes the optional valuerestrictedto restricted.final SlackUser.BuilderInitializes the optional valueteamIdto teamId.final SlackUser.BuilderInitializes the optional valueteamIdto teamId.final SlackUser.BuildersetTimezone(String timezone) Initializes the optional valuetimezoneto timezone.final SlackUser.BuildersetTimezone(Optional<String> timezone) Initializes the optional valuetimezoneto timezone.final SlackUser.BuildersetTimezoneLabel(String timezoneLabel) Initializes the optional valuetimezoneLabelto timezoneLabel.final SlackUser.BuildersetTimezoneLabel(Optional<String> timezoneLabel) Initializes the optional valuetimezoneLabelto timezoneLabel.final SlackUser.BuildersetTimezoneOffset(String timezoneOffset) Initializes the optional valuetimezoneOffsetto timezoneOffset.final SlackUser.BuildersetTimezoneOffset(Optional<String> timezoneOffset) Initializes the optional valuetimezoneOffsetto timezoneOffset.final SlackUser.BuildersetUltraRestricted(Boolean ultraRestricted) Initializes the optional valueultraRestrictedto ultraRestricted.final SlackUser.BuildersetUltraRestricted(Optional<Boolean> ultraRestricted) Initializes the optional valueultraRestrictedto ultraRestricted.final SlackUser.BuildersetUsername(String username) Initializes the optional valueusernameto username.final SlackUser.BuildersetUsername(Optional<String> username) Initializes the optional valueusernameto username.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.users.SlackUserIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.users.SlackUserCoreinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setId
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
setUsername
Initializes the optional valueusernameto username.- Parameters:
username- The value for username,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUsername
Initializes the optional valueusernameto username.- Parameters:
username- The value for username- Returns:
thisbuilder for use in a chained invocation
-
setProfile
Initializes the optional valueprofileto profile.- Parameters:
profile- The value for profile,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setProfile
Initializes the optional valueprofileto profile.- Parameters:
profile- The value for profile- Returns:
thisbuilder for use in a chained invocation
-
setDeleted
Initializes the optional valuedeletedto deleted.- Parameters:
deleted- The value for deleted,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setDeleted
Initializes the optional valuedeletedto deleted.- Parameters:
deleted- The value for deleted- Returns:
thisbuilder for use in a chained invocation
-
setColor
Initializes the optional valuecolorto color.- Parameters:
color- The value for color,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setColor
Initializes the optional valuecolorto color.- Parameters:
color- The value for color- Returns:
thisbuilder for use in a chained invocation
-
setAdmin
Initializes the optional valueadminto admin.- Parameters:
admin- The value for admin,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setAdmin
Initializes the optional valueadminto admin.- Parameters:
admin- The value for admin- Returns:
thisbuilder for use in a chained invocation
-
setOwner
Initializes the optional valueownerto owner.- Parameters:
owner- The value for owner,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setOwner
Initializes the optional valueownerto owner.- Parameters:
owner- The value for owner- Returns:
thisbuilder for use in a chained invocation
-
setTeamId
Initializes the optional valueteamIdto teamId.- Parameters:
teamId- The value for teamId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setTeamId
Initializes the optional valueteamIdto teamId.- Parameters:
teamId- The value for teamId- Returns:
thisbuilder for use in a chained invocation
-
setExternalTeamId
Initializes the optional valueexternalTeamIdto externalTeamId.- Parameters:
externalTeamId- The value for externalTeamId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setExternalTeamId
Initializes the optional valueexternalTeamIdto externalTeamId.- Parameters:
externalTeamId- The value for externalTeamId- Returns:
thisbuilder for use in a chained invocation
-
setRealName
Initializes the optional valuerealNameto realName.- Parameters:
realName- The value for realName,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setRealName
Initializes the optional valuerealNameto realName.- Parameters:
realName- The value for realName- Returns:
thisbuilder for use in a chained invocation
-
setPrimaryOwner
Initializes the optional valueprimaryOwnerto primaryOwner.- Parameters:
primaryOwner- The value for primaryOwner,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setPrimaryOwner
Initializes the optional valueprimaryOwnerto primaryOwner.- Parameters:
primaryOwner- The value for primaryOwner- Returns:
thisbuilder for use in a chained invocation
-
setRestricted
Initializes the optional valuerestrictedto restricted.- Parameters:
restricted- The value for restricted,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setRestricted
Initializes the optional valuerestrictedto restricted.- Parameters:
restricted- The value for restricted- Returns:
thisbuilder for use in a chained invocation
-
setUltraRestricted
Initializes the optional valueultraRestrictedto ultraRestricted.- Parameters:
ultraRestricted- The value for ultraRestricted,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUltraRestricted
Initializes the optional valueultraRestrictedto ultraRestricted.- Parameters:
ultraRestricted- The value for ultraRestricted- Returns:
thisbuilder for use in a chained invocation
-
setBot
Initializes the optional valuebotto bot.- Parameters:
bot- The value for bot,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setBot
Initializes the optional valuebotto bot.- Parameters:
bot- The value for bot- Returns:
thisbuilder for use in a chained invocation
-
setAppUser
Initializes the optional valueappUserto appUser.- Parameters:
appUser- The value for appUser,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setAppUser
Initializes the optional valueappUserto appUser.- Parameters:
appUser- The value for appUser- Returns:
thisbuilder for use in a chained invocation
-
setTimezone
Initializes the optional valuetimezoneto timezone.- Parameters:
timezone- The value for timezone,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setTimezone
Initializes the optional valuetimezoneto timezone.- Parameters:
timezone- The value for timezone- Returns:
thisbuilder for use in a chained invocation
-
setTimezoneLabel
Initializes the optional valuetimezoneLabelto timezoneLabel.- Parameters:
timezoneLabel- The value for timezoneLabel,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setTimezoneLabel
Initializes the optional valuetimezoneLabelto timezoneLabel.- Parameters:
timezoneLabel- The value for timezoneLabel- Returns:
thisbuilder for use in a chained invocation
-
setTimezoneOffset
Initializes the optional valuetimezoneOffsetto timezoneOffset.- Parameters:
timezoneOffset- The value for timezoneOffset,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setTimezoneOffset
Initializes the optional valuetimezoneOffsetto timezoneOffset.- Parameters:
timezoneOffset- The value for timezoneOffset- Returns:
thisbuilder for use in a chained invocation
-
setRawUpdated
Initializes the optional valuerawUpdatedto rawUpdated.- Parameters:
rawUpdated- The value for rawUpdated,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setRawUpdated
Initializes the optional valuerawUpdatedto rawUpdated.- Parameters:
rawUpdated- The value for rawUpdated- Returns:
thisbuilder for use in a chained invocation
-
setLocale
Initializes the optional valuelocaleto locale.- Parameters:
locale- The value for locale,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setLocale
Initializes the optional valuelocaleto locale.- Parameters:
locale- The value for locale- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newSlackUser.- Returns:
- An immutable instance of SlackUser
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-