Package com.openai.models.realtime.calls
Class CallRejectParams
-
- All Implemented Interfaces:
-
com.openai.core.Params
public final class CallRejectParams implements Params
Decline an incoming SIP call by returning a SIP status code to the caller.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
CallRejectParams.Builder
A builder for CallRejectParams.
public final class
CallRejectParams.Body
Parameters used to decline an incoming SIP call handled by the Realtime API.
-
Method Summary
Modifier and Type Method Description final Optional<String>
callId()
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>
_additionalBodyProperties()
final Headers
_additionalHeaders()
Additional headers to send with the request. final QueryParams
_additionalQueryParams()
Additional query param to send with the request. final CallRejectParams.Builder
toBuilder()
final CallRejectParams.Body
_body()
final String
_pathParam(Integer index)
Headers
_headers()
The full set of headers in the parameters, including both fixed and additional headers. QueryParams
_queryParams()
The full set of query params in the parameters, including both fixed and additional query params. Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static CallRejectParams
none()
final static CallRejectParams.Builder
builder()
Returns a mutable builder for constructing an instance of CallRejectParams. -
-
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.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final CallRejectParams.Builder toBuilder()
-
_body
final CallRejectParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
none
final static CallRejectParams none()
-
builder
final static CallRejectParams.Builder builder()
Returns a mutable builder for constructing an instance of CallRejectParams.
-
-
-
-