NameAttribute protocol

The protocol defines methods for updating the name of a user profile.

Instance methods

withValue(_:)

Updates the attribute value.

withValueReset()

Resets the attribute value.

Method descriptions

withValue(_:)

func withValue(_ value: String?) -> UserProfileUpdate

Updates the attribute value.

Parameters:

value

The name of the user profile. The maximum length of the user profile name is 100 characters.

Returns:

The UserProfileUpdate class instance.

withValueReset()

func withValueReset() -> UserProfileUpdate

Resets the attribute value.

Returns:

The UserProfileUpdate class instance.