Class RestApiAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.RestApiAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RestApiAttributes>
- Enclosing interface:
RestApiAttributes
@Stability(Stable)
public static final class RestApiAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<RestApiAttributes>
A builder for
RestApiAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofRestApiAttributes.getRestApiId()restApiName(String restApiName) Sets the value ofRestApiAttributes.getRestApiName()rootResourceId(String rootResourceId) Sets the value ofRestApiAttributes.getRootResourceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
restApiId
Sets the value ofRestApiAttributes.getRestApiId()- Parameters:
restApiId- The ID of the API Gateway RestApi. This parameter is required.- Returns:
this
-
rootResourceId
Sets the value ofRestApiAttributes.getRootResourceId()- Parameters:
rootResourceId- The resource ID of the root resource. This parameter is required.- Returns:
this
-
restApiName
Sets the value ofRestApiAttributes.getRestApiName()- Parameters:
restApiName- The name of the API Gateway RestApi.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RestApiAttributes>- Returns:
- a new instance of
RestApiAttributes - Throws:
NullPointerException- if any required attribute was not provided
-