@NotThreadSafe public static final class UserProfile.Builder extends Object
UserProfile.
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 |
|---|---|
UserProfile |
build()
Builds a new
UserProfile. |
UserProfile.Builder |
from(UserProfileIF instance)
Fill a builder with attribute values from the provided
UserProfileIF instance. |
UserProfile.Builder |
setAvatarHash(Optional<String> avatarHash)
Initializes the optional value
avatarHash to avatarHash. |
UserProfile.Builder |
setAvatarHash(String avatarHash)
Initializes the optional value
avatarHash to avatarHash. |
UserProfile.Builder |
setEmail(Optional<String> email)
Initializes the optional value
email to email. |
UserProfile.Builder |
setEmail(String email)
Initializes the optional value
email to email. |
UserProfile.Builder |
setImage1024(Optional<String> image1024)
Initializes the optional value
image1024 to image1024. |
UserProfile.Builder |
setImage1024(String image1024)
Initializes the optional value
image1024 to image1024. |
UserProfile.Builder |
setImage192(Optional<String> image192)
Initializes the optional value
image192 to image192. |
UserProfile.Builder |
setImage192(String image192)
Initializes the optional value
image192 to image192. |
UserProfile.Builder |
setImage24(Optional<String> image24)
Initializes the optional value
image24 to image24. |
UserProfile.Builder |
setImage24(String image24)
Initializes the optional value
image24 to image24. |
UserProfile.Builder |
setImage32(Optional<String> image32)
Initializes the optional value
image32 to image32. |
UserProfile.Builder |
setImage32(String image32)
Initializes the optional value
image32 to image32. |
UserProfile.Builder |
setImage48(Optional<String> image48)
Initializes the optional value
image48 to image48. |
UserProfile.Builder |
setImage48(String image48)
Initializes the optional value
image48 to image48. |
UserProfile.Builder |
setImage512(Optional<String> image512)
Initializes the optional value
image512 to image512. |
UserProfile.Builder |
setImage512(String image512)
Initializes the optional value
image512 to image512. |
UserProfile.Builder |
setImage72(Optional<String> image72)
Initializes the optional value
image72 to image72. |
UserProfile.Builder |
setImage72(String image72)
Initializes the optional value
image72 to image72. |
UserProfile.Builder |
setImageOriginal(Optional<String> imageOriginal)
Initializes the optional value
imageOriginal to imageOriginal. |
UserProfile.Builder |
setImageOriginal(String imageOriginal)
Initializes the optional value
imageOriginal to imageOriginal. |
UserProfile.Builder |
setPhone(Optional<String> phone)
Initializes the optional value
phone to phone. |
UserProfile.Builder |
setPhone(String phone)
Initializes the optional value
phone to phone. |
UserProfile.Builder |
setRealName(Optional<String> realName)
Initializes the optional value
realName to realName. |
UserProfile.Builder |
setRealName(String realName)
Initializes the optional value
realName to realName. |
UserProfile.Builder |
setRealNameNormalized(Optional<String> realNameNormalized)
Initializes the optional value
realNameNormalized to realNameNormalized. |
UserProfile.Builder |
setRealNameNormalized(String realNameNormalized)
Initializes the optional value
realNameNormalized to realNameNormalized. |
UserProfile.Builder |
setSkype(Optional<String> skype)
Initializes the optional value
skype to skype. |
UserProfile.Builder |
setSkype(String skype)
Initializes the optional value
skype to skype. |
UserProfile.Builder |
setStatusEmoji(Optional<String> statusEmoji)
Initializes the optional value
statusEmoji to statusEmoji. |
UserProfile.Builder |
setStatusEmoji(String statusEmoji)
Initializes the optional value
statusEmoji to statusEmoji. |
UserProfile.Builder |
setStatusText(Optional<String> statusText)
Initializes the optional value
statusText to statusText. |
UserProfile.Builder |
setStatusText(String statusText)
Initializes the optional value
statusText to statusText. |
UserProfile.Builder |
setTeamId(Optional<String> teamId)
Initializes the optional value
teamId to teamId. |
UserProfile.Builder |
setTeamId(String teamId)
Initializes the optional value
teamId to teamId. |
UserProfile.Builder |
setTitle(Optional<String> title)
Initializes the optional value
title to title. |
UserProfile.Builder |
setTitle(String title)
Initializes the optional value
title to title. |
UserProfile.Builder |
setUsername(Optional<String> username)
Initializes the optional value
username to username. |
UserProfile.Builder |
setUsername(String username)
Initializes the optional value
username to username. |
UserProfile.Builder |
setUsernameNormalized(Optional<String> usernameNormalized)
Initializes the optional value
usernameNormalized to usernameNormalized. |
UserProfile.Builder |
setUsernameNormalized(String usernameNormalized)
Initializes the optional value
usernameNormalized to usernameNormalized. |
public final UserProfile.Builder from(UserProfileIF instance)
UserProfileIF instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UserProfile.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 UserProfile.Builder setUsername(Optional<String> username)
username to username.username - The value for usernamethis builder for use in a chained invocationpublic final UserProfile.Builder setUsernameNormalized(@Nullable String usernameNormalized)
usernameNormalized to usernameNormalized.usernameNormalized - The value for usernameNormalized, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setUsernameNormalized(Optional<String> usernameNormalized)
usernameNormalized to usernameNormalized.usernameNormalized - The value for usernameNormalizedthis builder for use in a chained invocationpublic final UserProfile.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 UserProfile.Builder setRealName(Optional<String> realName)
realName to realName.realName - The value for realNamethis builder for use in a chained invocationpublic final UserProfile.Builder setRealNameNormalized(@Nullable String realNameNormalized)
realNameNormalized to realNameNormalized.realNameNormalized - The value for realNameNormalized, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setRealNameNormalized(Optional<String> realNameNormalized)
realNameNormalized to realNameNormalized.realNameNormalized - The value for realNameNormalizedthis builder for use in a chained invocationpublic final UserProfile.Builder setEmail(@Nullable String email)
email to email.email - The value for email, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setEmail(Optional<String> email)
email to email.email - The value for emailthis builder for use in a chained invocationpublic final UserProfile.Builder setStatusText(@Nullable String statusText)
statusText to statusText.statusText - The value for statusText, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setStatusText(Optional<String> statusText)
statusText to statusText.statusText - The value for statusTextthis builder for use in a chained invocationpublic final UserProfile.Builder setStatusEmoji(@Nullable String statusEmoji)
statusEmoji to statusEmoji.statusEmoji - The value for statusEmoji, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setStatusEmoji(Optional<String> statusEmoji)
statusEmoji to statusEmoji.statusEmoji - The value for statusEmojithis builder for use in a chained invocationpublic final UserProfile.Builder setTitle(@Nullable String title)
title to title.title - The value for title, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setTitle(Optional<String> title)
title to title.title - The value for titlethis builder for use in a chained invocationpublic final UserProfile.Builder setPhone(@Nullable String phone)
phone to phone.phone - The value for phone, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setPhone(Optional<String> phone)
phone to phone.phone - The value for phonethis builder for use in a chained invocationpublic final UserProfile.Builder setSkype(@Nullable String skype)
skype to skype.skype - The value for skype, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setSkype(Optional<String> skype)
skype to skype.skype - The value for skypethis builder for use in a chained invocationpublic final UserProfile.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 UserProfile.Builder setTeamId(Optional<String> teamId)
teamId to teamId.teamId - The value for teamIdthis builder for use in a chained invocationpublic final UserProfile.Builder setAvatarHash(@Nullable String avatarHash)
avatarHash to avatarHash.avatarHash - The value for avatarHash, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setAvatarHash(Optional<String> avatarHash)
avatarHash to avatarHash.avatarHash - The value for avatarHashthis builder for use in a chained invocationpublic final UserProfile.Builder setImageOriginal(@Nullable String imageOriginal)
imageOriginal to imageOriginal.imageOriginal - The value for imageOriginal, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setImageOriginal(Optional<String> imageOriginal)
imageOriginal to imageOriginal.imageOriginal - The value for imageOriginalthis builder for use in a chained invocationpublic final UserProfile.Builder setImage24(@Nullable String image24)
image24 to image24.image24 - The value for image24, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setImage24(Optional<String> image24)
image24 to image24.image24 - The value for image24this builder for use in a chained invocationpublic final UserProfile.Builder setImage32(@Nullable String image32)
image32 to image32.image32 - The value for image32, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setImage32(Optional<String> image32)
image32 to image32.image32 - The value for image32this builder for use in a chained invocationpublic final UserProfile.Builder setImage48(@Nullable String image48)
image48 to image48.image48 - The value for image48, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setImage48(Optional<String> image48)
image48 to image48.image48 - The value for image48this builder for use in a chained invocationpublic final UserProfile.Builder setImage72(@Nullable String image72)
image72 to image72.image72 - The value for image72, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setImage72(Optional<String> image72)
image72 to image72.image72 - The value for image72this builder for use in a chained invocationpublic final UserProfile.Builder setImage192(@Nullable String image192)
image192 to image192.image192 - The value for image192, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setImage192(Optional<String> image192)
image192 to image192.image192 - The value for image192this builder for use in a chained invocationpublic final UserProfile.Builder setImage512(@Nullable String image512)
image512 to image512.image512 - The value for image512, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setImage512(Optional<String> image512)
image512 to image512.image512 - The value for image512this builder for use in a chained invocationpublic final UserProfile.Builder setImage1024(@Nullable String image1024)
image1024 to image1024.image1024 - The value for image1024, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UserProfile.Builder setImage1024(Optional<String> image1024)
image1024 to image1024.image1024 - The value for image1024this builder for use in a chained invocationpublic UserProfile build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
UserProfile.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.