Class ThreadUnsupportedRequestErrorDetails.Builder
-
- All Implemented Interfaces:
public final class ThreadUnsupportedRequestErrorDetails.BuilderA builder for ThreadUnsupportedRequestErrorDetails.
-
-
Method Summary
-
-
Method Detail
-
errorCode
final ThreadUnsupportedRequestErrorDetails.Builder errorCode(JsonValue errorCode)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("thread_unsupported_request")This method is primarily for setting the field to an undocumented or not yet supported value.
-
unsupported
final ThreadUnsupportedRequestErrorDetails.Builder unsupported(List<ThreadUnsupportedFeatureName> unsupported)
Each entry names a request field or an organization setting that Threads do not support. On a value you do not recognize, send the full conversation without
thread.
-
unsupported
final ThreadUnsupportedRequestErrorDetails.Builder unsupported(Optional<List<ThreadUnsupportedFeatureName>> unsupported)
Alias for calling Builder.unsupported with
unsupported.orElse(null).
-
unsupported
final ThreadUnsupportedRequestErrorDetails.Builder unsupported(JsonField<List<ThreadUnsupportedFeatureName>> unsupported)
Sets Builder.unsupported to an arbitrary JSON value.
You should usually call Builder.unsupported with a well-typed
List<ThreadUnsupportedFeatureName>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ThreadUnsupportedRequestErrorDetails.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addUnsupported
final ThreadUnsupportedRequestErrorDetails.Builder addUnsupported(ThreadUnsupportedFeatureName unsupported)
Adds a single ThreadUnsupportedFeatureName to Builder.unsupported.
-
putAdditionalProperty
final ThreadUnsupportedRequestErrorDetails.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ThreadUnsupportedRequestErrorDetails.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ThreadUnsupportedRequestErrorDetails.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ThreadUnsupportedRequestErrorDetails.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ThreadUnsupportedRequestErrorDetails build()
Returns an immutable instance of ThreadUnsupportedRequestErrorDetails.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-