Class CfnDeploymentProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnDeploymentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentProps>
- Enclosing interface:
- CfnDeploymentProps
@Stability(Stable)
public static final class CfnDeploymentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentProps>
A builder for
CfnDeploymentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deploymentCanarySettings(IResolvable deploymentCanarySettings) Sets the value ofCfnDeploymentProps.getDeploymentCanarySettings()deploymentCanarySettings(CfnDeployment.DeploymentCanarySettingsProperty deploymentCanarySettings) Sets the value ofCfnDeploymentProps.getDeploymentCanarySettings()description(String description) Sets the value ofCfnDeploymentProps.getDescription()Sets the value ofCfnDeploymentProps.getRestApiId()stageDescription(IResolvable stageDescription) Sets the value ofCfnDeploymentProps.getStageDescription()stageDescription(CfnDeployment.StageDescriptionProperty stageDescription) Sets the value ofCfnDeploymentProps.getStageDescription()Sets the value ofCfnDeploymentProps.getStageName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
restApiId
Sets the value ofCfnDeploymentProps.getRestApiId()- Parameters:
restApiId- The string identifier of the associated RestApi. This parameter is required.- Returns:
this
-
deploymentCanarySettings
@Stability(Stable) public CfnDeploymentProps.Builder deploymentCanarySettings(IResolvable deploymentCanarySettings) Sets the value ofCfnDeploymentProps.getDeploymentCanarySettings()- Parameters:
deploymentCanarySettings- The input configuration for a canary deployment.- Returns:
this
-
deploymentCanarySettings
@Stability(Stable) public CfnDeploymentProps.Builder deploymentCanarySettings(CfnDeployment.DeploymentCanarySettingsProperty deploymentCanarySettings) Sets the value ofCfnDeploymentProps.getDeploymentCanarySettings()- Parameters:
deploymentCanarySettings- The input configuration for a canary deployment.- Returns:
this
-
description
Sets the value ofCfnDeploymentProps.getDescription()- Parameters:
description- The description for the Deployment resource to create.- Returns:
this
-
stageDescription
Sets the value ofCfnDeploymentProps.getStageDescription()- Parameters:
stageDescription- The description of the Stage resource for the Deployment resource to create. To specify a stage description, you must also provide a stage name.- Returns:
this
-
stageDescription
@Stability(Stable) public CfnDeploymentProps.Builder stageDescription(CfnDeployment.StageDescriptionProperty stageDescription) Sets the value ofCfnDeploymentProps.getStageDescription()- Parameters:
stageDescription- The description of the Stage resource for the Deployment resource to create. To specify a stage description, you must also provide a stage name.- Returns:
this
-
stageName
Sets the value ofCfnDeploymentProps.getStageName()- Parameters:
stageName- The name of the Stage resource for the Deployment resource to create.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentProps>- Returns:
- a new instance of
CfnDeploymentProps - Throws:
NullPointerException- if any required attribute was not provided
-