Class EmptyModel

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigateway.EmptyModel
All Implemented Interfaces:
IModel, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:44.940Z") @Stability(Deprecated) @Deprecated public class EmptyModel extends software.amazon.jsii.JsiiObject implements IModel
Deprecated.
You should use Model.EMPTY_MODEL
(deprecated) Represents a reference to a REST API's Empty model, which is available as part of the model collection by default.

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" }

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.*;
 EmptyModel emptyModel = new EmptyModel();
 

See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.apigateway.IModel

    IModel.Jsii$Default, IModel.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Deprecated.
     
    protected
    EmptyModel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    Deprecated.
     
    protected
    EmptyModel(software.amazon.jsii.JsiiObjectRef objRef)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • EmptyModel

      protected EmptyModel(software.amazon.jsii.JsiiObjectRef objRef)
      Deprecated.
    • EmptyModel

      protected EmptyModel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      Deprecated.
    • EmptyModel

      @Stability(Stable) public EmptyModel()
      Deprecated.
  • Method Details

    • getModelId

      @Stability(Deprecated) @Deprecated @NotNull public String getModelId()
      Deprecated.
      (deprecated) Returns the model name, such as 'myModel'.
      Specified by:
      getModelId in interface IModel