Package com.openai.models.realtime.calls
Class CallRejectParams.Body
-
- All Implemented Interfaces:
public final class CallRejectParams.Body
Parameters used to decline an incoming SIP call handled by the Realtime API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
CallRejectParams.Body.Builder
A builder for Body.
-
Method Summary
Modifier and Type Method Description final Optional<Long>
statusCode()
SIP response code to send back to the caller. final JsonField<Long>
_statusCode()
Returns the raw JSON value of statusCode. final Map<String, JsonValue>
_additionalProperties()
final CallRejectParams.Body.Builder
toBuilder()
final CallRejectParams.Body
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static CallRejectParams.Body.Builder
builder()
Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
statusCode
final Optional<Long> statusCode()
SIP response code to send back to the caller. Defaults to
603
(Decline) when omitted.
-
_statusCode
final JsonField<Long> _statusCode()
Returns the raw JSON value of statusCode.
Unlike statusCode, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final CallRejectParams.Body.Builder toBuilder()
-
validate
final CallRejectParams.Body validate()
-
builder
final static CallRejectParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
-
-
-
-