Class CfnDocumentationVersion.Builder

java.lang.Object
software.amazon.awscdk.services.apigateway.CfnDocumentationVersion.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDocumentationVersion>
Enclosing class:
CfnDocumentationVersion

@Stability(Stable) public static final class CfnDocumentationVersion.Builder extends Object implements software.amazon.jsii.Builder<CfnDocumentationVersion>
A fluent builder for CfnDocumentationVersion.
  • Method Details

    • create

      @Stability(Stable) public static CfnDocumentationVersion.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 CfnDocumentationVersion.Builder.
    • documentationVersion

      @Stability(Stable) public CfnDocumentationVersion.Builder documentationVersion(String documentationVersion)
      The version identifier of the to-be-updated documentation version.

      Parameters:
      documentationVersion - The version identifier of the to-be-updated documentation version. This parameter is required.
      Returns:
      this
    • restApiId

      @Stability(Stable) public CfnDocumentationVersion.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
    • description

      @Stability(Stable) public CfnDocumentationVersion.Builder description(String description)
      A description about the new documentation snapshot.

      Parameters:
      description - A description about the new documentation snapshot. This parameter is required.
      Returns:
      this
    • build

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