Class CfnApiKey.StageKeyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnApiKey.StageKeyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiKey.StageKeyProperty>
- Enclosing interface:
CfnApiKey.StageKeyProperty
@Stability(Stable)
public static final class CfnApiKey.StageKeyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApiKey.StageKeyProperty>
A builder for
CfnApiKey.StageKeyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnApiKey.StageKeyProperty.getRestApiId()Sets the value ofCfnApiKey.StageKeyProperty.getStageName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
restApiId
Sets the value ofCfnApiKey.StageKeyProperty.getRestApiId()- Parameters:
restApiId- The string identifier of the associated RestApi.- Returns:
this
-
stageName
Sets the value ofCfnApiKey.StageKeyProperty.getStageName()- Parameters:
stageName- The stage name associated with the stage key.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApiKey.StageKeyProperty>- Returns:
- a new instance of
CfnApiKey.StageKeyProperty - Throws:
NullPointerException- if any required attribute was not provided
-