# ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder

Artifact: [androidx.enterprise:enterprise-feedback](https://developer.android.com/jetpack/androidx/releases/enterprise) [View Source](https://cs.android.com/search?q=file:androidx/enterprise/feedback/ReceivedKeyedAppState.java+class:androidx.enterprise.feedback.ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/enterprise#1.0.0)

*** ** * ** ***


```
@AutoValue.Builder
public abstract class ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder
```

<br />

*** ** * ** ***

The builder for `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState`.

## Summary

| ### Public methods |
|---|---|
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState` | `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder#build()()` Instantiate the `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState`. |
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder` | `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder#setData(java.lang.String)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html data)` Set `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getData()`. |
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder` | `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder#setKey(java.lang.String)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html key)` Set `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getKey()`. |
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder` | `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder#setMessage(java.lang.String)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html message)` Set `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getMessage()`. |
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder` | `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder#setPackageName(java.lang.String)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html packageName)` Set `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getPackageName()`. |
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder` | `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder#setSeverity(int)(int severity)` Set `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getSeverity()`. |
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder` | `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder#setTimestamp(long)(long timestamp)` Set `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getTimestamp()`. |

## Public methods

### build

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/enterprise#1.0.0)

```
public abstract @NonNull ReceivedKeyedAppState build()
```

Instantiate the `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState`.

Assumes the key and severity are set.

### setData

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/enterprise#1.0.0)

```
public abstract @NonNull ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder setData(@Nullable String data)
```

Set `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getData()`.

### setKey

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/enterprise#1.0.0)

```
public abstract @NonNull ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder setKey(@NonNull String key)
```

Set `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getKey()`.

### setMessage

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/enterprise#1.0.0)

```
public abstract @NonNull ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder setMessage(@Nullable String message)
```

Set `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getMessage()`.

### setPackageName

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/enterprise#1.0.0)

```
public abstract @NonNull ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder setPackageName(@NonNull String packageName)
```

Set `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getPackageName()`.

### setSeverity

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/enterprise#1.0.0)

```
public abstract @NonNull ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder setSeverity(int severity)
```

Set `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getSeverity()`.

### setTimestamp

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/enterprise#1.0.0)

```
public abstract @NonNull ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder setTimestamp(long timestamp)
```

Set `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getTimestamp()`.