Class Campaign.Reward
-
- All Implemented Interfaces:
public final class Campaign.Reward
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCampaign.Reward.BuilderA builder for Reward.
public final classCampaign.Reward.MetadataShallow custom metadata object.
public final classCampaign.Reward.Typepublic final classCampaign.Reward.LimitDuration
-
Method Summary
-
-
Method Detail
-
isUnlimited
final Boolean isUnlimited()
-
metadata
final Campaign.Reward.Metadata metadata()
Shallow custom metadata object.
-
type
final Campaign.Reward.Type type()
-
commissionStructure
final Optional<CommissionStructure> commissionStructure()
-
conversionsRequired
final Optional<Long> conversionsRequired()
-
couponCode
final Optional<String> couponCode()
-
description
final Optional<String> description()
-
limitDuration
final Optional<Campaign.Reward.LimitDuration> limitDuration()
-
nextMilestonePrefix
final Optional<String> nextMilestonePrefix()
-
nextMilestoneSuffix
final Optional<String> nextMilestoneSuffix()
-
numberOfWinners
final Optional<Long> numberOfWinners()
-
referralDescription
final Optional<String> referralDescription()
-
referredRewardUpfront
final Optional<Boolean> referredRewardUpfront()
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_isUnlimited
final JsonField<Boolean> _isUnlimited()
Returns the raw JSON value of isUnlimited.
Unlike isUnlimited, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<Campaign.Reward.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<Campaign.Reward.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_commissionStructure
final JsonField<CommissionStructure> _commissionStructure()
Returns the raw JSON value of commissionStructure.
Unlike commissionStructure, this method doesn't throw if the JSON field has an unexpected type.
-
_conversionsRequired
final JsonField<Long> _conversionsRequired()
Returns the raw JSON value of conversionsRequired.
Unlike conversionsRequired, this method doesn't throw if the JSON field has an unexpected type.
-
_couponCode
final JsonField<String> _couponCode()
Returns the raw JSON value of couponCode.
Unlike couponCode, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_imageUrl
final JsonField<String> _imageUrl()
Returns the raw JSON value of imageUrl.
Unlike imageUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_limit
final JsonField<Long> _limit()
Returns the raw JSON value of limit.
Unlike limit, this method doesn't throw if the JSON field has an unexpected type.
-
_limitDuration
final JsonField<Campaign.Reward.LimitDuration> _limitDuration()
Returns the raw JSON value of limitDuration.
Unlike limitDuration, this method doesn't throw if the JSON field has an unexpected type.
-
_nextMilestonePrefix
final JsonField<String> _nextMilestonePrefix()
Returns the raw JSON value of nextMilestonePrefix.
Unlike nextMilestonePrefix, this method doesn't throw if the JSON field has an unexpected type.
-
_nextMilestoneSuffix
final JsonField<String> _nextMilestoneSuffix()
Returns the raw JSON value of nextMilestoneSuffix.
Unlike nextMilestoneSuffix, this method doesn't throw if the JSON field has an unexpected type.
-
_numberOfWinners
final JsonField<Long> _numberOfWinners()
Returns the raw JSON value of numberOfWinners.
Unlike numberOfWinners, this method doesn't throw if the JSON field has an unexpected type.
-
_order
final JsonField<Long> _order()
Returns the raw JSON value of order.
Unlike order, this method doesn't throw if the JSON field has an unexpected type.
-
_referralDescription
final JsonField<String> _referralDescription()
Returns the raw JSON value of referralDescription.
Unlike referralDescription, this method doesn't throw if the JSON field has an unexpected type.
-
_referredRewardUpfront
final JsonField<Boolean> _referredRewardUpfront()
Returns the raw JSON value of referredRewardUpfront.
Unlike referredRewardUpfront, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Campaign.Reward.Builder toBuilder()
-
validate
final Campaign.Reward validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static Campaign.Reward.Builder builder()
Returns a mutable builder for constructing an instance of Reward.
The following fields are required:
.id() .isUnlimited() .metadata() .type()
-
-
-
-