ContextBuilder
or ContextMultiBuilder
instead via LDContext.builder(String)
.@Deprecated
public static class LDUser.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(LDUser user)
Deprecated.
Creates a builder based on an existing user.
|
Builder(java.lang.String key)
Deprecated.
Creates a builder with the specified key.
|
Modifier and Type | Method and Description |
---|---|
LDUser.Builder |
anonymous(boolean anonymous)
Deprecated.
Sets whether this user is anonymous.
|
LDUser.Builder |
avatar(java.lang.String avatar)
Deprecated.
Sets the user's avatar.
|
LDUser |
build()
Deprecated.
Builds the configured
LDUser object. |
LDUser.Builder |
country(java.lang.String s)
Deprecated.
Set the country for a user.
|
LDUser.Builder |
custom(java.lang.String k,
boolean b)
Deprecated.
Add a boolean-valued custom attribute.
|
LDUser.Builder |
custom(java.lang.String k,
double n)
Deprecated.
Adds a double-precision numeric custom attribute.
|
LDUser.Builder |
custom(java.lang.String k,
int n)
Deprecated.
Adds an integer-valued custom attribute.
|
LDUser.Builder |
custom(java.lang.String k,
LDValue v)
Deprecated.
Add a custom attribute whose value can be any JSON type, using
LDValue . |
LDUser.Builder |
custom(java.lang.String k,
java.lang.String v)
Deprecated.
Adds a
String -valued custom attribute. |
LDUser.Builder |
email(java.lang.String email)
Deprecated.
Sets the user's e-mail address.
|
LDUser.Builder |
firstName(java.lang.String firstName)
Deprecated.
Sets the user's first name
|
LDUser.Builder |
ip(java.lang.String s)
Deprecated.
Sets the IP for a user.
|
LDUser.Builder |
key(java.lang.String s)
Deprecated.
Changes the user's key.
|
LDUser.Builder |
lastName(java.lang.String lastName)
Deprecated.
Sets the user's last name.
|
LDUser.Builder |
name(java.lang.String name)
Deprecated.
Sets the user's full name.
|
LDUser.Builder |
privateAvatar(java.lang.String avatar)
Deprecated.
Sets the user's avatar, and ensures that the avatar attribute will not be sent back to LaunchDarkly.
|
LDUser.Builder |
privateCountry(java.lang.String s)
Deprecated.
Set the country for a user, and ensures that the country attribute will not be sent back to LaunchDarkly.
|
LDUser.Builder |
privateCustom(java.lang.String k,
boolean b)
Deprecated.
Add a boolean-valued custom attribute that will not be sent back to LaunchDarkly.
|
LDUser.Builder |
privateCustom(java.lang.String k,
double n)
Deprecated.
Add a double-precision numeric custom attribute that will not be sent back to LaunchDarkly.
|
LDUser.Builder |
privateCustom(java.lang.String k,
int n)
Deprecated.
Add an int-valued custom attribute that will not be sent back to LaunchDarkly.
|
LDUser.Builder |
privateCustom(java.lang.String k,
LDValue v)
Deprecated.
Add a custom attribute of any JSON type, that will not be sent back to LaunchDarkly.
|
LDUser.Builder |
privateCustom(java.lang.String k,
java.lang.String v)
Deprecated.
Add a
String -valued custom attribute that will not be sent back to LaunchDarkly. |
LDUser.Builder |
privateEmail(java.lang.String email)
Deprecated.
Sets the user's e-mail address, and ensures that the e-mail address attribute will not be sent back to LaunchDarkly.
|
LDUser.Builder |
privateFirstName(java.lang.String firstName)
Deprecated.
Sets the user's first name, and ensures that the first name attribute will not be sent back to LaunchDarkly.
|
LDUser.Builder |
privateIp(java.lang.String s)
Deprecated.
Sets the IP for a user, and ensures that the IP attribute is not sent back to LaunchDarkly.
|
LDUser.Builder |
privateLastName(java.lang.String lastName)
Deprecated.
Sets the user's last name, and ensures that the last name attribute will not be sent back to LaunchDarkly.
|
LDUser.Builder |
privateName(java.lang.String name)
Deprecated.
Sets the user's full name, and ensures that the name attribute will not be sent back to LaunchDarkly.
|
public Builder(java.lang.String key)
key
- the unique key for this userpublic Builder(LDUser user)
user
- an existing LDUser
public LDUser.Builder key(java.lang.String s)
s
- the user keypublic LDUser.Builder ip(java.lang.String s)
s
- the IP address for the userpublic LDUser.Builder privateIp(java.lang.String s)
s
- the IP address for the userpublic LDUser.Builder country(java.lang.String s)
s
- the country for the userpublic LDUser.Builder privateCountry(java.lang.String s)
s
- the country for the userpublic LDUser.Builder firstName(java.lang.String firstName)
firstName
- the user's first namepublic LDUser.Builder privateFirstName(java.lang.String firstName)
firstName
- the user's first namepublic LDUser.Builder anonymous(boolean anonymous)
anonymous
- whether the user is anonymouspublic LDUser.Builder lastName(java.lang.String lastName)
lastName
- the user's last namepublic LDUser.Builder privateLastName(java.lang.String lastName)
lastName
- the user's last namepublic LDUser.Builder name(java.lang.String name)
name
- the user's full namepublic LDUser.Builder privateName(java.lang.String name)
name
- the user's full namepublic LDUser.Builder avatar(java.lang.String avatar)
avatar
- the user's avatarpublic LDUser.Builder privateAvatar(java.lang.String avatar)
avatar
- the user's avatarpublic LDUser.Builder email(java.lang.String email)
email
- the e-mail addresspublic LDUser.Builder privateEmail(java.lang.String email)
email
- the e-mail addresspublic LDUser.Builder custom(java.lang.String k, java.lang.String v)
String
-valued custom attribute. When set to one of the
built-in
user attribute keys, this custom attribute will be ignored.k
- the key for the custom attributev
- the value for the custom attributepublic LDUser.Builder custom(java.lang.String k, int n)
k
- the key for the custom attributen
- the value for the custom attributepublic LDUser.Builder custom(java.lang.String k, double n)
k
- the key for the custom attributen
- the value for the custom attributepublic LDUser.Builder custom(java.lang.String k, boolean b)
k
- the key for the custom attributeb
- the value for the custom attributepublic LDUser.Builder custom(java.lang.String k, LDValue v)
LDValue
. When set to one of the
built-in
user attribute keys, this custom attribute will be ignored.k
- the key for the custom attributev
- the value for the custom attributepublic LDUser.Builder privateCustom(java.lang.String k, java.lang.String v)
String
-valued custom attribute that will not be sent back to LaunchDarkly.
When set to one of the
built-in
user attribute keys, this custom attribute will be ignored.k
- the key for the custom attributev
- the value for the custom attributepublic LDUser.Builder privateCustom(java.lang.String k, int n)
k
- the key for the custom attributen
- the value for the custom attributepublic LDUser.Builder privateCustom(java.lang.String k, double n)
k
- the key for the custom attributen
- the value for the custom attributepublic LDUser.Builder privateCustom(java.lang.String k, boolean b)
k
- the key for the custom attributeb
- the value for the custom attributepublic LDUser.Builder privateCustom(java.lang.String k, LDValue v)
k
- the key for the custom attributev
- the value for the custom attribute