JoinCustomAudienceRequest.Builder


public static final class JoinCustomAudienceRequest.Builder
extends Object

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


Builder for JoinCustomAudienceRequest objects.

Summary

Public constructors

Builder()

Public methods

JoinCustomAudienceRequest build()

Builds an instance of a JoinCustomAudienceRequest.

JoinCustomAudienceRequest.Builder setCustomAudience(CustomAudience customAudience)

Sets the custom audience to join.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public JoinCustomAudienceRequest build ()

Builds an instance of a JoinCustomAudienceRequest.

Returns
JoinCustomAudienceRequest This value cannot be null.

Throws
NullPointerException if any non-null parameter is null

setCustomAudience

public JoinCustomAudienceRequest.Builder setCustomAudience (CustomAudience customAudience)

Sets the custom audience to join.

See JoinCustomAudienceRequest.getCustomAudience() for more information.

Parameters
customAudience CustomAudience: This value cannot be null.

Returns
JoinCustomAudienceRequest.Builder This value cannot be null.