Package com.launchdarkly.sdk
Class LDUser.Builder
java.lang.Object
com.launchdarkly.sdk.LDUser.Builder
- Enclosing class:
- LDUser
Deprecated.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionanonymous
(boolean anonymous) Deprecated.Sets whether this user is anonymous.Deprecated.Sets the user's avatar.build()
Deprecated.Builds the configuredLDUser
object.Deprecated.Set the country for a user.Deprecated.Add a boolean-valued custom attribute.Deprecated.Adds a double-precision numeric custom attribute.Deprecated.Adds an integer-valued custom attribute.Deprecated.Add a custom attribute whose value can be any JSON type, usingLDValue
.Deprecated.Adds aString
-valued custom attribute.Deprecated.Sets the user's e-mail address.Deprecated.Sets the user's first nameDeprecated.Sets the IP for a user.Deprecated.Changes the user's key.Deprecated.Sets the user's last name.Deprecated.Sets the user's full name.privateAvatar
(String avatar) Deprecated.Sets the user's avatar, and ensures that the avatar attribute will not be sent back to LaunchDarkly.Deprecated.Set the country for a user, and ensures that the country attribute will not be sent back to LaunchDarkly.privateCustom
(String k, boolean b) Deprecated.Add a boolean-valued custom attribute that will not be sent back to LaunchDarkly.privateCustom
(String k, double n) Deprecated.Add a double-precision numeric custom attribute that will not be sent back to LaunchDarkly.privateCustom
(String k, int n) Deprecated.Add an int-valued custom attribute that will not be sent back to LaunchDarkly.privateCustom
(String k, LDValue v) Deprecated.Add a custom attribute of any JSON type, that will not be sent back to LaunchDarkly.privateCustom
(String k, String v) Deprecated.Add aString
-valued custom attribute that will not be sent back to LaunchDarkly.privateEmail
(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.privateFirstName
(String firstName) Deprecated.Sets the user's first name, and ensures that the first name attribute will not be sent back to LaunchDarkly.Deprecated.Sets the IP for a user, and ensures that the IP attribute is not sent back to LaunchDarkly.privateLastName
(String lastName) Deprecated.Sets the user's last name, and ensures that the last name attribute will not be sent back to LaunchDarkly.privateName
(String name) Deprecated.Sets the user's full name, and ensures that the name attribute will not be sent back to LaunchDarkly.
-
Constructor Details
-
Builder
Deprecated.Creates a builder with the specified key.- Parameters:
key
- the unique key for this user
-
Builder
Deprecated.Creates a builder based on an existing user.- Parameters:
user
- an existingLDUser
-
-
Method Details
-
key
Deprecated.Changes the user's key.- Parameters:
s
- the user key- Returns:
- the builder
-
ip
Deprecated.Sets the IP for a user.- Parameters:
s
- the IP address for the user- Returns:
- the builder
-
privateIp
Deprecated.Sets the IP for a user, and ensures that the IP attribute is not sent back to LaunchDarkly.- Parameters:
s
- the IP address for the user- Returns:
- the builder
-
country
Deprecated.Set the country for a user. Before version 5.0.0, this field was validated and normalized by the SDK as an ISO-3166-1 country code before assignment. This behavior has been removed so that the SDK can treat this field as a normal string, leaving the meaning of this field up to the application.- Parameters:
s
- the country for the user- Returns:
- the builder
-
privateCountry
Deprecated.Set the country for a user, and ensures that the country attribute will not be sent back to LaunchDarkly. Before version 5.0.0, this field was validated and normalized by the SDK as an ISO-3166-1 country code before assignment. This behavior has been removed so that the SDK can treat this field as a normal string, leaving the meaning of this field up to the application.- Parameters:
s
- the country for the user- Returns:
- the builder
-
firstName
Deprecated.Sets the user's first name- Parameters:
firstName
- the user's first name- Returns:
- the builder
-
privateFirstName
Deprecated.Sets the user's first name, and ensures that the first name attribute will not be sent back to LaunchDarkly.- Parameters:
firstName
- the user's first name- Returns:
- the builder
-
anonymous
Deprecated.Sets whether this user is anonymous.- Parameters:
anonymous
- whether the user is anonymous- Returns:
- the builder
-
lastName
Deprecated.Sets the user's last name.- Parameters:
lastName
- the user's last name- Returns:
- the builder
-
privateLastName
Deprecated.Sets the user's last name, and ensures that the last name attribute will not be sent back to LaunchDarkly.- Parameters:
lastName
- the user's last name- Returns:
- the builder
-
name
Deprecated.Sets the user's full name.- Parameters:
name
- the user's full name- Returns:
- the builder
-
privateName
Deprecated.Sets the user's full name, and ensures that the name attribute will not be sent back to LaunchDarkly.- Parameters:
name
- the user's full name- Returns:
- the builder
-
avatar
Deprecated.Sets the user's avatar.- Parameters:
avatar
- the user's avatar- Returns:
- the builder
-
privateAvatar
Deprecated.Sets the user's avatar, and ensures that the avatar attribute will not be sent back to LaunchDarkly.- Parameters:
avatar
- the user's avatar- Returns:
- the builder
-
email
Deprecated.Sets the user's e-mail address.- Parameters:
email
- the e-mail address- Returns:
- the builder
-
privateEmail
Deprecated.Sets the user's e-mail address, and ensures that the e-mail address attribute will not be sent back to LaunchDarkly.- Parameters:
email
- the e-mail address- Returns:
- the builder
-
custom
Deprecated.Adds aString
-valued custom attribute. When set to one of the built-in user attribute keys, this custom attribute will be ignored.- Parameters:
k
- the key for the custom attributev
- the value for the custom attribute- Returns:
- the builder
-
custom
Deprecated.Adds an integer-valued custom attribute. When set to one of the built-in user attribute keys, this custom attribute will be ignored.- Parameters:
k
- the key for the custom attributen
- the value for the custom attribute- Returns:
- the builder
-
custom
Deprecated.Adds a double-precision numeric custom attribute. When set to one of the built-in user attribute keys, this custom attribute will be ignored.- Parameters:
k
- the key for the custom attributen
- the value for the custom attribute- Returns:
- the builder
-
custom
Deprecated.Add a boolean-valued custom attribute. When set to one of the built-in user attribute keys, this custom attribute will be ignored.- Parameters:
k
- the key for the custom attributeb
- the value for the custom attribute- Returns:
- the builder
-
custom
Deprecated.Add a custom attribute whose value can be any JSON type, usingLDValue
. When set to one of the built-in user attribute keys, this custom attribute will be ignored.- Parameters:
k
- the key for the custom attributev
- the value for the custom attribute- Returns:
- the builder
-
privateCustom
Deprecated.Add aString
-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.- Parameters:
k
- the key for the custom attributev
- the value for the custom attribute- Returns:
- the builder
-
privateCustom
Deprecated.Add an int-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.- Parameters:
k
- the key for the custom attributen
- the value for the custom attribute- Returns:
- the builder
-
privateCustom
Deprecated.Add a double-precision numeric 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.- Parameters:
k
- the key for the custom attributen
- the value for the custom attribute- Returns:
- the builder
-
privateCustom
Deprecated.Add a boolean-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.- Parameters:
k
- the key for the custom attributeb
- the value for the custom attribute- Returns:
- the builder
-
privateCustom
Deprecated.Add a custom attribute of any JSON type, 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.- Parameters:
k
- the key for the custom attributev
- the value for the custom attribute- Returns:
- the builder
-
build
Deprecated.Builds the configuredLDUser
object.- Returns:
- the
LDUser
configured by this builder
-
ContextBuilder
orContextMultiBuilder
instead viaLDContext.builder(String)
.