public class VirtualMonetizationEventBuilder extends MonetizationEventBuilder
Modifier and Type | Method and Description |
---|---|
static VirtualMonetizationEventBuilder |
create(AnalyticsClient analyticsClient)
Create a VirtualMonetizationEventBuilder with the specified Event client
|
VirtualMonetizationEventBuilder |
withCurrency(java.lang.String currency)
Sets the currency of the item being purchased.
|
VirtualMonetizationEventBuilder |
withItemPrice(double itemPrice)
Sets the numerical price of the item being purchased
|
VirtualMonetizationEventBuilder |
withProductId(java.lang.String productId)
Sets the product identifier field of the item being purchased.
|
VirtualMonetizationEventBuilder |
withQuantity(java.lang.Double quantity)
Sets the quantity of the item being purchased.
|
build
public static VirtualMonetizationEventBuilder create(AnalyticsClient analyticsClient)
analyticsClient
- The event client to use when creating monetization
eventspublic VirtualMonetizationEventBuilder withProductId(java.lang.String productId)
productId
- The product id representing the item being purchasedpublic VirtualMonetizationEventBuilder withItemPrice(double itemPrice)
itemPrice
- The numerical price of the itempublic VirtualMonetizationEventBuilder withQuantity(java.lang.Double quantity)
quantity
- The number of items purchased in this transactionpublic VirtualMonetizationEventBuilder withCurrency(java.lang.String currency)
currency
- The name of the virtual currency used to purchase this
item (i.e. Coins or Gold)Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.