Class CfnFunction.HttpRequestConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediatailor.CfnFunction.HttpRequestConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunction.HttpRequestConfigurationProperty>
- Enclosing interface:
CfnFunction.HttpRequestConfigurationProperty
@Stability(Stable)
public static final class CfnFunction.HttpRequestConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunction.HttpRequestConfigurationProperty>
A builder for
CfnFunction.HttpRequestConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFunction.HttpRequestConfigurationProperty.getBody()build()Builds the configured instance.Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getHeaders()headers(IResolvable headers) Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getHeaders()methodType(String methodType) Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getMethodType()Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getOutput()output(IResolvable output) Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getOutput()requestTimeoutMilliseconds(Number requestTimeoutMilliseconds) Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getRuntime()Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
methodType
@Stability(Stable) public CfnFunction.HttpRequestConfigurationProperty.Builder methodType(String methodType) Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getMethodType()- Parameters:
methodType- the value to be set. This parameter is required.- Returns:
this
-
requestTimeoutMilliseconds
@Stability(Stable) public CfnFunction.HttpRequestConfigurationProperty.Builder requestTimeoutMilliseconds(Number requestTimeoutMilliseconds) - Parameters:
requestTimeoutMilliseconds- The timeout in milliseconds for the HTTP request. This parameter is required. Maximum value is 2000.- Returns:
this
-
runtime
@Stability(Stable) public CfnFunction.HttpRequestConfigurationProperty.Builder runtime(String runtime) Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getRuntime()- Parameters:
runtime- the value to be set. This parameter is required.- Returns:
this
-
url
Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getUrl()- Parameters:
url- The URL endpoint for the HTTP request. This parameter is required.- Returns:
this
-
body
Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getBody()- Parameters:
body- The body of the HTTP request.- Returns:
this
-
headers
@Stability(Stable) public CfnFunction.HttpRequestConfigurationProperty.Builder headers(IResolvable headers) Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getHeaders()- Parameters:
headers- the value to be set.- Returns:
this
-
headers
@Stability(Stable) public CfnFunction.HttpRequestConfigurationProperty.Builder headers(Map<String, String> headers) Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getHeaders()- Parameters:
headers- the value to be set.- Returns:
this
-
output
@Stability(Stable) public CfnFunction.HttpRequestConfigurationProperty.Builder output(IResolvable output) Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getOutput()- Parameters:
output- the value to be set.- Returns:
this
-
output
@Stability(Stable) public CfnFunction.HttpRequestConfigurationProperty.Builder output(Map<String, String> output) Sets the value ofCfnFunction.HttpRequestConfigurationProperty.getOutput()- Parameters:
output- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunction.HttpRequestConfigurationProperty>- Returns:
- a new instance of
CfnFunction.HttpRequestConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-