Class ResourceAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.ResourceAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ResourceAttributes>
- Enclosing interface:
ResourceAttributes
@Stability(Stable)
public static final class ResourceAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ResourceAttributes>
A builder for
ResourceAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofResourceAttributes.getPath()resourceId(String resourceId) Sets the value ofResourceAttributes.getResourceId()Sets the value ofResourceAttributes.getRestApi()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
path
Sets the value ofResourceAttributes.getPath()- Parameters:
path- The full path of this resource. This parameter is required.- Returns:
this
-
resourceId
Sets the value ofResourceAttributes.getResourceId()- Parameters:
resourceId- The ID of the resource. This parameter is required.- Returns:
this
-
restApi
Sets the value ofResourceAttributes.getRestApi()- Parameters:
restApi- The rest API that this resource is part of. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ResourceAttributes>- Returns:
- a new instance of
ResourceAttributes - Throws:
NullPointerException- if any required attribute was not provided
-