Class HttpRequestParameters.Builder
java.lang.Object
software.amazon.awscdk.integtests.alpha.HttpRequestParameters.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpRequestParameters>
- Enclosing interface:
HttpRequestParameters
@Stability(Experimental)
public static final class HttpRequestParameters.Builder
extends Object
implements software.amazon.jsii.Builder<HttpRequestParameters>
A builder for
HttpRequestParameters-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.fetchOptions(FetchOptions fetchOptions) Sets the value ofHttpRequestParameters.getFetchOptions()Sets the value ofHttpRequestParameters.getUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
url
Sets the value ofHttpRequestParameters.getUrl()- Parameters:
url- The url to fetch. This parameter is required.- Returns:
this
-
fetchOptions
@Stability(Experimental) public HttpRequestParameters.Builder fetchOptions(FetchOptions fetchOptions) Sets the value ofHttpRequestParameters.getFetchOptions()- Parameters:
fetchOptions- Options for fetch.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HttpRequestParameters>- Returns:
- a new instance of
HttpRequestParameters - Throws:
NullPointerException- if any required attribute was not provided
-