Class CfnModel.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnModel.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModel>
- Enclosing class:
CfnModel
@Stability(Stable)
public static final class CfnModel.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModel>
A fluent builder for
CfnModel
.-
Method Summary
Modifier and TypeMethodDescriptionThe API identifier.build()
contentType
(String contentType) The content-type for the model, for example, "application/json".static CfnModel.Builder
description
(String description) The description of the model.The name of the model.The schema for the model.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnModel.Builder
.
-
apiId
The API identifier.- Parameters:
apiId
- The API identifier. This parameter is required.- Returns:
this
-
name
The name of the model.- Parameters:
name
- The name of the model. This parameter is required.- Returns:
this
-
schema
The schema for the model.For application/json models, this should be JSON schema draft 4 model.
- Parameters:
schema
- The schema for the model. This parameter is required.- Returns:
this
-
contentType
The content-type for the model, for example, "application/json".- Parameters:
contentType
- The content-type for the model, for example, "application/json". This parameter is required.- Returns:
this
-
description
The description of the model.- Parameters:
description
- The description of the model. This parameter is required.- Returns:
this
-
build
-