Interface BetaOutputBehavior.Visitor
-
- All Implemented Interfaces:
public interface BetaOutputBehavior.Visitor<T extends Object>An interface that defines how to map each variant of BetaOutputBehavior to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitCreateNew(BetaOutputBehaviorCreateNew createNew)Write the result to a new memory store that starts as a copy of the input memory store. abstract TvisitUpdateExisting(BetaOutputBehaviorUpdateExisting updateExisting)Write the result into the input memory store instead of a new memory store. Tunknown(JsonValue json)Maps an unknown variant of BetaOutputBehavior to a value of type T. -
-
Method Detail
-
visitCreateNew
abstract T visitCreateNew(BetaOutputBehaviorCreateNew createNew)
Write the result to a new memory store that starts as a copy of the input memory store. This is the default.
The new memory store is in the same workspace as the dream. The dream doesn't change the input memory store.
-
visitUpdateExisting
abstract T visitUpdateExisting(BetaOutputBehaviorUpdateExisting updateExisting)
Write the result into the input memory store instead of a new memory store.
The credential must be allowed to write memory stores, or the request returns a 403 error. While another
update_existingdream on the same memory store hasn't fully stopped, the request returns a 409 error.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of BetaOutputBehavior to a value of type T.
An instance of BetaOutputBehavior can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-