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.BuilderThe parent resource's identifier.parentId(IResourceRef parentId) The parent resource's identifier.The last path segment for this resource.The string identifier of the associated RestApi.restApiId(IRestApiRef restApiId) The string identifier of the associated RestApi.
-
Method Details
-
create
@Stability(Stable) public static CfnResource.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- 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- See Also:
-
parentId
The parent resource's identifier.- Parameters:
parentId- The parent resource's identifier. This parameter is required.- Returns:
this- See Also:
-
pathPart
The last path segment for this resource.- Parameters:
pathPart- The last path segment for this resource. This parameter is required.- Returns:
this- See Also:
-
restApiId
The string identifier of the associated RestApi.- Parameters:
restApiId- The string identifier of the associated RestApi. This parameter is required.- Returns:
this- See Also:
-
restApiId
The string identifier of the associated RestApi.- Parameters:
restApiId- The string identifier of the associated RestApi. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResource>- Returns:
- a newly built instance of
CfnResource.
-