StringAttribute class

com.yandex.metrica.profile

public class StringAttribute

Methods of the class set the value of a string attribute.

Methods

UserProfileUpdate<? extends UserProfileUpdatePatcher>withValue(@NonNull String value)

Updates the attribute value.

UserProfileUpdate<? extends UserProfileUpdatePatcher>withValueIfUndefined(@NonNull String value)

Updates the attribute with the specified value only if the attribute value is undefined.

UserProfileUpdate<? extends UserProfileUpdatePatcher>withValueReset()

Resets the attribute value.

Method descriptions

withValue

public UserProfileUpdate<? extends UserProfileUpdatePatcher> withValue(@NonNull String value)

Updates the attribute value.

Parameters:
value

Attribute value as a string. The maximum length of the value is 200 characters.

Returns:

The instance of the UserProfileUpdate class that contains all attribute updates.

withValueIfUndefined

public UserProfileUpdate<? extends UserProfileUpdatePatcher> withValueIfUndefined(@NonNull String value)

Updates the attribute with the specified value only if the attribute value is undefined.

Parameters:
value

Attribute value as a string. The maximum length of the value is 200 characters.

Returns:

The instance of the UserProfileUpdate class that contains all attribute updates.

withValueReset

public UserProfileUpdate<? extends UserProfileUpdatePatcher> withValueReset()

Resets the attribute value.

Returns:

The instance of the UserProfileUpdate class that contains all attribute updates.