Builder
class Builder
kotlin.Any | |
↳ | android.adservices.customaudience.ScheduleCustomAudienceUpdateRequest.Builder |
Builder for ScheduleCustomAudienceUpdateRequest
objects.
Summary
Public constructors | |
---|---|
Builder(updateUri: Uri, minDelay: Duration, partialCustomAudienceList: MutableList<PartialCustomAudience!>) Instantiates a |
Public methods | |
---|---|
ScheduleCustomAudienceUpdateRequest |
build() Builds an instance of |
ScheduleCustomAudienceUpdateRequest.Builder |
setMinDelay(minDelay: Duration) Sets the |
ScheduleCustomAudienceUpdateRequest.Builder |
setPartialCustomAudienceList(partialCustomAudiences: MutableList<PartialCustomAudience!>) Sets list of Partial Custom Audiences that are sent to the DSP server when making a request to download updates for Custom Audience |
ScheduleCustomAudienceUpdateRequest.Builder |
setUpdateUri(updateUri: Uri) Sets the |
Public constructors
Builder
Builder(
updateUri: Uri,
minDelay: Duration,
partialCustomAudienceList: MutableList<PartialCustomAudience!>)
Instantiates a ScheduleCustomAudienceUpdateRequest.Builder
with the following
Parameters | |
---|---|
updateUri |
Uri: from which the update for Custom Audience is to be fetched This value cannot be null . |
minDelay |
Duration: minimum delay time duration for which the update is to be deferred This value cannot be null . |
partialCustomAudienceList |
MutableList<PartialCustomAudience!>: This value cannot be null . |
Public methods
build
fun build(): ScheduleCustomAudienceUpdateRequest
Builds an instance of ScheduleCustomAudienceUpdateRequest
Return | |
---|---|
ScheduleCustomAudienceUpdateRequest |
This value cannot be null . |
Exceptions | |
---|---|
java.lang.NullPointerException |
if any of the non-null parameters is null |
setMinDelay
fun setMinDelay(minDelay: Duration): ScheduleCustomAudienceUpdateRequest.Builder
Sets the Duration
, min time for which the update is to be deferred
See getMinDelay()
for more details
Parameters | |
---|---|
minDelay |
Duration: This value cannot be null . |
Return | |
---|---|
ScheduleCustomAudienceUpdateRequest.Builder |
This value cannot be null . |
setPartialCustomAudienceList
fun setPartialCustomAudienceList(partialCustomAudiences: MutableList<PartialCustomAudience!>): ScheduleCustomAudienceUpdateRequest.Builder
Sets list of Partial Custom Audiences that are sent to the DSP server when making a request to download updates for Custom Audience
See getPartialCustomAudienceList()
for more details
Parameters | |
---|---|
partialCustomAudiences |
MutableList<PartialCustomAudience!>: This value cannot be null . |
Return | |
---|---|
ScheduleCustomAudienceUpdateRequest.Builder |
This value cannot be null . |
setUpdateUri
fun setUpdateUri(updateUri: Uri): ScheduleCustomAudienceUpdateRequest.Builder
Sets the Uri
from which the update for Custom Audience is to be fetched
See getUpdateUri()
for details
Parameters | |
---|---|
updateUri |
Uri: This value cannot be null . |
Return | |
---|---|
ScheduleCustomAudienceUpdateRequest.Builder |
This value cannot be null . |