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