Class RawMessageDeltaEvent.Delta.Builder
-
- All Implemented Interfaces:
public final class RawMessageDeltaEvent.Delta.BuilderA builder for Delta.
-
-
Method Summary
-
-
Method Detail
-
stopReason
final RawMessageDeltaEvent.Delta.Builder stopReason(StopReason stopReason)
-
stopReason
final RawMessageDeltaEvent.Delta.Builder stopReason(Optional<StopReason> stopReason)
Alias for calling Builder.stopReason with
stopReason.orElse(null).
-
stopReason
final RawMessageDeltaEvent.Delta.Builder stopReason(JsonField<StopReason> stopReason)
Sets Builder.stopReason to an arbitrary JSON value.
You should usually call Builder.stopReason with a well-typed StopReason value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stopSequence
final RawMessageDeltaEvent.Delta.Builder stopSequence(String stopSequence)
-
stopSequence
final RawMessageDeltaEvent.Delta.Builder stopSequence(Optional<String> stopSequence)
Alias for calling Builder.stopSequence with
stopSequence.orElse(null).
-
stopSequence
final RawMessageDeltaEvent.Delta.Builder stopSequence(JsonField<String> stopSequence)
Sets Builder.stopSequence to an arbitrary JSON value.
You should usually call Builder.stopSequence with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RawMessageDeltaEvent.Delta.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RawMessageDeltaEvent.Delta.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RawMessageDeltaEvent.Delta.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RawMessageDeltaEvent.Delta.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RawMessageDeltaEvent.Delta.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RawMessageDeltaEvent.Delta build()
Returns an immutable instance of Delta.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.stopReason() .stopSequence()
-
-
-
-