Name | Type | Description | Notes |
---|---|---|---|
Key | Pointer to string | The user key. This is the only mandatory user attribute. | [optional] |
Secondary | Pointer to string | If provided, used with the user key to generate a variation in percentage rollouts | [optional] |
Ip | Pointer to string | The user's IP address | [optional] |
Country | Pointer to string | The user's country | [optional] |
Pointer to string | The user's email | [optional] | |
FirstName | Pointer to string | The user's first name | [optional] |
LastName | Pointer to string | The user's last name | [optional] |
Avatar | Pointer to string | An absolute URL to an avatar image. | [optional] |
Name | Pointer to string | The user's full name | [optional] |
Anonymous | Pointer to bool | Whether the user is anonymous. If true, this user does not appear on the Contexts list in the LaunchDarkly user interface. | [optional] |
Custom | Pointer to map[string]interface{} | Any other custom attributes for this user. Custom attributes contain any other user data that you would like to use to conditionally target your users. | [optional] |
PrivateAttrs | Pointer to []string | A list of attribute names that are marked as private. You can use these attributes in targeting rules and segments. If you are using a server-side SDK, the SDK will not send the private attribute back to LaunchDarkly. If you are using a client-side SDK, the SDK will send the private attribute back to LaunchDarkly for evaluation. However, the SDK won't send the attribute to LaunchDarkly in events data, LaunchDarkly won't store the private attribute, and the private attribute will not appear on the Contexts list. | [optional] |
func NewUser() *User
NewUser instantiates a new User object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewUserWithDefaults() *User
NewUserWithDefaults instantiates a new User object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *User) GetKey() string
GetKey returns the Key field if non-nil, zero value otherwise.
func (o *User) GetKeyOk() (*string, bool)
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetKey(v string)
SetKey sets Key field to given value.
func (o *User) HasKey() bool
HasKey returns a boolean if a field has been set.
func (o *User) GetSecondary() string
GetSecondary returns the Secondary field if non-nil, zero value otherwise.
func (o *User) GetSecondaryOk() (*string, bool)
GetSecondaryOk returns a tuple with the Secondary field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetSecondary(v string)
SetSecondary sets Secondary field to given value.
func (o *User) HasSecondary() bool
HasSecondary returns a boolean if a field has been set.
func (o *User) GetIp() string
GetIp returns the Ip field if non-nil, zero value otherwise.
func (o *User) GetIpOk() (*string, bool)
GetIpOk returns a tuple with the Ip field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetIp(v string)
SetIp sets Ip field to given value.
func (o *User) HasIp() bool
HasIp returns a boolean if a field has been set.
func (o *User) GetCountry() string
GetCountry returns the Country field if non-nil, zero value otherwise.
func (o *User) GetCountryOk() (*string, bool)
GetCountryOk returns a tuple with the Country field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetCountry(v string)
SetCountry sets Country field to given value.
func (o *User) HasCountry() bool
HasCountry returns a boolean if a field has been set.
func (o *User) GetEmail() string
GetEmail returns the Email field if non-nil, zero value otherwise.
func (o *User) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetEmail(v string)
SetEmail sets Email field to given value.
func (o *User) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o *User) GetFirstName() string
GetFirstName returns the FirstName field if non-nil, zero value otherwise.
func (o *User) GetFirstNameOk() (*string, bool)
GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetFirstName(v string)
SetFirstName sets FirstName field to given value.
func (o *User) HasFirstName() bool
HasFirstName returns a boolean if a field has been set.
func (o *User) GetLastName() string
GetLastName returns the LastName field if non-nil, zero value otherwise.
func (o *User) GetLastNameOk() (*string, bool)
GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetLastName(v string)
SetLastName sets LastName field to given value.
func (o *User) HasLastName() bool
HasLastName returns a boolean if a field has been set.
func (o *User) GetAvatar() string
GetAvatar returns the Avatar field if non-nil, zero value otherwise.
func (o *User) GetAvatarOk() (*string, bool)
GetAvatarOk returns a tuple with the Avatar field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetAvatar(v string)
SetAvatar sets Avatar field to given value.
func (o *User) HasAvatar() bool
HasAvatar returns a boolean if a field has been set.
func (o *User) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *User) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetName(v string)
SetName sets Name field to given value.
func (o *User) HasName() bool
HasName returns a boolean if a field has been set.
func (o *User) GetAnonymous() bool
GetAnonymous returns the Anonymous field if non-nil, zero value otherwise.
func (o *User) GetAnonymousOk() (*bool, bool)
GetAnonymousOk returns a tuple with the Anonymous field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetAnonymous(v bool)
SetAnonymous sets Anonymous field to given value.
func (o *User) HasAnonymous() bool
HasAnonymous returns a boolean if a field has been set.
func (o *User) GetCustom() map[string]interface{}
GetCustom returns the Custom field if non-nil, zero value otherwise.
func (o *User) GetCustomOk() (*map[string]interface{}, bool)
GetCustomOk returns a tuple with the Custom field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetCustom(v map[string]interface{})
SetCustom sets Custom field to given value.
func (o *User) HasCustom() bool
HasCustom returns a boolean if a field has been set.
func (o *User) GetPrivateAttrs() []string
GetPrivateAttrs returns the PrivateAttrs field if non-nil, zero value otherwise.
func (o *User) GetPrivateAttrsOk() (*[]string, bool)
GetPrivateAttrsOk returns a tuple with the PrivateAttrs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetPrivateAttrs(v []string)
SetPrivateAttrs sets PrivateAttrs field to given value.
func (o *User) HasPrivateAttrs() bool
HasPrivateAttrs returns a boolean if a field has been set.