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