Class CfnModelPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.apigateway.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 TypeMethodDescriptionbuild()contentType(String contentType) The content-type for the model.static CfnModelPropsMixin.Buildercreate()static CfnModelPropsMixin.Buildercreate(CfnPropertyMixinOptions options) description(String description) The description of the model.A name for the model.The string identifier of the associated RestApi.restApiId(IRestApiRef restApiId) The string identifier of the associated RestApi.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.
-
contentType
The content-type for the model.- Parameters:
contentType- The content-type for the model. 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
A name for the model.If you don't specify a name, CloudFormation generates a unique physical ID and uses that ID for the model name. For more information, see Name Type .
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.
- Parameters:
name- A name for the model. This parameter is required.- Returns:
this- See Also:
-
restApiId
The string identifier of the associated RestApi.- Parameters:
restApiId- The string identifier of the associated RestApi. This parameter is required.- Returns:
this- See Also:
-
restApiId
The string identifier of the associated RestApi.- Parameters:
restApiId- The string identifier of the associated RestApi. This parameter is required.- Returns:
this- See Also:
-
schema
The schema for the model.For
application/jsonmodels, this should be JSON schema draft 4 model. Do not include "* /" characters in the description of any properties because such "* /" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.- 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.
-