Class CfnModelPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.apigatewayv2.CfnModelPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelPropsMixin>
- Enclosing class:
CfnModelPropsMixin
@Stability(Stable)
public static final class CfnModelPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelPropsMixin>
A fluent builder for
CfnModelPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionThe API identifier.The API identifier.build()contentType(String contentType) The content-type for the model, for example, "application/json".static CfnModelPropsMixin.Buildercreate()static CfnModelPropsMixin.Buildercreate(CfnPropertyMixinOptions options) description(String description) The description of the model.The name of the model.The schema for the model.
-
Method Details
-
create
- Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnModelPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnModelPropsMixin.Builder.
-
apiId
The API identifier.- Parameters:
apiId- The API identifier. This parameter is required.- Returns:
this- See Also:
-
apiId
The API identifier.- Parameters:
apiId- The API identifier. This parameter is required.- Returns:
this- See Also:
-
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- See Also:
-
description
The description of the model.- Parameters:
description- The description of the model. This parameter is required.- Returns:
this- See Also:
-
name
The name of the model.- Parameters:
name- The name of the model. This parameter is required.- Returns:
this- See Also:
-
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- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnModelPropsMixin>- Returns:
- a newly built instance of
CfnModelPropsMixin.
-