Class Campaign.Builder
-
- All Implemented Interfaces:
public final class Campaign.BuilderA builder for Campaign.
-
-
Method Summary
-
-
Method Detail
-
id
final Campaign.Builder id(String id)
-
id
final Campaign.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
impressionCount
final Campaign.Builder impressionCount(Long impressionCount)
-
impressionCount
final Campaign.Builder impressionCount(JsonField<Long> impressionCount)
Sets Builder.impressionCount to an arbitrary JSON value.
You should usually call Builder.impressionCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inviteCount
final Campaign.Builder inviteCount(Long inviteCount)
-
inviteCount
final Campaign.Builder inviteCount(JsonField<Long> inviteCount)
Sets Builder.inviteCount to an arbitrary JSON value.
You should usually call Builder.inviteCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final Campaign.Builder name(String name)
-
name
final Campaign.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
participantCount
final Campaign.Builder participantCount(Long participantCount)
-
participantCount
final Campaign.Builder participantCount(JsonField<Long> participantCount)
Sets Builder.participantCount to an arbitrary JSON value.
You should usually call Builder.participantCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
referralCount
final Campaign.Builder referralCount(Long referralCount)
-
referralCount
final Campaign.Builder referralCount(JsonField<Long> referralCount)
Sets Builder.referralCount to an arbitrary JSON value.
You should usually call Builder.referralCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
rewards
final Campaign.Builder rewards(List<Campaign.Reward> rewards)
-
rewards
final Campaign.Builder rewards(JsonField<List<Campaign.Reward>> rewards)
Sets Builder.rewards to an arbitrary JSON value.
You should usually call Builder.rewards with a well-typed
List<Reward>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addReward
final Campaign.Builder addReward(Campaign.Reward reward)
-
status
final Campaign.Builder status(Campaign.Status status)
-
status
final Campaign.Builder status(JsonField<Campaign.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final Campaign.Builder type(Campaign.Type type)
-
type
final Campaign.Builder type(JsonField<Campaign.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
winnerCount
final Campaign.Builder winnerCount(Long winnerCount)
-
winnerCount
final Campaign.Builder winnerCount(JsonField<Long> winnerCount)
Sets Builder.winnerCount to an arbitrary JSON value.
You should usually call Builder.winnerCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
currencyIso
final Campaign.Builder currencyIso(String currencyIso)
-
currencyIso
final Campaign.Builder currencyIso(JsonField<String> currencyIso)
Sets Builder.currencyIso to an arbitrary JSON value.
You should usually call Builder.currencyIso with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Campaign.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Campaign.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Campaign.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Campaign.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Campaign.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Campaign build()
Returns an immutable instance of Campaign.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .impressionCount() .inviteCount() .name() .participantCount() .referralCount() .rewards() .status() .type() .winnerCount()
-
-
-
-