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