@Stability(value=Experimental) @Internal public static final class ModelProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ModelProps
ModelPropssoftware.amazon.jsii.JsiiObject.InitializationModeModelProps.Builder, ModelProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(IRestApi restApi,
JsonSchema schema,
String contentType,
String description,
String modelName)
Constructor that initializes the object based on literal property values passed by the
ModelProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getContentType()
(experimental) The content type for the model.
|
String |
getDescription()
(experimental) A description that identifies this model.
|
String |
getModelName()
(experimental) A name for the model.
|
IRestApi |
getRestApi()
(experimental) The rest API that this model is part of.
|
JsonSchema |
getSchema()
(experimental) The schema to use to transform data to one or more output formats.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(IRestApi restApi, JsonSchema schema, String contentType, String description, String modelName)
ModelProps.Builder.public final IRestApi getRestApi()
ModelPropsThe reason we need the RestApi object itself and not just the ID is because the model is being tracked by the top-level RestApi object for the purpose of calculating it's hash to determine the ID of the deployment. This allows us to automatically update the deployment when the model of the REST API changes.
getRestApi in interface ModelPropspublic final JsonSchema getSchema()
ModelOptionsSpecify null ({}) if you don't want to specify a schema.
getSchema in interface ModelOptionspublic final String getContentType()
ModelOptionsYou can also force a content type in the request or response model mapping.
Default: 'application/json'
getContentType in interface ModelOptionspublic final String getDescription()
ModelOptionsDefault: None
getDescription in interface ModelOptionspublic final String getModelName()
ModelOptionsImportant If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
Default:
getModelName in interface ModelOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.