Class CfnMethod.MethodResponseProperty.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigateway.CfnMethod.MethodResponseProperty.Jsii$Proxy
All Implemented Interfaces:
CfnMethod.MethodResponseProperty, software.amazon.jsii.JsiiSerializable
Enclosing interface:
CfnMethod.MethodResponseProperty

@Stability(Stable) @Internal public static final class CfnMethod.MethodResponseProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnMethod.MethodResponseProperty
An implementation for CfnMethod.MethodResponseProperty
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(CfnMethod.MethodResponseProperty.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CfnMethod.MethodResponseProperty.Builder.
  • Method Details

    • getStatusCode

      public final String getStatusCode()
      Description copied from interface: CfnMethod.MethodResponseProperty
      The method response's status code.
      Specified by:
      getStatusCode in interface CfnMethod.MethodResponseProperty
    • getResponseModels

      public final Object getResponseModels()
      Description copied from interface: CfnMethod.MethodResponseProperty
      Specifies the Model resources used for the response's content-type.

      Response models are represented as a key/value map, with a content-type as the key and a Model name as the value.

      Specified by:
      getResponseModels in interface CfnMethod.MethodResponseProperty
    • getResponseParameters

      public final Object getResponseParameters()
      Description copied from interface: CfnMethod.MethodResponseProperty
      A key-value map specifying required or optional response parameters that API Gateway can send back to the caller.

      A key defines a method response header and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern method.response.header.{name} , where name is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in integration.response.header.{name} , a static value enclosed within a pair of single quotes (e.g., 'application/json' ), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression} , where JSON-expression is a valid JSON expression without the $ prefix.)

      Specified by:
      getResponseParameters in interface CfnMethod.MethodResponseProperty
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object