2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.amazonechocontrol.internal.jsons;
15 import java.util.List;
16 import java.util.TreeMap;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
22 * The {@link JsonAutomation} encapsulate the GSON data of automation query
24 * @author Michael Geramb - Initial contribution
27 public class JsonAutomation {
28 public @Nullable String automationId;
29 public @Nullable String name;
30 public @Nullable List<Trigger> triggers;
31 public @Nullable TreeMap<String, Object> sequence;
32 public @Nullable String status;
33 public long creationTimeEpochMillis;
34 public long lastUpdatedTimeEpochMillis;
36 public static class Trigger {
37 public @Nullable Payload payload;
38 public @Nullable String id;
39 public @Nullable String type;
42 public static class Payload {
43 public @Nullable String customerId;
44 public @Nullable String utterance;
45 public @Nullable String locale;
46 public @Nullable String marketplaceId;