Cleanup switch certificate chain handling
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / FlowGroupInfo.java
1 /*
2  * Copyright (c) 2020 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.openflowplugin.api.openflow;
9
10 import static java.util.Objects.requireNonNull;
11
12 import java.time.Instant;
13 import org.eclipse.jdt.annotation.NonNullByDefault;
14 import org.opendaylight.yangtools.concepts.Immutable;
15
16 @NonNullByDefault
17 public abstract class FlowGroupInfo implements Immutable {
18     private final Instant time = Instant.now();
19     private final FlowGroupStatus status;
20
21     protected FlowGroupInfo(final FlowGroupStatus status) {
22         this.status = requireNonNull(status);
23     }
24
25     public abstract String getId();
26
27     public abstract String getDescription();
28
29     public final FlowGroupStatus getStatus() {
30         return status;
31     }
32
33     public final Instant getInstantUTC() {
34         return time;
35     }
36 }