Class Campaign
-
- All Implemented Interfaces:
public final class Campaign
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCampaign.BuilderA builder for Campaign.
public final classCampaign.Rewardpublic final classCampaign.Statuspublic final classCampaign.Type
-
Method Summary
Modifier and Type Method Description final Stringid()final LongimpressionCount()final LonginviteCount()final Stringname()final LongparticipantCount()final LongreferralCount()final List<Campaign.Reward>rewards()final Campaign.Statusstatus()final Campaign.Typetype()final LongwinnerCount()final Optional<String>currencyIso()final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Long>_impressionCount()Returns the raw JSON value of impressionCount. final JsonField<Long>_inviteCount()Returns the raw JSON value of inviteCount. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<Long>_participantCount()Returns the raw JSON value of participantCount. final JsonField<Long>_referralCount()Returns the raw JSON value of referralCount. final JsonField<List<Campaign.Reward>>_rewards()Returns the raw JSON value of rewards. final JsonField<Campaign.Status>_status()Returns the raw JSON value of status. final JsonField<Campaign.Type>_type()Returns the raw JSON value of type. final JsonField<Long>_winnerCount()Returns the raw JSON value of winnerCount. final JsonField<String>_currencyIso()Returns the raw JSON value of currencyIso. final Map<String, JsonValue>_additionalProperties()final Campaign.BuildertoBuilder()final Campaignvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Campaign.Builderbuilder()Returns a mutable builder for constructing an instance of Campaign. -
-
Method Detail
-
impressionCount
final Long impressionCount()
-
inviteCount
final Long inviteCount()
-
participantCount
final Long participantCount()
-
referralCount
final Long referralCount()
-
rewards
final List<Campaign.Reward> rewards()
-
status
final Campaign.Status status()
-
type
final Campaign.Type type()
-
winnerCount
final Long winnerCount()
-
currencyIso
final Optional<String> currencyIso()
-
_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.
-
_impressionCount
final JsonField<Long> _impressionCount()
Returns the raw JSON value of impressionCount.
Unlike impressionCount, this method doesn't throw if the JSON field has an unexpected type.
-
_inviteCount
final JsonField<Long> _inviteCount()
Returns the raw JSON value of inviteCount.
Unlike inviteCount, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_participantCount
final JsonField<Long> _participantCount()
Returns the raw JSON value of participantCount.
Unlike participantCount, this method doesn't throw if the JSON field has an unexpected type.
-
_referralCount
final JsonField<Long> _referralCount()
Returns the raw JSON value of referralCount.
Unlike referralCount, this method doesn't throw if the JSON field has an unexpected type.
-
_rewards
final JsonField<List<Campaign.Reward>> _rewards()
Returns the raw JSON value of rewards.
Unlike rewards, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<Campaign.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<Campaign.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_winnerCount
final JsonField<Long> _winnerCount()
Returns the raw JSON value of winnerCount.
Unlike winnerCount, this method doesn't throw if the JSON field has an unexpected type.
-
_currencyIso
final JsonField<String> _currencyIso()
Returns the raw JSON value of currencyIso.
Unlike currencyIso, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Campaign.Builder toBuilder()
-
validate
final Campaign 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.Builder builder()
Returns a mutable builder for constructing an instance of Campaign.
The following fields are required:
.id() .impressionCount() .inviteCount() .name() .participantCount() .referralCount() .rewards() .status() .type() .winnerCount()
-
-
-
-