@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:46.064Z") @Stability(value=Experimental) public class Model extends Resource implements IModel
| Modifier and Type | Class and Description |
|---|---|
static class |
Model.Builder
(experimental) A fluent builder for
Model. |
software.amazon.jsii.JsiiObject.InitializationModeIModel.Jsii$Default, IModel.Jsii$ProxyIResource.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static IModel |
EMPTY_MODEL
(experimental) Represents a reference to a REST API's Empty model, which is available as part of the model collection by default.
|
static IModel |
ERROR_MODEL
(experimental) Represents a reference to a REST API's Error model, which is available as part of the model collection by default.
|
| Modifier | Constructor and Description |
|---|---|
|
Model(software.constructs.Construct scope,
String id,
ModelProps props) |
protected |
Model(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Model(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IModel |
fromModelName(software.constructs.Construct scope,
String id,
String modelName) |
String |
getModelId()
(experimental) Returns the model name, such as 'myModel'.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Experimental) public static final IModel EMPTY_MODEL
This can be used for mapping JSON responses from an integration to what is returned to a client, where strong typing is not required. In the absence of any defined model, the Empty model will be used to return the response payload unmapped.
Definition { "$schema" : "http://json-schema.org/draft-04/schema#", "title" : "Empty Schema", "type" : "object" }
https://docs.amazonaws.cn/en_us/apigateway/latest/developerguide/models-mappings.html#models-mappings-models@Stability(value=Experimental) public static final IModel ERROR_MODEL
This can be used for mapping error JSON responses from an integration to a client, where a simple generic message field is sufficient to map and return an error payload.
Definition { "$schema" : "http://json-schema.org/draft-04/schema#", "title" : "Error Schema", "type" : "object", "properties" : { "message" : { "type" : "string" } } }
protected Model(software.amazon.jsii.JsiiObjectRef objRef)
protected Model(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Model(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ModelProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IModel fromModelName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String modelName)
scope - This parameter is required.id - This parameter is required.modelName - This parameter is required.@Stability(value=Experimental) @NotNull public String getModelId()
getModelId in interface IModelCopyright © 2021. All rights reserved.