@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:01.727Z") @Stability(value=Deprecated) @Deprecated public class ErrorModel extends software.amazon.jsii.JsiiObject implements IModel
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" } } }
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.apigateway.*; ErrorModel errorModel = new ErrorModel();
software.amazon.jsii.JsiiObject.InitializationModeIModel.Jsii$Default, IModel.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
ErrorModel()
Deprecated.
|
protected |
ErrorModel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
Deprecated.
|
protected |
ErrorModel(software.amazon.jsii.JsiiObjectRef objRef)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getModelId()
Deprecated.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ErrorModel(software.amazon.jsii.JsiiObjectRef objRef)
protected ErrorModel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) public ErrorModel()
@Stability(value=Deprecated) @Deprecated @NotNull public String getModelId()
getModelId in interface IModelCopyright © 2022. All rights reserved.