public static class Variant.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Variant |
build()
Build a Variant object.
|
Variant.Builder |
setDescription(java.lang.String description)
Set the variant description.
|
Variant.Builder |
setName(java.lang.String name)
Set the variant name.
|
Variant.Builder |
setPushPayload(VariantPushPayload variantPushPayload)
Set the partial push notification associated with the variant.
|
Variant.Builder |
setSchedule(Schedule schedule)
Set the time at which the variant push should be sent.
|
Variant.Builder |
setWeight(java.lang.Integer weight)
Set the weight of the variant.
|
public Variant.Builder setName(java.lang.String name)
name
- Stringpublic Variant.Builder setDescription(java.lang.String description)
description
- Stringpublic Variant.Builder setSchedule(Schedule schedule)
schedule
- Schedulepublic Variant.Builder setPushPayload(VariantPushPayload variantPushPayload)
variantPushPayload
- VariantPushPayloadpublic Variant.Builder setWeight(java.lang.Integer weight)
weight
- Integerpublic Variant build()
1. Partial push notification object must be specified.
java.lang.NullPointerException
- if variantPushPayload is not set