@Stability(value=Stable) public static final class MethodProps.Builder extends Object implements software.amazon.jsii.Builder<MethodProps>
MethodProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MethodProps |
build()
Builds the configured instance.
|
MethodProps.Builder |
httpMethod(String httpMethod)
Sets the value of
MethodProps.getHttpMethod() |
MethodProps.Builder |
integration(Integration integration)
Sets the value of
MethodProps.getIntegration() |
MethodProps.Builder |
options(MethodOptions options)
Sets the value of
MethodProps.getOptions() |
MethodProps.Builder |
resource(IResource resource)
Sets the value of
MethodProps.getResource() |
@Stability(value=Stable) public MethodProps.Builder httpMethod(String httpMethod)
MethodProps.getHttpMethod()httpMethod - The HTTP method ("GET", "POST", "PUT", ...) that clients use to call this method. This parameter is required.this@Stability(value=Stable) public MethodProps.Builder resource(IResource resource)
MethodProps.getResource()resource - The resource this method is associated with. This parameter is required.
For root resource methods,
specify the RestApi object.this@Stability(value=Stable) public MethodProps.Builder integration(Integration integration)
MethodProps.getIntegration()integration - The backend system that the method calls when it receives a request.this@Stability(value=Stable) public MethodProps.Builder options(MethodOptions options)
MethodProps.getOptions()options - Method options.this@Stability(value=Stable) public MethodProps build()
build in interface software.amazon.jsii.Builder<MethodProps>MethodPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.