Class CfnResource.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnResource.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResource>
- Enclosing class:
CfnResource
@Stability(Stable)
public static final class CfnResource.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResource>
A fluent builder for
CfnResource
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnResource.Builder
The parent resource's identifier.The last path segment for this resource.The string identifier of the associated RestApi.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnResource.Builder
.
-
parentId
The parent resource's identifier.- Parameters:
parentId
- The parent resource's identifier. This parameter is required.- Returns:
this
-
pathPart
The last path segment for this resource.- Parameters:
pathPart
- The last path segment for this resource. This parameter is required.- Returns:
this
-
restApiId
The string identifier of the associated RestApi.- Parameters:
restApiId
- The string identifier of the associated RestApi. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResource>
- Returns:
- a newly built instance of
CfnResource
.
-