Class DeploymentProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.DeploymentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DeploymentProps>
- Enclosing interface:
- DeploymentProps
@Stability(Stable)
public static final class DeploymentProps.Builder
extends Object
implements software.amazon.jsii.Builder<DeploymentProps>
A builder for
DeploymentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofDeploymentProps.getApi()build()Builds the configured instance.description(String description) Sets the value ofDeploymentProps.getDescription()retainDeployments(Boolean retainDeployments) Sets the value ofDeploymentProps.getRetainDeployments()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
api
Sets the value ofDeploymentProps.getApi()- Parameters:
api- The Rest API to deploy. This parameter is required.- Returns:
this
-
description
Sets the value ofDeploymentProps.getDescription()- Parameters:
description- A description of the purpose of the API Gateway deployment.- Returns:
this
-
retainDeployments
Sets the value ofDeploymentProps.getRetainDeployments()- Parameters:
retainDeployments- When an API Gateway model is updated, a new deployment will automatically be created. If this is true, the old API Gateway Deployment resource will not be deleted. This will allow manually reverting back to a previous deployment in case for example- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DeploymentProps>- Returns:
- a new instance of
DeploymentProps - Throws:
NullPointerException- if any required attribute was not provided
-