DeletionRequest.Builder

public static final class DeletionRequest.Builder
extends Object

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


Builder for DeletionRequest objects.

Summary

Public constructors

Builder()

Public methods

DeletionRequest build()

Builds a DeletionRequest instance.

DeletionRequest.Builder setEnd(Instant end)

Set the end of the deletion range.

DeletionRequest.Builder setOriginUri(Uri originUri)

Set the origin URI (the android source package or eTLD+1 to delete data for).

DeletionRequest.Builder setStart(Instant start)

Set the start of the deletion range.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public DeletionRequest build ()

Builds a DeletionRequest instance.

Returns
DeletionRequest This value cannot be null.

setEnd

public DeletionRequest.Builder setEnd (Instant end)

Set the end of the deletion range.

Parameters
end Instant: This value may be null.

Returns
DeletionRequest.Builder This value cannot be null.

setOriginUri

public DeletionRequest.Builder setOriginUri (Uri originUri)

Set the origin URI (the android source package or eTLD+1 to delete data for).

Parameters
originUri Uri: This value may be null.

Returns
DeletionRequest.Builder This value cannot be null.

setStart

public DeletionRequest.Builder setStart (Instant start)

Set the start of the deletion range.

Parameters
start Instant: This value may be null.

Returns
DeletionRequest.Builder This value cannot be null.