CustomStringAttribute protocol

The protocol defines methods for updating the value of a string attribute.

Instance methods

withValue(_:)

Updates the attribute value.

withValueIfUndefined(_:)

Updates the attribute value if it wasn't set earlier.

withValueReset()

Resets the attribute value.

Method descriptions

withValue(_:)

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

Updates the attribute value.

Parameters:

value

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

Returns:

The UserProfileUpdate class instance.

withValueIfUndefined(_:)

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

Updates the attribute value if it wasn't set earlier.

Parameters:

value

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

Returns:

The UserProfileUpdate class instance.

withValueReset()

func withValueReset() -> UserProfileUpdate

Resets the attribute value.

Returns:

The UserProfileUpdate class instance.