public class StringAttribute
extends java.lang.Object
EXAMPLE:
UserProfile userProfile = new UserProfile.Builder()
.apply(Attribute.customString("favorite_country").withValue("Russia"))
.build();
| Modifier and Type | Method and Description |
|---|---|
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> |
withValue(java.lang.String value)
Updates the string attribute with the specified value.
|
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> |
withValueIfUndefined(java.lang.String value)
Updates the attribute with the specified value only if the attribute value is undefined.
|
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> |
withValueReset()
Resets the attribute value.
|
@NonNull public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withValue(@NonNull java.lang.String value)
value - String valueUserProfileUpdate object@NonNull public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withValueIfUndefined(@NonNull java.lang.String value)
value - String valueUserProfileUpdate object@NonNull public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withValueReset()
UserProfileUpdate object