# SubscriptionEntitlement

# SubscriptionEntitlement

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/com/google/android/engage/common/datamodel/SubscriptionEntitlement "View this page in Java")  

<br />

```
class SubscriptionEntitlement
```

<br />

*** ** * ** ***

An object representing a subscription entitlement.

## Summary

|                                                                                                                                                          ### Nested types                                                                                                                                                           |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[SubscriptionEntitlement.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/SubscriptionEntitlement.Builder) Builder class for[SubscriptionEntitlement](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/SubscriptionEntitlement). |

|                            ### Public functions                             |
|-----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
| [Bundle](https://developer.android.com/reference/android/os/Bundle.html)`!` | [toBundle](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/SubscriptionEntitlement#toBundle())`()` |

|                                ### Public properties                                |
|-------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!` | [displayName](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/SubscriptionEntitlement#displayName())                   |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!` | [entitlementId](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/SubscriptionEntitlement#entitlementId())               |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!`     | [expirationTimeMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/SubscriptionEntitlement#expirationTimeMillis()) |

## Public functions

### toBundle

```
fun toBundle(): Bundle!
```  

## Public properties

### displayName

```
val displayName: String!
```  

### entitlementId

```
val entitlementId: String!
```  

### expirationTimeMillis

```
val expirationTimeMillis: Long!
```