2 * Copyright (c) 2021 PANTHEON.tech, s.r.o. and others. All rights reserved.
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
8 package org.opendaylight.restconf.nb.rfc8040;
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime;
14 * This class represents a {@code stop-time} parameter as defined in
15 * <a href="https://datatracker.ietf.org/doc/html/rfc8040#section-4.8.8">RFC8040 section 4.8.8</a>.
17 public final class StopTimeParam extends AbstractReplayParam<StopTimeParam> {
18 // API consistency: must not be confused with enum constants
19 @SuppressWarnings("checkstyle:ConstantName")
20 public static final @NonNull String uriName = "stop-time";
22 private StopTimeParam(final DateAndTime value) {
26 public static @NonNull StopTimeParam of(final DateAndTime value) {
27 return new StopTimeParam(value);
31 public Class<@NonNull StopTimeParam> javaClass() {
32 return StopTimeParam.class;
36 public String paramName() {
40 public static @NonNull StopTimeParam forUriValue(final String uriValue) {
41 return of(new DateAndTime(uriValue));