Class CfnDocumentationVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnDocumentationVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDocumentationVersionProps>
- Enclosing interface:
- CfnDocumentationVersionProps
@Stability(Stable)
public static final class CfnDocumentationVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDocumentationVersionProps>
A builder for
CfnDocumentationVersionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnDocumentationVersionProps.getDescription()
documentationVersion
(String documentationVersion) Sets the value ofCfnDocumentationVersionProps.getDocumentationVersion()
Sets the value ofCfnDocumentationVersionProps.getRestApiId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
documentationVersion
@Stability(Stable) public CfnDocumentationVersionProps.Builder documentationVersion(String documentationVersion) Sets the value ofCfnDocumentationVersionProps.getDocumentationVersion()
- Parameters:
documentationVersion
- The version identifier of the to-be-updated documentation version. This parameter is required.- Returns:
this
-
restApiId
Sets the value ofCfnDocumentationVersionProps.getRestApiId()
- Parameters:
restApiId
- The string identifier of the associated RestApi. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnDocumentationVersionProps.getDescription()
- Parameters:
description
- A description about the new documentation snapshot.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDocumentationVersionProps>
- Returns:
- a new instance of
CfnDocumentationVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-