KeyedAppState.KeyedAppStateBuilder


@AutoValue.Builder
public abstract class KeyedAppState.KeyedAppStateBuilder


The builder for KeyedAppState.

Summary

Public methods

build

Added in 1.0.0
public @NonNull KeyedAppState build()

Instantiate the KeyedAppState.

Severity will default to SEVERITY_INFO if not set.

Assumes the key is set, key length is at most 100 characters, message length is as most 1000 characters, data length is at most 1000 characters, and severity is set to either SEVERITY_INFO or SEVERITY_ERROR.

setData

Added in 1.0.0
public abstract @NonNull KeyedAppState.KeyedAppStateBuilder setData(@Nullable String data)

Set getData.

setKey

Added in 1.0.0
public abstract @NonNull KeyedAppState.KeyedAppStateBuilder setKey(@NonNull String key)

Set getKey.

setMessage

Added in 1.0.0
public abstract @NonNull KeyedAppState.KeyedAppStateBuilder setMessage(@Nullable String message)

Set getMessage.

setSeverity

Added in 1.0.0
public abstract @NonNull KeyedAppState.KeyedAppStateBuilder setSeverity(int severity)

Set getSeverity.