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 Details

    • create

      @Stability(Stable) public static CfnResource.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnResource.Builder.
    • parentId

      @Stability(Stable) public CfnResource.Builder parentId(String parentId)
      The parent resource's identifier.

      Parameters:
      parentId - The parent resource's identifier. This parameter is required.
      Returns:
      this
    • pathPart

      @Stability(Stable) public CfnResource.Builder pathPart(String pathPart)
      The last path segment for this resource.

      Parameters:
      pathPart - The last path segment for this resource. This parameter is required.
      Returns:
      this
    • restApiId

      @Stability(Stable) public CfnResource.Builder restApiId(String restApiId)
      The string identifier of the associated RestApi.

      Parameters:
      restApiId - The string identifier of the associated RestApi. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnResource build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnResource>
      Returns:
      a newly built instance of CfnResource.