Class UserProfile
java.lang.Object
com.hubspot.slack.client.models.users.UserProfile
- All Implemented Interfaces:
UserProfileIF
@Generated(from="UserProfileIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UserProfile
extends Object
implements UserProfileIF
Immutable implementation of
UserProfileIF.
Use the builder to create immutable instances:
UserProfile.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic UserProfile.Builderbuilder()Creates a builder forUserProfile.static UserProfilecopyOf(UserProfileIF instance) Creates an immutable copy of aUserProfileIFvalue.booleanThis instance is equal to all instances ofUserProfilethat have equal attribute values.getEmail()getPhone()getSkype()getTitle()inthashCode()Computes a hash code from attributes:username,usernameNormalized,realName,realNameNormalized,email,statusText,statusEmoji,statusExpiration,title,phone,skype,pronouns,fields,teamId,avatarHash,imageOriginal,image24,image32,image48,image72,image192,image512,image1024.toString()Prints the immutable valueUserProfilewith attribute values.final UserProfilewithAvatarHash(String value) Copy the current immutable object by setting a present value for the optionalavatarHashattribute.final UserProfilewithAvatarHash(Optional<String> optional) Copy the current immutable object by setting an optional value for theavatarHashattribute.final UserProfileCopy the current immutable object by setting a present value for the optionalemailattribute.final UserProfileCopy the current immutable object by setting an optional value for theemailattribute.final UserProfilewithFields(Map<String, ProfileField> value) Copy the current immutable object by setting a present value for the optionalfieldsattribute.final UserProfilewithFields(Optional<? extends Map<String, ProfileField>> optional) Copy the current immutable object by setting an optional value for thefieldsattribute.final UserProfilewithImage1024(String value) Copy the current immutable object by setting a present value for the optionalimage1024attribute.final UserProfilewithImage1024(Optional<String> optional) Copy the current immutable object by setting an optional value for theimage1024attribute.final UserProfilewithImage192(String value) Copy the current immutable object by setting a present value for the optionalimage192attribute.final UserProfilewithImage192(Optional<String> optional) Copy the current immutable object by setting an optional value for theimage192attribute.final UserProfilewithImage24(String value) Copy the current immutable object by setting a present value for the optionalimage24attribute.final UserProfilewithImage24(Optional<String> optional) Copy the current immutable object by setting an optional value for theimage24attribute.final UserProfilewithImage32(String value) Copy the current immutable object by setting a present value for the optionalimage32attribute.final UserProfilewithImage32(Optional<String> optional) Copy the current immutable object by setting an optional value for theimage32attribute.final UserProfilewithImage48(String value) Copy the current immutable object by setting a present value for the optionalimage48attribute.final UserProfilewithImage48(Optional<String> optional) Copy the current immutable object by setting an optional value for theimage48attribute.final UserProfilewithImage512(String value) Copy the current immutable object by setting a present value for the optionalimage512attribute.final UserProfilewithImage512(Optional<String> optional) Copy the current immutable object by setting an optional value for theimage512attribute.final UserProfilewithImage72(String value) Copy the current immutable object by setting a present value for the optionalimage72attribute.final UserProfilewithImage72(Optional<String> optional) Copy the current immutable object by setting an optional value for theimage72attribute.final UserProfilewithImageOriginal(String value) Copy the current immutable object by setting a present value for the optionalimageOriginalattribute.final UserProfilewithImageOriginal(Optional<String> optional) Copy the current immutable object by setting an optional value for theimageOriginalattribute.final UserProfileCopy the current immutable object by setting a present value for the optionalphoneattribute.final UserProfileCopy the current immutable object by setting an optional value for thephoneattribute.final UserProfilewithPronouns(String value) Copy the current immutable object by setting a present value for the optionalpronounsattribute.final UserProfilewithPronouns(Optional<String> optional) Copy the current immutable object by setting an optional value for thepronounsattribute.final UserProfilewithRealName(String value) Copy the current immutable object by setting a present value for the optionalrealNameattribute.final UserProfilewithRealName(Optional<String> optional) Copy the current immutable object by setting an optional value for therealNameattribute.final UserProfilewithRealNameNormalized(String value) Copy the current immutable object by setting a present value for the optionalrealNameNormalizedattribute.final UserProfilewithRealNameNormalized(Optional<String> optional) Copy the current immutable object by setting an optional value for therealNameNormalizedattribute.final UserProfileCopy the current immutable object by setting a present value for the optionalskypeattribute.final UserProfileCopy the current immutable object by setting an optional value for theskypeattribute.final UserProfilewithStatusEmoji(String value) Copy the current immutable object by setting a present value for the optionalstatusEmojiattribute.final UserProfilewithStatusEmoji(Optional<String> optional) Copy the current immutable object by setting an optional value for thestatusEmojiattribute.final UserProfilewithStatusExpiration(Long value) Copy the current immutable object by setting a present value for the optionalstatusExpirationattribute.final UserProfilewithStatusExpiration(Optional<Long> optional) Copy the current immutable object by setting an optional value for thestatusExpirationattribute.final UserProfilewithStatusText(String value) Copy the current immutable object by setting a present value for the optionalstatusTextattribute.final UserProfilewithStatusText(Optional<String> optional) Copy the current immutable object by setting an optional value for thestatusTextattribute.final UserProfilewithTeamId(String value) Copy the current immutable object by setting a present value for the optionalteamIdattribute.final UserProfilewithTeamId(Optional<String> optional) Copy the current immutable object by setting an optional value for theteamIdattribute.final UserProfileCopy the current immutable object by setting a present value for the optionaltitleattribute.final UserProfileCopy the current immutable object by setting an optional value for thetitleattribute.final UserProfilewithUsername(String value) Copy the current immutable object by setting a present value for the optionalusernameattribute.final UserProfilewithUsername(Optional<String> optional) Copy the current immutable object by setting an optional value for theusernameattribute.final UserProfilewithUsernameNormalized(String value) Copy the current immutable object by setting a present value for the optionalusernameNormalizedattribute.final UserProfilewithUsernameNormalized(Optional<String> optional) Copy the current immutable object by setting an optional value for theusernameNormalizedattribute.
-
Method Details
-
getUsername
- Specified by:
getUsernamein interfaceUserProfileIF- Returns:
- The value of the
usernameattribute
-
getUsernameNormalized
- Specified by:
getUsernameNormalizedin interfaceUserProfileIF- Returns:
- The value of the
usernameNormalizedattribute
-
getRealName
- Specified by:
getRealNamein interfaceUserProfileIF- Returns:
- The value of the
realNameattribute
-
getRealNameNormalized
- Specified by:
getRealNameNormalizedin interfaceUserProfileIF- Returns:
- The value of the
realNameNormalizedattribute
-
getEmail
- Specified by:
getEmailin interfaceUserProfileIF- Returns:
- The value of the
emailattribute
-
getStatusText
- Specified by:
getStatusTextin interfaceUserProfileIF- Returns:
- The value of the
statusTextattribute
-
getStatusEmoji
- Specified by:
getStatusEmojiin interfaceUserProfileIF- Returns:
- The value of the
statusEmojiattribute
-
getStatusExpiration
- Specified by:
getStatusExpirationin interfaceUserProfileIF- Returns:
- The value of the
statusExpirationattribute
-
getTitle
- Specified by:
getTitlein interfaceUserProfileIF- Returns:
- The value of the
titleattribute
-
getPhone
- Specified by:
getPhonein interfaceUserProfileIF- Returns:
- The value of the
phoneattribute
-
getSkype
- Specified by:
getSkypein interfaceUserProfileIF- Returns:
- The value of the
skypeattribute
-
getPronouns
- Specified by:
getPronounsin interfaceUserProfileIF- Returns:
- The value of the
pronounsattribute
-
getFields
- Specified by:
getFieldsin interfaceUserProfileIF- Returns:
- The value of the
fieldsattribute
-
getTeamId
- Specified by:
getTeamIdin interfaceUserProfileIF- Returns:
- The value of the
teamIdattribute
-
getAvatarHash
- Specified by:
getAvatarHashin interfaceUserProfileIF- Returns:
- The value of the
avatarHashattribute
-
getImageOriginal
- Specified by:
getImageOriginalin interfaceUserProfileIF- Returns:
- The value of the
imageOriginalattribute
-
getImage24
- Specified by:
getImage24in interfaceUserProfileIF- Returns:
- The value of the
image24attribute
-
getImage32
- Specified by:
getImage32in interfaceUserProfileIF- Returns:
- The value of the
image32attribute
-
getImage48
- Specified by:
getImage48in interfaceUserProfileIF- Returns:
- The value of the
image48attribute
-
getImage72
- Specified by:
getImage72in interfaceUserProfileIF- Returns:
- The value of the
image72attribute
-
getImage192
- Specified by:
getImage192in interfaceUserProfileIF- Returns:
- The value of the
image192attribute
-
getImage512
- Specified by:
getImage512in interfaceUserProfileIF- Returns:
- The value of the
image512attribute
-
getImage1024
- Specified by:
getImage1024in interfaceUserProfileIF- Returns:
- The value of the
image1024attribute
-
withUsername
Copy the current immutable object by setting a present value for the optionalusernameattribute.- Parameters:
value- The value for username,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUsername
Copy the current immutable object by setting an optional value for theusernameattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for username- Returns:
- A modified copy or
thisif not changed
-
withUsernameNormalized
Copy the current immutable object by setting a present value for the optionalusernameNormalizedattribute.- Parameters:
value- The value for usernameNormalized,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUsernameNormalized
Copy the current immutable object by setting an optional value for theusernameNormalizedattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for usernameNormalized- Returns:
- A modified copy or
thisif not changed
-
withRealName
Copy the current immutable object by setting a present value for the optionalrealNameattribute.- Parameters:
value- The value for realName,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withRealName
Copy the current immutable object by setting an optional value for therealNameattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for realName- Returns:
- A modified copy or
thisif not changed
-
withRealNameNormalized
Copy the current immutable object by setting a present value for the optionalrealNameNormalizedattribute.- Parameters:
value- The value for realNameNormalized,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withRealNameNormalized
Copy the current immutable object by setting an optional value for therealNameNormalizedattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for realNameNormalized- Returns:
- A modified copy or
thisif not changed
-
withEmail
Copy the current immutable object by setting a present value for the optionalemailattribute.- Parameters:
value- The value for email,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withEmail
Copy the current immutable object by setting an optional value for theemailattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for email- Returns:
- A modified copy or
thisif not changed
-
withStatusText
Copy the current immutable object by setting a present value for the optionalstatusTextattribute.- Parameters:
value- The value for statusText,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withStatusText
Copy the current immutable object by setting an optional value for thestatusTextattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for statusText- Returns:
- A modified copy or
thisif not changed
-
withStatusEmoji
Copy the current immutable object by setting a present value for the optionalstatusEmojiattribute.- Parameters:
value- The value for statusEmoji,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withStatusEmoji
Copy the current immutable object by setting an optional value for thestatusEmojiattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for statusEmoji- Returns:
- A modified copy or
thisif not changed
-
withStatusExpiration
Copy the current immutable object by setting a present value for the optionalstatusExpirationattribute.- Parameters:
value- The value for statusExpiration,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withStatusExpiration
Copy the current immutable object by setting an optional value for thestatusExpirationattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for statusExpiration- Returns:
- A modified copy or
thisif not changed
-
withTitle
Copy the current immutable object by setting a present value for the optionaltitleattribute.- Parameters:
value- The value for title,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withTitle
Copy the current immutable object by setting an optional value for thetitleattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for title- Returns:
- A modified copy or
thisif not changed
-
withPhone
Copy the current immutable object by setting a present value for the optionalphoneattribute.- Parameters:
value- The value for phone,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withPhone
Copy the current immutable object by setting an optional value for thephoneattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for phone- Returns:
- A modified copy or
thisif not changed
-
withSkype
Copy the current immutable object by setting a present value for the optionalskypeattribute.- Parameters:
value- The value for skype,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSkype
Copy the current immutable object by setting an optional value for theskypeattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for skype- Returns:
- A modified copy or
thisif not changed
-
withPronouns
Copy the current immutable object by setting a present value for the optionalpronounsattribute.- Parameters:
value- The value for pronouns,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withPronouns
Copy the current immutable object by setting an optional value for thepronounsattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for pronouns- Returns:
- A modified copy or
thisif not changed
-
withFields
Copy the current immutable object by setting a present value for the optionalfieldsattribute.- Parameters:
value- The value for fields,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withFields
Copy the current immutable object by setting an optional value for thefieldsattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for fields- Returns:
- A modified copy or
thisif not changed
-
withTeamId
Copy the current immutable object by setting a present value for the optionalteamIdattribute.- Parameters:
value- The value for teamId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withTeamId
Copy the current immutable object by setting an optional value for theteamIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for teamId- Returns:
- A modified copy or
thisif not changed
-
withAvatarHash
Copy the current immutable object by setting a present value for the optionalavatarHashattribute.- Parameters:
value- The value for avatarHash,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withAvatarHash
Copy the current immutable object by setting an optional value for theavatarHashattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for avatarHash- Returns:
- A modified copy or
thisif not changed
-
withImageOriginal
Copy the current immutable object by setting a present value for the optionalimageOriginalattribute.- Parameters:
value- The value for imageOriginal,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withImageOriginal
Copy the current immutable object by setting an optional value for theimageOriginalattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for imageOriginal- Returns:
- A modified copy or
thisif not changed
-
withImage24
Copy the current immutable object by setting a present value for the optionalimage24attribute.- Parameters:
value- The value for image24,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withImage24
Copy the current immutable object by setting an optional value for theimage24attribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for image24- Returns:
- A modified copy or
thisif not changed
-
withImage32
Copy the current immutable object by setting a present value for the optionalimage32attribute.- Parameters:
value- The value for image32,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withImage32
Copy the current immutable object by setting an optional value for theimage32attribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for image32- Returns:
- A modified copy or
thisif not changed
-
withImage48
Copy the current immutable object by setting a present value for the optionalimage48attribute.- Parameters:
value- The value for image48,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withImage48
Copy the current immutable object by setting an optional value for theimage48attribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for image48- Returns:
- A modified copy or
thisif not changed
-
withImage72
Copy the current immutable object by setting a present value for the optionalimage72attribute.- Parameters:
value- The value for image72,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withImage72
Copy the current immutable object by setting an optional value for theimage72attribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for image72- Returns:
- A modified copy or
thisif not changed
-
withImage192
Copy the current immutable object by setting a present value for the optionalimage192attribute.- Parameters:
value- The value for image192,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withImage192
Copy the current immutable object by setting an optional value for theimage192attribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for image192- Returns:
- A modified copy or
thisif not changed
-
withImage512
Copy the current immutable object by setting a present value for the optionalimage512attribute.- Parameters:
value- The value for image512,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withImage512
Copy the current immutable object by setting an optional value for theimage512attribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for image512- Returns:
- A modified copy or
thisif not changed
-
withImage1024
Copy the current immutable object by setting a present value for the optionalimage1024attribute.- Parameters:
value- The value for image1024,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withImage1024
Copy the current immutable object by setting an optional value for theimage1024attribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for image1024- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofUserProfilethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:username,usernameNormalized,realName,realNameNormalized,email,statusText,statusEmoji,statusExpiration,title,phone,skype,pronouns,fields,teamId,avatarHash,imageOriginal,image24,image32,image48,image72,image192,image512,image1024. -
toString
Prints the immutable valueUserProfilewith attribute values. -
copyOf
Creates an immutable copy of aUserProfileIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable UserProfile instance
-
builder
Creates a builder forUserProfile.UserProfile.builder() .setUsername(Optional<String>) // optionalusername.setUsernameNormalized(Optional<String>) // optionalusernameNormalized.setRealName(Optional<String>) // optionalrealName.setRealNameNormalized(Optional<String>) // optionalrealNameNormalized.setEmail(Optional<String>) // optionalemail.setStatusText(Optional<String>) // optionalstatusText.setStatusEmoji(Optional<String>) // optionalstatusEmoji.setStatusExpiration(Optional<Long>) // optionalstatusExpiration.setTitle(Optional<String>) // optionaltitle.setPhone(Optional<String>) // optionalphone.setSkype(Optional<String>) // optionalskype.setPronouns(Optional<String>) // optionalpronouns.setFields(Optional<Map<String, ProfileField>>) // optionalfields.setTeamId(Optional<String>) // optionalteamId.setAvatarHash(Optional<String>) // optionalavatarHash.setImageOriginal(Optional<String>) // optionalimageOriginal.setImage24(Optional<String>) // optionalimage24.setImage32(Optional<String>) // optionalimage32.setImage48(Optional<String>) // optionalimage48.setImage72(Optional<String>) // optionalimage72.setImage192(Optional<String>) // optionalimage192.setImage512(Optional<String>) // optionalimage512.setImage1024(Optional<String>) // optionalimage1024.build();- Returns:
- A new UserProfile builder
-