# Interface Environment.SessionSpecOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.dataplex.v1.Environment.SessionSpecOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.dataplex.v1.Environment.SessionSpecOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.dataplex.v1.Environment.SessionSpecOrBuilder)

    public static interface Environment.SessionSpecOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getEnableFastStartup()

    public abstract boolean getEnableFastStartup()

Optional. If True, this causes sessions to be pre-created and available
for faster startup to enable interactive exploration use-cases. This
defaults to False to avoid additional billed charges. These can only be
set to True for the environment with name set to "default", and with
default configuration.

`bool enable_fast_startup = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enableFastStartup. |

### getMaxIdleDuration()

    public abstract Duration getMaxIdleDuration()

Optional. The idle time configuration of the session. The session will be
auto-terminated at the end of this period.

`.google.protobuf.Duration max_idle_duration = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The maxIdleDuration. |

### getMaxIdleDurationOrBuilder()

    public abstract DurationOrBuilder getMaxIdleDurationOrBuilder()

Optional. The idle time configuration of the session. The session will be
auto-terminated at the end of this period.

`.google.protobuf.Duration max_idle_duration = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### hasMaxIdleDuration()

    public abstract boolean hasMaxIdleDuration()

Optional. The idle time configuration of the session. The session will be
auto-terminated at the end of this period.

`.google.protobuf.Duration max_idle_duration = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the maxIdleDuration field is set. |