# AutomationSuggestion


```
class AutomationSuggestion : HasId
```

<br />

*** ** * ** ***

The main representation of an automation suggestion.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationSuggestion#AutomationSuggestion(com.google.home.Id,com.google.home.automation.SuggestionMetadata,com.google.home.automation.BaseAutomation)( suggestionId: https://developers.home.google.com/reference/kotlin/com/google/home/Id, suggestionMetadata: https://developers.home.google.com/reference/kotlin/com/google/home/automation/SuggestionMetadata, suggestionInstance: https://developers.home.google.com/reference/kotlin/com/google/home/automation/BaseAutomation )` |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationSuggestion#getSuggestionId()()` |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationSuggestion#toString()()` |

| ### Public properties |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/Id` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationSuggestion#id()` Opaque ID for the object. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Id` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationSuggestion#suggestionId()` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/BaseAutomation` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationSuggestion#suggestionInstance()` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/SuggestionMetadata` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationSuggestion#suggestionMetadata()` |

## Public constructors

### AutomationSuggestion

```
AutomationSuggestion(
    suggestionId: Id,
    suggestionMetadata: SuggestionMetadata,
    suggestionInstance: BaseAutomation
)
```

## Public functions

### getSuggestionId

```
fun getSuggestionId(): String
```

### toString

```
open fun toString(): String
```

## Public properties

### id

```
open val id: Id
```

Opaque ID for the object. Used for comparison and HomeObjectsFlow.get.

### suggestionId

```
val suggestionId: Id
```

### suggestionInstance

```
val suggestionInstance: BaseAutomation
```

### suggestionMetadata

```
val suggestionMetadata: SuggestionMetadata
```