Class CfnResourceProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnResourceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceProps>
- Enclosing interface:
- CfnResourceProps
@Stability(Stable)
public static final class CfnResourceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceProps>
A builder for
CfnResourceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnResourceProps.getParentId()
Sets the value ofCfnResourceProps.getPathPart()
Sets the value ofCfnResourceProps.getRestApiId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
parentId
Sets the value ofCfnResourceProps.getParentId()
- Parameters:
parentId
- The parent resource's identifier. This parameter is required.- Returns:
this
-
pathPart
Sets the value ofCfnResourceProps.getPathPart()
- Parameters:
pathPart
- The last path segment for this resource. This parameter is required.- Returns:
this
-
restApiId
Sets the value ofCfnResourceProps.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<CfnResourceProps>
- Returns:
- a new instance of
CfnResourceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-