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 Details

    • create

      @Stability(Stable) public static CfnModel.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnModel.Builder.
    • apiId

      @Stability(Stable) public CfnModel.Builder apiId(String apiId)
      The API identifier.

      Parameters:
      apiId - The API identifier. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnModel.Builder name(String name)
      The name of the model.

      Parameters:
      name - The name of the model. This parameter is required.
      Returns:
      this
    • schema

      @Stability(Stable) public CfnModel.Builder schema(Object 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

      @Stability(Stable) public CfnModel.Builder contentType(String 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

      @Stability(Stable) public CfnModel.Builder description(String description)
      The description of the model.

      Parameters:
      description - The description of the model. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnModel build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnModel>
      Returns:
      a newly built instance of CfnModel.