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 SummaryConstructors
- 
Method SummaryModifier 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- 
Builderpublic Builder()
 
- 
- 
Method Details- 
bodySets the value ofFetchOptions.getBody()- Parameters:
- body- Request body.
- Returns:
- this
 
- 
headersSets the value ofFetchOptions.getHeaders()- Parameters:
- headers- Optional request headers.
- Returns:
- this
 
- 
methodSets the value ofFetchOptions.getMethod()- Parameters:
- method- HTTP method.
- Returns:
- this
 
- 
portSets the value ofFetchOptions.getPort()- Parameters:
- port- Optional port.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<FetchOptions>
- Returns:
- a new instance of FetchOptions
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-