Class FetchOptions.Builder
java.lang.Object
software.amazon.awscdk.integtests.alpha.FetchOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FetchOptions>
- Enclosing interface:
FetchOptions
@Stability(Experimental)
public static final class FetchOptions.Builder
extends Object
implements software.amazon.jsii.Builder<FetchOptions>
A builder for
FetchOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofFetchOptions.getBody()
build()
Builds the configured instance.Sets the value ofFetchOptions.getHeaders()
Sets the value ofFetchOptions.getMethod()
Sets the value ofFetchOptions.getPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
body
Sets the value ofFetchOptions.getBody()
- Parameters:
body
- Request body.- Returns:
this
-
headers
Sets the value ofFetchOptions.getHeaders()
- Parameters:
headers
- Optional request headers.- Returns:
this
-
method
Sets the value ofFetchOptions.getMethod()
- Parameters:
method
- HTTP method.- Returns:
this
-
port
Sets the value ofFetchOptions.getPort()
- Parameters:
port
- Optional port.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<FetchOptions>
- Returns:
- a new instance of
FetchOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-