blob: 585069631bb0e05f464499591aef1e5c1227b1cf [file] [log] [blame]
Hyunsun Moon4c396632016-05-13 04:17:53 -07001/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.xosclient.api;
17
18import org.onlab.util.Identifier;
19
20import static com.google.common.base.Preconditions.checkNotNull;
21
22/**
23 * Representation of VTN service identifier.
24 */
25public final class VtnServiceId extends Identifier<String> {
26 /**
27 * Default constructor.
28 *
29 * @param id service identifier
30 */
31 private VtnServiceId(String id) {
32 super(id);
33 }
34
35 /**
36 * Returns the VtnServiceId with value.
37 *
38 * @param id service id
39 * @return CordServiceId
40 */
41 public static VtnServiceId of(String id) {
42 checkNotNull(id);
43 return new VtnServiceId(id);
44 }
45}