Class CfnPlaybackConfiguration.HttpRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediatailor.CfnPlaybackConfiguration.HttpRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlaybackConfiguration.HttpRequestProperty>
- Enclosing interface:
CfnPlaybackConfiguration.HttpRequestProperty
@Stability(Stable)
public static final class CfnPlaybackConfiguration.HttpRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlaybackConfiguration.HttpRequestProperty>
A builder for
CfnPlaybackConfiguration.HttpRequestProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPlaybackConfiguration.HttpRequestProperty.getBody()build()Builds the configured instance.compressRequest(String compressRequest) Sets the value ofCfnPlaybackConfiguration.HttpRequestProperty.getCompressRequest()Sets the value ofCfnPlaybackConfiguration.HttpRequestProperty.getHeaders()headers(IResolvable headers) Sets the value ofCfnPlaybackConfiguration.HttpRequestProperty.getHeaders()httpMethod(String httpMethod) Sets the value ofCfnPlaybackConfiguration.HttpRequestProperty.getHttpMethod()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
body
Sets the value ofCfnPlaybackConfiguration.HttpRequestProperty.getBody()- Parameters:
body- The body of the request to the Ad Decision Server URL. The maximum length is 100,000 characters.- Returns:
this
-
compressRequest
@Stability(Stable) public CfnPlaybackConfiguration.HttpRequestProperty.Builder compressRequest(String compressRequest) Sets the value ofCfnPlaybackConfiguration.HttpRequestProperty.getCompressRequest()- Parameters:
compressRequest- The compression type of the request sent to the Ad Decision Server URL. Only the POST HTTP Method permits compression other than NONE.- Returns:
this
-
headers
@Stability(Stable) public CfnPlaybackConfiguration.HttpRequestProperty.Builder headers(Map<String, String> headers) Sets the value ofCfnPlaybackConfiguration.HttpRequestProperty.getHeaders()- Parameters:
headers- The headers in the request sent to the Ad Decision Server URL. The max length is 10,000 characters.- Returns:
this
-
headers
@Stability(Stable) public CfnPlaybackConfiguration.HttpRequestProperty.Builder headers(IResolvable headers) Sets the value ofCfnPlaybackConfiguration.HttpRequestProperty.getHeaders()- Parameters:
headers- The headers in the request sent to the Ad Decision Server URL. The max length is 10,000 characters.- Returns:
this
-
httpMethod
@Stability(Stable) public CfnPlaybackConfiguration.HttpRequestProperty.Builder httpMethod(String httpMethod) Sets the value ofCfnPlaybackConfiguration.HttpRequestProperty.getHttpMethod()- Parameters:
httpMethod- Supported HTTP Methods for the request to the Ad Decision Server URL.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPlaybackConfiguration.HttpRequestProperty>- Returns:
- a new instance of
CfnPlaybackConfiguration.HttpRequestProperty - Throws:
NullPointerException- if any required attribute was not provided
-