WebTriggerRegistrationRequest.Builder

public static final class WebTriggerRegistrationRequest.Builder
extends Object

java.lang.Object
   ↳ android.adservices.measurement.WebTriggerRegistrationRequest.Builder


Builder for WebTriggerRegistrationRequest.

Summary

Public constructors

Builder()

Public methods

WebTriggerRegistrationRequest build()

Pre-validates parameters and builds WebTriggerRegistrationRequest.

WebTriggerRegistrationRequest.Builder setDestination(Uri destination)

Setter for destination.

WebTriggerRegistrationRequest.Builder setTriggerParams(List<WebTriggerParams> webTriggerParams)

Setter for trigger params.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public WebTriggerRegistrationRequest build ()

Pre-validates parameters and builds WebTriggerRegistrationRequest.

Returns
WebTriggerRegistrationRequest This value cannot be null.

setDestination

public WebTriggerRegistrationRequest.Builder setDestination (Uri destination)

Setter for destination. It is a required parameter.

Parameters
destination Uri: destination top origin Uri This value cannot be null.

Returns
WebTriggerRegistrationRequest.Builder builder This value cannot be null.

setTriggerParams

public WebTriggerRegistrationRequest.Builder setTriggerParams (List<WebTriggerParams> webTriggerParams)

Setter for trigger params. It is a required parameter and the provided list should not be empty.

Parameters
webTriggerParams List: source registrations This value cannot be null.

Returns
WebTriggerRegistrationRequest.Builder builder This value cannot be null.