@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackUserIF"}) @Immutable public final class SlackUser extends Object implements SlackUserIF
SlackUserIF.
Use the builder to create immutable instances:
SlackUser.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackUser.Builder
Builds instances of type
SlackUser. |
| Modifier and Type | Method and Description |
|---|---|
static SlackUser.Builder |
builder()
Creates a builder for
SlackUser. |
static SlackUser |
copyOf(SlackUserIF instance)
Creates an immutable copy of a
SlackUserIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackUser that have equal attribute values. |
Optional<String> |
getColor() |
String |
getId() |
Optional<String> |
getLocale() |
Optional<UserProfile> |
getProfile() |
Optional<Integer> |
getRawUpdated() |
Optional<String> |
getRealName() |
Optional<String> |
getTeamId() |
Optional<String> |
getTimezone() |
Optional<String> |
getTimezoneLabel() |
Optional<String> |
getTimezoneOffset() |
Optional<Long> |
getUpdatedAt() |
Optional<String> |
getUsername() |
int |
hashCode()
Computes a hash code from attributes:
profile, deleted, color, admin, owner, teamId, realName, primaryOwner, restricted, ultraRestricted, bot, appUser, timezone, timezoneLabel, timezoneOffset, rawUpdated, locale, updatedAt, id, username. |
Optional<String> |
isAdmin() |
Optional<Boolean> |
isAppUser() |
Optional<Boolean> |
isBot() |
Optional<Boolean> |
isDeleted() |
Optional<String> |
isOwner() |
Optional<Boolean> |
isPrimaryOwner() |
Optional<Boolean> |
isRestricted() |
Optional<Boolean> |
isUltraRestricted() |
String |
toString()
Prints the immutable value
SlackUser with attribute values. |
SlackUser |
withAdmin(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
admin attribute. |
SlackUser |
withAdmin(String value)
Copy the current immutable object by setting a present value for the optional
admin attribute. |
SlackUser |
withAppUser(Boolean value)
Copy the current immutable object by setting a present value for the optional
appUser attribute. |
SlackUser |
withAppUser(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
appUser attribute. |
SlackUser |
withBot(Boolean value)
Copy the current immutable object by setting a present value for the optional
bot attribute. |
SlackUser |
withBot(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
bot attribute. |
SlackUser |
withColor(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
color attribute. |
SlackUser |
withColor(String value)
Copy the current immutable object by setting a present value for the optional
color attribute. |
SlackUser |
withDeleted(Boolean value)
Copy the current immutable object by setting a present value for the optional
deleted attribute. |
SlackUser |
withDeleted(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
deleted attribute. |
SlackUser |
withId(String id)
Copy the current immutable object by setting a value for the
id attribute. |
SlackUser |
withLocale(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
locale attribute. |
SlackUser |
withLocale(String value)
Copy the current immutable object by setting a present value for the optional
locale attribute. |
SlackUser |
withOwner(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
owner attribute. |
SlackUser |
withOwner(String value)
Copy the current immutable object by setting a present value for the optional
owner attribute. |
SlackUser |
withPrimaryOwner(Boolean value)
Copy the current immutable object by setting a present value for the optional
primaryOwner attribute. |
SlackUser |
withPrimaryOwner(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
primaryOwner attribute. |
SlackUser |
withProfile(Optional<UserProfile> optional)
Copy the current immutable object by setting an optional value for the
profile attribute. |
SlackUser |
withProfile(UserProfile value)
Copy the current immutable object by setting a present value for the optional
profile attribute. |
SlackUser |
withRawUpdated(Integer value)
Copy the current immutable object by setting a present value for the optional
rawUpdated attribute. |
SlackUser |
withRawUpdated(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
rawUpdated attribute. |
SlackUser |
withRealName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
realName attribute. |
SlackUser |
withRealName(String value)
Copy the current immutable object by setting a present value for the optional
realName attribute. |
SlackUser |
withRestricted(Boolean value)
Copy the current immutable object by setting a present value for the optional
restricted attribute. |
SlackUser |
withRestricted(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
restricted attribute. |
SlackUser |
withTeamId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
teamId attribute. |
SlackUser |
withTeamId(String value)
Copy the current immutable object by setting a present value for the optional
teamId attribute. |
SlackUser |
withTimezone(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
timezone attribute. |
SlackUser |
withTimezone(String value)
Copy the current immutable object by setting a present value for the optional
timezone attribute. |
SlackUser |
withTimezoneLabel(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
timezoneLabel attribute. |
SlackUser |
withTimezoneLabel(String value)
Copy the current immutable object by setting a present value for the optional
timezoneLabel attribute. |
SlackUser |
withTimezoneOffset(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
timezoneOffset attribute. |
SlackUser |
withTimezoneOffset(String value)
Copy the current immutable object by setting a present value for the optional
timezoneOffset attribute. |
SlackUser |
withUltraRestricted(Boolean value)
Copy the current immutable object by setting a present value for the optional
ultraRestricted attribute. |
SlackUser |
withUltraRestricted(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
ultraRestricted attribute. |
SlackUser |
withUsername(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
username attribute. |
SlackUser |
withUsername(String value)
Copy the current immutable object by setting a present value for the optional
username attribute. |
public Optional<UserProfile> getProfile()
getProfile in interface SlackUserIFprofile attributepublic Optional<Boolean> isDeleted()
isDeleted in interface SlackUserIFdeleted attributepublic Optional<String> getColor()
getColor in interface SlackUserIFcolor attributepublic Optional<String> isAdmin()
isAdmin in interface SlackUserIFadmin attributepublic Optional<String> isOwner()
isOwner in interface SlackUserIFowner attributepublic Optional<String> getTeamId()
getTeamId in interface SlackUserIFteamId attributepublic Optional<String> getRealName()
getRealName in interface SlackUserIFrealName attributepublic Optional<Boolean> isPrimaryOwner()
isPrimaryOwner in interface SlackUserIFprimaryOwner attributepublic Optional<Boolean> isRestricted()
isRestricted in interface SlackUserIFrestricted attributepublic Optional<Boolean> isUltraRestricted()
isUltraRestricted in interface SlackUserIFultraRestricted attributepublic Optional<Boolean> isBot()
isBot in interface SlackUserIFbot attributepublic Optional<Boolean> isAppUser()
isAppUser in interface SlackUserIFappUser attributepublic Optional<String> getTimezone()
getTimezone in interface SlackUserIFtimezone attributepublic Optional<String> getTimezoneLabel()
getTimezoneLabel in interface SlackUserIFtimezoneLabel attributepublic Optional<String> getTimezoneOffset()
getTimezoneOffset in interface SlackUserIFtimezoneOffset attributepublic Optional<Integer> getRawUpdated()
getRawUpdated in interface SlackUserIFrawUpdated attributepublic Optional<String> getLocale()
getLocale in interface SlackUserIFlocale attributepublic Optional<Long> getUpdatedAt()
getUpdatedAt in interface SlackUserIFupdatedAt attributepublic String getId()
getId in interface SlackUserCoreid attributepublic Optional<String> getUsername()
getUsername in interface SlackUserCoreusername attributepublic final SlackUser withProfile(@Nullable UserProfile value)
profile attribute.value - The value for profile, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withProfile(Optional<UserProfile> optional)
profile attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for profilethis objectpublic final SlackUser withDeleted(@Nullable Boolean value)
deleted attribute.value - The value for deleted, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withDeleted(Optional<Boolean> optional)
deleted attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for deletedthis objectpublic final SlackUser withColor(@Nullable String value)
color attribute.value - The value for color, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withColor(Optional<String> optional)
color attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for colorthis objectpublic final SlackUser withAdmin(@Nullable String value)
admin attribute.value - The value for admin, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withAdmin(Optional<String> optional)
admin attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for adminthis objectpublic final SlackUser withOwner(@Nullable String value)
owner attribute.value - The value for owner, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withOwner(Optional<String> optional)
owner attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for ownerthis objectpublic final SlackUser withTeamId(@Nullable String value)
teamId attribute.value - The value for teamId, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withTeamId(Optional<String> optional)
teamId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for teamIdthis objectpublic final SlackUser withRealName(@Nullable String value)
realName attribute.value - The value for realName, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withRealName(Optional<String> optional)
realName attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for realNamethis objectpublic final SlackUser withPrimaryOwner(@Nullable Boolean value)
primaryOwner attribute.value - The value for primaryOwner, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withPrimaryOwner(Optional<Boolean> optional)
primaryOwner attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for primaryOwnerthis objectpublic final SlackUser withRestricted(@Nullable Boolean value)
restricted attribute.value - The value for restricted, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withRestricted(Optional<Boolean> optional)
restricted attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for restrictedthis objectpublic final SlackUser withUltraRestricted(@Nullable Boolean value)
ultraRestricted attribute.value - The value for ultraRestricted, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withUltraRestricted(Optional<Boolean> optional)
ultraRestricted attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for ultraRestrictedthis objectpublic final SlackUser withBot(@Nullable Boolean value)
bot attribute.value - The value for bot, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withBot(Optional<Boolean> optional)
bot attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for botthis objectpublic final SlackUser withAppUser(@Nullable Boolean value)
appUser attribute.value - The value for appUser, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withAppUser(Optional<Boolean> optional)
appUser attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for appUserthis objectpublic final SlackUser withTimezone(@Nullable String value)
timezone attribute.value - The value for timezone, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withTimezone(Optional<String> optional)
timezone attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for timezonethis objectpublic final SlackUser withTimezoneLabel(@Nullable String value)
timezoneLabel attribute.value - The value for timezoneLabel, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withTimezoneLabel(Optional<String> optional)
timezoneLabel attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for timezoneLabelthis objectpublic final SlackUser withTimezoneOffset(@Nullable String value)
timezoneOffset attribute.value - The value for timezoneOffset, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withTimezoneOffset(Optional<String> optional)
timezoneOffset attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for timezoneOffsetthis objectpublic final SlackUser withRawUpdated(@Nullable Integer value)
rawUpdated attribute.value - The value for rawUpdated, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withRawUpdated(Optional<Integer> optional)
rawUpdated attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for rawUpdatedthis objectpublic final SlackUser withLocale(@Nullable String value)
locale attribute.value - The value for locale, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withLocale(Optional<String> optional)
locale attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for localethis objectpublic final SlackUser withId(String id)
id attribute.
An equals check used to prevent copying of the same value by returning this.id - A new value for idthis objectpublic final SlackUser withUsername(@Nullable String value)
username attribute.value - The value for username, null is accepted as java.util.Optional.empty()this objectpublic final SlackUser withUsername(Optional<String> optional)
username attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for usernamethis objectpublic boolean equals(@Nullable Object another)
SlackUser that have equal attribute values.public int hashCode()
profile, deleted, color, admin, owner, teamId, realName, primaryOwner, restricted, ultraRestricted, bot, appUser, timezone, timezoneLabel, timezoneOffset, rawUpdated, locale, updatedAt, id, username.public String toString()
SlackUser with attribute values.public static SlackUser copyOf(SlackUserIF instance)
SlackUserIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static SlackUser.Builder builder()
SlackUser.Copyright © 2019. All rights reserved.