Class DocumentationVersionReference.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.DocumentationVersionReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DocumentationVersionReference>
- Enclosing interface:
DocumentationVersionReference
@Stability(Stable)
public static final class DocumentationVersionReference.Builder
extends Object
implements software.amazon.jsii.Builder<DocumentationVersionReference>
A builder for
DocumentationVersionReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.documentationVersion
(String documentationVersion) Sets the value ofDocumentationVersionReference.getDocumentationVersion()
Sets the value ofDocumentationVersionReference.getRestApiId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
documentationVersion
@Stability(Stable) public DocumentationVersionReference.Builder documentationVersion(String documentationVersion) Sets the value ofDocumentationVersionReference.getDocumentationVersion()
- Parameters:
documentationVersion
- The DocumentationVersion of the DocumentationVersion resource. This parameter is required.- Returns:
this
-
restApiId
Sets the value ofDocumentationVersionReference.getRestApiId()
- Parameters:
restApiId
- The RestApiId of the DocumentationVersion resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DocumentationVersionReference>
- Returns:
- a new instance of
DocumentationVersionReference
- Throws:
NullPointerException
- if any required attribute was not provided
-