Class StageAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.StageAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StageAttributes>
- Enclosing interface:
StageAttributes
@Stability(Stable)
public static final class StageAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<StageAttributes>
A builder for
StageAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofStageAttributes.getRestApi()Sets the value ofStageAttributes.getStageName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
restApi
Sets the value ofStageAttributes.getRestApi()- Parameters:
restApi- The RestApi that the stage belongs to. This parameter is required.- Returns:
this
-
stageName
Sets the value ofStageAttributes.getStageName()- Parameters:
stageName- The name of the stage. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StageAttributes>- Returns:
- a new instance of
StageAttributes - Throws:
NullPointerException- if any required attribute was not provided
-