-
- All Implemented Interfaces:
public class SpotXAdDescription.Builder
The builder for the SpotXAdDescription.
-
-
Constructor Summary
Constructors Constructor Description SpotXAdDescription.Builder(String id)
Create a builder for SpotXAdDescription. SpotXAdDescription.Builder(SpotXAdDescription spotXAdDescription)
Create a builder for SpotXAdDescription configured with SpotXAdDescription.
-
Method Summary
Modifier and Type Method Description SpotXAdDescription.Builder
maximumAdDuration(@NonNull() String maximumAdDuration)
Sets the maximum duration of the ad. SpotXAdDescription.Builder
ipAddress(@NonNull() String ipAddress)
Sets the IP address of the viewer. SpotXAdDescription.Builder
cacheBuster(boolean cacheBuster)
Sets whether the ad break request should contain a cache buster. SpotXAdDescription.Builder
queryParameters(@NonNull() SpotXAdDescription.SpotXDataQueryParameter queryParameters)
Sets a record of query string parameters which are added to the SpotX ad break request. SpotXAdDescription
build()
Builds SpotXAdDescription. -
-
Constructor Detail
-
SpotXAdDescription.Builder
SpotXAdDescription.Builder(String id)
Create a builder for SpotXAdDescription.- Parameters:
id
- The identifier of the ad break requested from SpotX.
-
SpotXAdDescription.Builder
SpotXAdDescription.Builder(SpotXAdDescription spotXAdDescription)
Create a builder for SpotXAdDescription configured with SpotXAdDescription.- Parameters:
spotXAdDescription
- The SpotXAdDescription.
-
-
Method Detail
-
maximumAdDuration
@NonNull() SpotXAdDescription.Builder maximumAdDuration(@NonNull() String maximumAdDuration)
Sets the maximum duration of the ad.
- Parameters:
maximumAdDuration
- The maximum duration of the ad, in seconds.
-
ipAddress
@NonNull() SpotXAdDescription.Builder ipAddress(@NonNull() String ipAddress)
Sets the IP address of the viewer.
- Parameters:
ipAddress
- The IP address of the viewer.
-
cacheBuster
@NonNull() SpotXAdDescription.Builder cacheBuster(boolean cacheBuster)
Sets whether the ad break request should contain a cache buster.
- Parameters:
cacheBuster
- Whether the ad break request should contain a cache buster.
-
queryParameters
@NonNull() SpotXAdDescription.Builder queryParameters(@NonNull() SpotXAdDescription.SpotXDataQueryParameter queryParameters)
Sets a record of query string parameters which are added to the SpotX ad break request. Each entry contains the parameter name with associated value.
- Parameters:
queryParameters
- The query string parameters.
-
build
@NonNull() SpotXAdDescription build()
Builds SpotXAdDescription.
-
-
-
-