Class MethodAndPath.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.openapigateway.MethodAndPath.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MethodAndPath>
- Enclosing interface:
- MethodAndPath
@Stability(Experimental) public static final class MethodAndPath.Builder extends Object implements software.amazon.jsii.Builder<MethodAndPath>
A builder forMethodAndPath
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodAndPathbuild()Builds the configured instance.MethodAndPath.Buildermethod(String method)Sets the value ofMethodAndPath.getMethod()MethodAndPath.Builderpath(String path)Sets the value ofMethodAndPath.getPath()
-
-
-
Method Detail
-
method
@Stability(Experimental) public MethodAndPath.Builder method(String method)
Sets the value ofMethodAndPath.getMethod()- Parameters:
method- The http method of this operation. This parameter is required.- Returns:
this
-
path
@Stability(Experimental) public MethodAndPath.Builder path(String path)
Sets the value ofMethodAndPath.getPath()- Parameters:
path- The path of this operation in the api. This parameter is required.- Returns:
this
-
build
@Stability(Experimental) public MethodAndPath build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MethodAndPath>- Returns:
- a new instance of
MethodAndPath - Throws:
NullPointerException- if any required attribute was not provided
-
-