Model

class Model

Represents a data model for an API. Supported only for WebSocket APIs. See Create Models and Mapping Templates for Request and Response Mappings.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The content-type for the model, for example, "application/json".

Link copied to clipboard

The description of the model.

Link copied to clipboard

The model identifier.

Link copied to clipboard
val name: String?

The name of the model. Must be alphanumeric.

Link copied to clipboard

The schema for the model. For application/json models, this should be JSON schema draft 4 model.

Functions

Link copied to clipboard
inline fun copy(block: Model.Builder.() -> Unit = {}): Model
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String