Class CfnDocumentationPartProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnDocumentationPartProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDocumentationPartProps>
- Enclosing interface:
CfnDocumentationPartProps
@Stability(Stable)
public static final class CfnDocumentationPartProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDocumentationPartProps>
A builder for
CfnDocumentationPartProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.location
(IResolvable location) Sets the value ofCfnDocumentationPartProps.getLocation()
Sets the value ofCfnDocumentationPartProps.getLocation()
properties
(String properties) Sets the value ofCfnDocumentationPartProps.getProperties()
Sets the value ofCfnDocumentationPartProps.getRestApiId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
location
Sets the value ofCfnDocumentationPartProps.getLocation()
- Parameters:
location
- The location of the targeted API entity of the to-be-created documentation part. This parameter is required.- Returns:
this
-
location
@Stability(Stable) public CfnDocumentationPartProps.Builder location(CfnDocumentationPart.LocationProperty location) Sets the value ofCfnDocumentationPartProps.getLocation()
- Parameters:
location
- The location of the targeted API entity of the to-be-created documentation part. This parameter is required.- Returns:
this
-
properties
Sets the value ofCfnDocumentationPartProps.getProperties()
- Parameters:
properties
- The new documentation content map of the targeted API entity. This parameter is required. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.- Returns:
this
-
restApiId
Sets the value ofCfnDocumentationPartProps.getRestApiId()
- Parameters:
restApiId
- The string identifier of the associated RestApi. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDocumentationPartProps>
- Returns:
- a new instance of
CfnDocumentationPartProps
- Throws:
NullPointerException
- if any required attribute was not provided
-