@Stability(value=Experimental) public static final class ModelOptions.Builder extends Object implements software.amazon.jsii.Builder<ModelOptions>
ModelOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ModelOptions |
build()
Builds the configured instance.
|
ModelOptions.Builder |
contentType(String contentType)
Sets the value of
ModelOptions.getContentType() |
ModelOptions.Builder |
description(String description)
Sets the value of
ModelOptions.getDescription() |
ModelOptions.Builder |
modelName(String modelName)
Sets the value of
ModelOptions.getModelName() |
ModelOptions.Builder |
schema(JsonSchema schema)
Sets the value of
ModelOptions.getSchema() |
@Stability(value=Experimental) public ModelOptions.Builder schema(JsonSchema schema)
ModelOptions.getSchema()schema - The schema to use to transform data to one or more output formats. This parameter is required.
Specify null ({}) if you don't want to specify a schema.this@Stability(value=Experimental) public ModelOptions.Builder contentType(String contentType)
ModelOptions.getContentType()contentType - The content type for the model.
You can also force a
content type in the request or response model mapping.this@Stability(value=Experimental) public ModelOptions.Builder description(String description)
ModelOptions.getDescription()description - A description that identifies this model.this@Stability(value=Experimental) public ModelOptions.Builder modelName(String modelName)
ModelOptions.getModelName()modelName - A name for the model.
Important
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.this@Stability(value=Experimental) public ModelOptions build()
build in interface software.amazon.jsii.Builder<ModelOptions>ModelOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.