Class CfnModelProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnModelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelProps>
- Enclosing interface:
CfnModelProps
@Stability(Stable)
public static final class CfnModelProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelProps>
A builder for
CfnModelProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnModelProps.getApiId()
build()
Builds the configured instance.contentType
(String contentType) Sets the value ofCfnModelProps.getContentType()
description
(String description) Sets the value ofCfnModelProps.getDescription()
Sets the value ofCfnModelProps.getName()
Sets the value ofCfnModelProps.getSchema()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiId
Sets the value ofCfnModelProps.getApiId()
- Parameters:
apiId
- The API identifier. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnModelProps.getName()
- Parameters:
name
- The name of the model. This parameter is required.- Returns:
this
-
schema
Sets the value ofCfnModelProps.getSchema()
- Parameters:
schema
- The schema for the model. This parameter is required. For application/json models, this should be JSON schema draft 4 model.- Returns:
this
-
contentType
Sets the value ofCfnModelProps.getContentType()
- Parameters:
contentType
- The content-type for the model, for example, "application/json".- Returns:
this
-
description
Sets the value ofCfnModelProps.getDescription()
- Parameters:
description
- The description of the model.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModelProps>
- Returns:
- a new instance of
CfnModelProps
- Throws:
NullPointerException
- if any required attribute was not provided
-