Class Campaign.Reward.Builder
-
- All Implemented Interfaces:
public final class Campaign.Reward.BuilderA builder for Reward.
-
-
Method Summary
-
-
Method Detail
-
id
final Campaign.Reward.Builder id(String id)
-
id
final Campaign.Reward.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.
-
isUnlimited
final Campaign.Reward.Builder isUnlimited(Boolean isUnlimited)
-
isUnlimited
final Campaign.Reward.Builder isUnlimited(JsonField<Boolean> isUnlimited)
Sets Builder.isUnlimited to an arbitrary JSON value.
You should usually call Builder.isUnlimited with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final Campaign.Reward.Builder metadata(Campaign.Reward.Metadata metadata)
Shallow custom metadata object.
-
metadata
final Campaign.Reward.Builder metadata(JsonField<Campaign.Reward.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final Campaign.Reward.Builder type(Campaign.Reward.Type type)
-
type
final Campaign.Reward.Builder type(JsonField<Campaign.Reward.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.
-
commissionStructure
final Campaign.Reward.Builder commissionStructure(CommissionStructure commissionStructure)
-
commissionStructure
final Campaign.Reward.Builder commissionStructure(Optional<CommissionStructure> commissionStructure)
Alias for calling Builder.commissionStructure with
commissionStructure.orElse(null).
-
commissionStructure
final Campaign.Reward.Builder commissionStructure(JsonField<CommissionStructure> commissionStructure)
Sets Builder.commissionStructure to an arbitrary JSON value.
You should usually call Builder.commissionStructure with a well-typed CommissionStructure value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
conversionsRequired
final Campaign.Reward.Builder conversionsRequired(Long conversionsRequired)
-
conversionsRequired
final Campaign.Reward.Builder conversionsRequired(Long conversionsRequired)
Alias for Builder.conversionsRequired.
This unboxed primitive overload exists for backwards compatibility.
-
conversionsRequired
final Campaign.Reward.Builder conversionsRequired(Optional<Long> conversionsRequired)
Alias for calling Builder.conversionsRequired with
conversionsRequired.orElse(null).
-
conversionsRequired
final Campaign.Reward.Builder conversionsRequired(JsonField<Long> conversionsRequired)
Sets Builder.conversionsRequired to an arbitrary JSON value.
You should usually call Builder.conversionsRequired with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
couponCode
final Campaign.Reward.Builder couponCode(String couponCode)
-
couponCode
final Campaign.Reward.Builder couponCode(Optional<String> couponCode)
Alias for calling Builder.couponCode with
couponCode.orElse(null).
-
couponCode
final Campaign.Reward.Builder couponCode(JsonField<String> couponCode)
Sets Builder.couponCode to an arbitrary JSON value.
You should usually call Builder.couponCode with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final Campaign.Reward.Builder description(String description)
-
description
final Campaign.Reward.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final Campaign.Reward.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
imageUrl
final Campaign.Reward.Builder imageUrl(String imageUrl)
-
imageUrl
final Campaign.Reward.Builder imageUrl(Optional<String> imageUrl)
Alias for calling Builder.imageUrl with
imageUrl.orElse(null).
-
imageUrl
final Campaign.Reward.Builder imageUrl(JsonField<String> imageUrl)
Sets Builder.imageUrl to an arbitrary JSON value.
You should usually call Builder.imageUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
limit
final Campaign.Reward.Builder limit(Long limit)
-1represents an unlimited reward in REST responses.
-
limit
final Campaign.Reward.Builder limit(Long limit)
Alias for Builder.limit.
This unboxed primitive overload exists for backwards compatibility.
-
limit
final Campaign.Reward.Builder limit(Optional<Long> limit)
Alias for calling Builder.limit with
limit.orElse(null).
-
limit
final Campaign.Reward.Builder limit(JsonField<Long> limit)
Sets Builder.limit to an arbitrary JSON value.
You should usually call Builder.limit with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
limitDuration
final Campaign.Reward.Builder limitDuration(Campaign.Reward.LimitDuration limitDuration)
-
limitDuration
final Campaign.Reward.Builder limitDuration(Optional<Campaign.Reward.LimitDuration> limitDuration)
Alias for calling Builder.limitDuration with
limitDuration.orElse(null).
-
limitDuration
final Campaign.Reward.Builder limitDuration(JsonField<Campaign.Reward.LimitDuration> limitDuration)
Sets Builder.limitDuration to an arbitrary JSON value.
You should usually call Builder.limitDuration with a well-typed LimitDuration value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
nextMilestonePrefix
final Campaign.Reward.Builder nextMilestonePrefix(String nextMilestonePrefix)
-
nextMilestonePrefix
final Campaign.Reward.Builder nextMilestonePrefix(Optional<String> nextMilestonePrefix)
Alias for calling Builder.nextMilestonePrefix with
nextMilestonePrefix.orElse(null).
-
nextMilestonePrefix
final Campaign.Reward.Builder nextMilestonePrefix(JsonField<String> nextMilestonePrefix)
Sets Builder.nextMilestonePrefix to an arbitrary JSON value.
You should usually call Builder.nextMilestonePrefix with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
nextMilestoneSuffix
final Campaign.Reward.Builder nextMilestoneSuffix(String nextMilestoneSuffix)
-
nextMilestoneSuffix
final Campaign.Reward.Builder nextMilestoneSuffix(Optional<String> nextMilestoneSuffix)
Alias for calling Builder.nextMilestoneSuffix with
nextMilestoneSuffix.orElse(null).
-
nextMilestoneSuffix
final Campaign.Reward.Builder nextMilestoneSuffix(JsonField<String> nextMilestoneSuffix)
Sets Builder.nextMilestoneSuffix to an arbitrary JSON value.
You should usually call Builder.nextMilestoneSuffix with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
numberOfWinners
final Campaign.Reward.Builder numberOfWinners(Long numberOfWinners)
-
numberOfWinners
final Campaign.Reward.Builder numberOfWinners(Long numberOfWinners)
Alias for Builder.numberOfWinners.
This unboxed primitive overload exists for backwards compatibility.
-
numberOfWinners
final Campaign.Reward.Builder numberOfWinners(Optional<Long> numberOfWinners)
Alias for calling Builder.numberOfWinners with
numberOfWinners.orElse(null).
-
numberOfWinners
final Campaign.Reward.Builder numberOfWinners(JsonField<Long> numberOfWinners)
Sets Builder.numberOfWinners to an arbitrary JSON value.
You should usually call Builder.numberOfWinners with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
order
final Campaign.Reward.Builder order(Long order)
-
order
final Campaign.Reward.Builder order(Long order)
Alias for Builder.order.
This unboxed primitive overload exists for backwards compatibility.
-
order
final Campaign.Reward.Builder order(Optional<Long> order)
Alias for calling Builder.order with
order.orElse(null).
-
order
final Campaign.Reward.Builder order(JsonField<Long> order)
Sets Builder.order to an arbitrary JSON value.
You should usually call Builder.order with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
referralDescription
final Campaign.Reward.Builder referralDescription(String referralDescription)
-
referralDescription
final Campaign.Reward.Builder referralDescription(Optional<String> referralDescription)
Alias for calling Builder.referralDescription with
referralDescription.orElse(null).
-
referralDescription
final Campaign.Reward.Builder referralDescription(JsonField<String> referralDescription)
Sets Builder.referralDescription to an arbitrary JSON value.
You should usually call Builder.referralDescription with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
referredRewardUpfront
final Campaign.Reward.Builder referredRewardUpfront(Boolean referredRewardUpfront)
-
referredRewardUpfront
final Campaign.Reward.Builder referredRewardUpfront(JsonField<Boolean> referredRewardUpfront)
Sets Builder.referredRewardUpfront to an arbitrary JSON value.
You should usually call Builder.referredRewardUpfront with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Campaign.Reward.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Campaign.Reward.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Campaign.Reward.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Campaign.Reward.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Campaign.Reward.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Campaign.Reward build()
Returns an immutable instance of Reward.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .isUnlimited() .metadata() .type()
-
-
-
-