Class CfnFunctionPropsMixin.VastRequestConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.mediatailor.CfnFunctionPropsMixin.VastRequestConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionPropsMixin.VastRequestConfigurationProperty>
- Enclosing interface:
CfnFunctionPropsMixin.VastRequestConfigurationProperty
@Stability(Stable)
public static final class CfnFunctionPropsMixin.VastRequestConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionPropsMixin.VastRequestConfigurationProperty>
A builder for
CfnFunctionPropsMixin.VastRequestConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getBody()build()Builds the configured instance.Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getHeaders()headers(IResolvable headers) Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getHeaders()methodType(String methodType) Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getMethodType()Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getOutput()output(IResolvable output) Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getOutput()requestTimeoutMilliseconds(Number requestTimeoutMilliseconds) Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getRuntime()Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
body
@Stability(Stable) public CfnFunctionPropsMixin.VastRequestConfigurationProperty.Builder body(String body) Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getBody()- Parameters:
body- An expression that evaluates to the request body, for example to send an OpenRTB bid request. The expression can be up to 100,000 characters, and the body after evaluation can be up to 64 KB.- Returns:
this
-
headers
@Stability(Stable) public CfnFunctionPropsMixin.VastRequestConfigurationProperty.Builder headers(IResolvable headers) Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getHeaders()- Parameters:
headers- A map of HTTP header names to expression values. MediaTailor evaluates each header value expression at runtime and includes the result in the outbound request. Headers beginning with X-Amz- are reserved by the service, and method override headers are not allowed.- Returns:
this
-
headers
@Stability(Stable) public CfnFunctionPropsMixin.VastRequestConfigurationProperty.Builder headers(Map<String, String> headers) Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getHeaders()- Parameters:
headers- A map of HTTP header names to expression values. MediaTailor evaluates each header value expression at runtime and includes the result in the outbound request. Headers beginning with X-Amz- are reserved by the service, and method override headers are not allowed.- Returns:
this
-
methodType
@Stability(Stable) public CfnFunctionPropsMixin.VastRequestConfigurationProperty.Builder methodType(String methodType) Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getMethodType()- Parameters:
methodType- the value to be set.- Returns:
this
-
output
@Stability(Stable) public CfnFunctionPropsMixin.VastRequestConfigurationProperty.Builder output(IResolvable output) Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getOutput()- Parameters:
output- A map of output bindings. Each key is a namespaced output path (such as temp.wrappedAds), and each value is an expression that MediaTailor evaluates at runtime. Output expressions in a VAST_REQUEST function can reference the response object, which exposes response.parsedAds, the ads parsed from the VAST response after schema validation and wrapper resolution, and response.statusCode. For more information about expression syntax, see JSONata expression reference (https://docs.aws.amazon.com/mediatailor/latest/ug/monetization-functions-jsonata.html) in the MediaTailor User Guide.- Returns:
this
-
output
@Stability(Stable) public CfnFunctionPropsMixin.VastRequestConfigurationProperty.Builder output(Map<String, String> output) Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getOutput()- Parameters:
output- A map of output bindings. Each key is a namespaced output path (such as temp.wrappedAds), and each value is an expression that MediaTailor evaluates at runtime. Output expressions in a VAST_REQUEST function can reference the response object, which exposes response.parsedAds, the ads parsed from the VAST response after schema validation and wrapper resolution, and response.statusCode. For more information about expression syntax, see JSONata expression reference (https://docs.aws.amazon.com/mediatailor/latest/ug/monetization-functions-jsonata.html) in the MediaTailor User Guide.- Returns:
this
-
requestTimeoutMilliseconds
@Stability(Stable) public CfnFunctionPropsMixin.VastRequestConfigurationProperty.Builder requestTimeoutMilliseconds(Number requestTimeoutMilliseconds) Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getRequestTimeoutMilliseconds()- Parameters:
requestTimeoutMilliseconds- The maximum time, in milliseconds, that MediaTailor waits for a response from the VAST endpoint. The timeout covers the entire response, including any wrapper redirects that MediaTailor follows. If the call exceeds this timeout, MediaTailor proceeds with an empty ad list and continues output expression evaluation. Valid values are 100 to 2000.- Returns:
this
-
runtime
@Stability(Stable) public CfnFunctionPropsMixin.VastRequestConfigurationProperty.Builder runtime(String runtime) Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getRuntime()- Parameters:
runtime- The expression language used to evaluate expressions in the function configuration. Set this to JSONATA.- Returns:
this
-
url
@Stability(Stable) public CfnFunctionPropsMixin.VastRequestConfigurationProperty.Builder url(String url) Sets the value ofCfnFunctionPropsMixin.VastRequestConfigurationProperty.getUrl()- Parameters:
url- An expression that evaluates to the VAST endpoint URL. Use {%...%} delimiters for dynamic expressions. A literal value must be an https:// URL. The expression can be up to 25,000 characters, and the URL after evaluation can be up to 2,048 characters.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunctionPropsMixin.VastRequestConfigurationProperty>- Returns:
- a new instance of
CfnFunctionPropsMixin.VastRequestConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-