FetchAndJoinCustomAudienceRequest.Builder


public static final class FetchAndJoinCustomAudienceRequest.Builder
extends Object

java.lang.Object
   ↳ android.adservices.customaudience.FetchAndJoinCustomAudienceRequest.Builder


Builder for FetchAndJoinCustomAudienceRequest objects.

Summary

Public constructors

Builder(Uri fetchUri)

Instantiates a FetchAndJoinCustomAudienceRequest.Builder with the Uri from which the custom audience is to be fetched.

Public methods

FetchAndJoinCustomAudienceRequest build()

Builds an instance of a FetchAndJoinCustomAudienceRequest.

FetchAndJoinCustomAudienceRequest.Builder setActivationTime(Instant activationTime)

Sets the Instant by which joining the custom audience will be delayed.

FetchAndJoinCustomAudienceRequest.Builder setExpirationTime(Instant expirationTime)

Sets the Instant by when the membership to the custom audience will expire.

FetchAndJoinCustomAudienceRequest.Builder setFetchUri(Uri fetchUri)

Sets the Uri from which the custom audience is to be fetched.

FetchAndJoinCustomAudienceRequest.Builder setName(String name)

Sets the String name of the custom audience to join.

FetchAndJoinCustomAudienceRequest.Builder setUserBiddingSignals(AdSelectionSignals userBiddingSignals)

Sets the buyer signals to be consumed by the buyer-provided JavaScript when the custom audience participates in an ad selection.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

Builder

public Builder (Uri fetchUri)

Instantiates a FetchAndJoinCustomAudienceRequest.Builder with the Uri from which the custom audience is to be fetched.

Parameters
fetchUri Uri: This value cannot be null.

Public methods

build

public FetchAndJoinCustomAudienceRequest build ()

Builds an instance of a FetchAndJoinCustomAudienceRequest.

Returns
FetchAndJoinCustomAudienceRequest This value cannot be null.

Throws
NullPointerException if any non-null parameter is null.

setActivationTime

public FetchAndJoinCustomAudienceRequest.Builder setActivationTime (Instant activationTime)

Sets the Instant by which joining the custom audience will be delayed.

See FetchAndJoinCustomAudienceRequest.getActivationTime() for details.

Parameters
activationTime Instant: This value may be null.

Returns
FetchAndJoinCustomAudienceRequest.Builder This value cannot be null.

setExpirationTime

public FetchAndJoinCustomAudienceRequest.Builder setExpirationTime (Instant expirationTime)

Sets the Instant by when the membership to the custom audience will expire.

See FetchAndJoinCustomAudienceRequest.getExpirationTime() for details.

Parameters
expirationTime Instant: This value may be null.

Returns
FetchAndJoinCustomAudienceRequest.Builder This value cannot be null.

setFetchUri

public FetchAndJoinCustomAudienceRequest.Builder setFetchUri (Uri fetchUri)

Sets the Uri from which the custom audience is to be fetched.

See FetchAndJoinCustomAudienceRequest.getFetchUri() ()} for details.

Parameters
fetchUri Uri: This value cannot be null.

Returns
FetchAndJoinCustomAudienceRequest.Builder This value cannot be null.

setName

public FetchAndJoinCustomAudienceRequest.Builder setName (String name)

Sets the String name of the custom audience to join.

See FetchAndJoinCustomAudienceRequest.getName() for details.

Parameters
name String: This value may be null.

Returns
FetchAndJoinCustomAudienceRequest.Builder This value cannot be null.

setUserBiddingSignals

public FetchAndJoinCustomAudienceRequest.Builder setUserBiddingSignals (AdSelectionSignals userBiddingSignals)

Sets the buyer signals to be consumed by the buyer-provided JavaScript when the custom audience participates in an ad selection.

See FetchAndJoinCustomAudienceRequest.getUserBiddingSignals() for details.

Parameters
userBiddingSignals AdSelectionSignals: This value may be null.

Returns
FetchAndJoinCustomAudienceRequest.Builder This value cannot be null.