LeaveCustomAudienceRequest.Builder

public static final class LeaveCustomAudienceRequest.Builder
extends Object

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


Builder for LeaveCustomAudienceRequest objects.

Summary

Public constructors

Builder()

Public methods

LeaveCustomAudienceRequest build()

Builds an instance of a LeaveCustomAudienceRequest.

LeaveCustomAudienceRequest.Builder setBuyer(String buyer)

Sets the buyer domain URL.

LeaveCustomAudienceRequest.Builder setName(String name)

Sets the CustomAudience object's name.

LeaveCustomAudienceRequest.Builder setOwner(String owner)

Sets the owner application.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public LeaveCustomAudienceRequest build ()

Builds an instance of a LeaveCustomAudienceRequest.

Returns
LeaveCustomAudienceRequest This value cannot be null.

Throws
NullPointerException if any non-null parameter is null

setBuyer

public LeaveCustomAudienceRequest.Builder setBuyer (String buyer)

Sets the buyer domain URL.

See LeaveCustomAudienceRequest.getBuyer() for more information.

Parameters
buyer String: This value cannot be null.

Returns
LeaveCustomAudienceRequest.Builder This value cannot be null.

setName

public LeaveCustomAudienceRequest.Builder setName (String name)

Sets the CustomAudience object's name.

See LeaveCustomAudienceRequest.getName() for more information.

Parameters
name String: This value cannot be null.

Returns
LeaveCustomAudienceRequest.Builder This value cannot be null.

setOwner

public LeaveCustomAudienceRequest.Builder setOwner (String owner)

Sets the owner application.

See LeaveCustomAudienceRequest.getOwner() for more information.

Parameters
owner String: application name or leave null to default to the calling app.

Returns
LeaveCustomAudienceRequest.Builder This value cannot be null.