# Price.Builder

# Price.Builder

*** ** * ** ***

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


```
class Price.Builder
```

<br />

*** ** * ** ***

Builder class for [Price](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price).

## Summary

|                                                     ### Public constructors                                                      |
|----------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price.Builder#Builder())`()` |

|                                                    ### Public functions                                                     |
|-----------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Price](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                    |
| [Price.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setCurrentPrice](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price.Builder#setCurrentPrice(java.lang.String))`(currentPrice: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the current price.                                             |
| [Price.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setStrikethroughPrice](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price.Builder#setStrikethroughPrice(java.lang.String))`(strikethroughPrice: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the price that should be strikethrough on UI |

## Public constructors

### Builder

```
Builder()
```  

## Public functions

### build

```
fun build(): Price!
```  

### setCurrentPrice

```
@CanIgnoreReturnValue
fun setCurrentPrice(currentPrice: String!): Price.Builder!
```

Sets the current price.

Required.  

### setStrikethroughPrice

```
@CanIgnoreReturnValue
fun setStrikethroughPrice(strikethroughPrice: String!): Price.Builder!
```

Sets the price that should be strikethrough on UI

Optional.