---
metadata:
  - name: generator
    content: Diplodoc Platform v5.66.1
alternate:
  - https://appmetrica.yandex.com/docs/en/sdk/ios/analytics/objectivec/AMACustomStringAttribute.md
  - https://appmetrica.yandex.com/docs/ru/sdk/ios/analytics/objectivec/AMACustomStringAttribute.md
  - https://appmetrica.yandex.com/docs/zh/sdk/ios/analytics/objectivec/AMACustomStringAttribute.md
  - href: https://appmetrica.yandex.com/docs/zh/sdk/ios/analytics/objectivec/AMACustomStringAttribute.md
    type: text/markdown
    title: Markdown version
  - href: https://appmetrica.yandex.com/docs/zh/llms.txt?revision=r22002143
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.com/docs/zh/llms.txt?revision=r22002143

# AMACustomStringAttribute 协议

该协议定义了更新字符串属性值的方法。

## Instance methods {#instance_summary}

#|
|| -[withValue:](#method_withValue) | 更新属性值。 ||
|| -[withValueIfUndefined:](#method_withValueIfUndefined) | 如果属性值之前未设置，则更新它。 ||
|| -[withValueReset](#method_withValueReset) | 重置属性值。 ||
|#

## Method descriptions {#method_detail}

### -withValue: {#method_withValue}

```objectivec translate=no
- (AMAUserProfileUpdate *)withValue:(nullable NSString *)value
```

更新属性值。

**参数：**

#|
|| `value` | 更新属性值。 ||
|#

**返回：**

The `AMAUserProfileUpdate` 类实例。

### -withValueIfUndefined: {#method_withValueIfUndefined}

```objectivec translate=no
- (AMAUserProfileUpdate *)withValueIfUndefined:(nullable NSString *)value
```

如果属性值之前未设置，则更新它。

**参数：**

#|
|| `value` | 属性值为字符串。 最大值长度为200个字符。 ||
|#

**返回：**

The `AMAUserProfileUpdate` 类实例。

### -withValueReset {#method_withValueReset}

```objectivec translate=no
- (AMAUserProfileUpdate *)withValueReset
```

重置属性值。

**返回：**

The `AMAUserProfileUpdate` 类实例。
