SubscriptionEntitlement.Builder

public final class SubscriptionEntitlement.Builder


Builder class for SubscriptionEntitlement.

Summary

Public constructors

Public methods

SubscriptionEntitlement
SubscriptionEntitlement.Builder

Sets the display name of the entitlement.

SubscriptionEntitlement.Builder

Sets id of the entitlement.

SubscriptionEntitlement.Builder
@CanIgnoreReturnValue
setExpirationTimeMillis(long expirationTimeMillis)

Sets the expirationTime of the entitlement.

Public constructors

Builder

public Builder()

Public methods

build

public SubscriptionEntitlement build()

setDisplayName

@CanIgnoreReturnValue
public SubscriptionEntitlement.Builder setDisplayName(String displayName)

Sets the display name of the entitlement.

Optional.

setEntitlementId

@CanIgnoreReturnValue
public SubscriptionEntitlement.Builder setEntitlementId(String entitlementId)

Sets id of the entitlement.

Required.

setExpirationTimeMillis

@CanIgnoreReturnValue
public SubscriptionEntitlement.Builder setExpirationTimeMillis(long expirationTimeMillis)

Sets the expirationTime of the entitlement.

Optional.