Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Builder

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/net/ipsec/ike/ChildSessionConfiguration.Builder "View this page in Java")

```
class Builder
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.net.ipsec.ike.ChildSessionConfiguration.Builder](https://developer.android.com/reference/kotlin/android/net/ipsec/ike/ChildSessionConfiguration.Builder#) |

This class can be used to incrementally construct a `https://developer.android.com/reference/kotlin/android/net/ipsec/ike/ChildSessionConfiguration`.

Except for testing, IKE library users normally do not instantiate `https://developer.android.com/reference/kotlin/android/net/ipsec/ike/ChildSessionConfiguration` themselves but instead get a reference via `https://developer.android.com/reference/kotlin/android/net/ipsec/ike/ChildSessionCallback`

## Summary

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/net/ipsec/ike/ChildSessionConfiguration.Builder#Builder(kotlin.collections.MutableList,%20kotlin.collections.MutableList)(inTs: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/kotlin/android/net/ipsec/ike/IkeTrafficSelector!>, outTs: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/kotlin/android/net/ipsec/ike/IkeTrafficSelector!>)` Constructs a Builder. |

| Public methods ||
|---|---|
| [ChildSessionConfiguration](https://developer.android.com/reference/kotlin/android/net/ipsec/ike/ChildSessionConfiguration) | `https://developer.android.com/reference/kotlin/android/net/ipsec/ike/ChildSessionConfiguration.Builder#build()()` Constructs an `https://developer.android.com/reference/kotlin/android/net/ipsec/ike/ChildSessionConfiguration` instance. |

## Public constructors

### Builder

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
Builder(
    inTs: MutableList<IkeTrafficSelector!>, 
    outTs: MutableList<IkeTrafficSelector!>)
```

Constructs a Builder.

| Parameters ||
|---|---|
| `inTs` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[IkeTrafficSelector](https://developer.android.com/reference/kotlin/android/net/ipsec/ike/IkeTrafficSelector)!\>: the negotiated inbound traffic selectors. This value cannot be `null`. |
| `outTs` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[IkeTrafficSelector](https://developer.android.com/reference/kotlin/android/net/ipsec/ike/IkeTrafficSelector)!\>: the negotiated outbound traffic selectors. This value cannot be `null`. |

## Public methods

### build

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun build(): ChildSessionConfiguration
```

Constructs an `https://developer.android.com/reference/kotlin/android/net/ipsec/ike/ChildSessionConfiguration` instance.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/net/ipsec/ike/ChildSessionConfiguration` | This value cannot be `null`. |