Open Kilda Java Documentation
HostResource.java
Go to the documentation of this file.
1
/* Copyright 2018 Telstra Open Source
2
*
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
16
package
org.openkilda.testing.service.traffexam.model;
17
18
import
com.fasterxml.jackson.annotation.JsonCreator;
19
import
com.fasterxml.jackson.annotation.JsonIgnore;
20
import
com.fasterxml.jackson.annotation.JsonProperty;
21
22
import
java.io.Serializable;
23
import
java.util.UUID;
24
25
public
abstract
class
HostResource
implements
Serializable {
26
@JsonProperty(
"idnr"
)
27
private
final
UUID id;
28
29
@JsonIgnore
30
private
Host
host = null;
31
32
@JsonCreator
33
public
HostResource
(UUID
id
) {
34
this.
id
= id;
35
}
36
37
public
UUID
getId
() {
38
return
id;
39
}
40
41
public
Host
getHost
() {
42
return
host;
43
}
44
45
public
void
setHost
(
Host
host) {
46
this.host = host;
47
}
48
}
org.openkilda.testing.service.traffexam.model.HostResource.getId
UUID getId()
Definition:
HostResource.java:37
org.openkilda.testing.service.traffexam.model.HostResource
Definition:
HostResource.java:25
org.openkilda.testing.service.traffexam.model.Host
Definition:
Host.java:27
org.openkilda.testing.service.traffexam.model.HostResource.getHost
Host getHost()
Definition:
HostResource.java:41
org.openkilda.testing.service.traffexam.model.HostResource.setHost
void setHost(Host host)
Definition:
HostResource.java:45
org.openkilda.testing.service.traffexam.model.HostResource.HostResource
HostResource(UUID id)
Definition:
HostResource.java:33
open-kilda-develop
services
src
test-library
src
main
java
org
openkilda
testing
service
traffexam
model
HostResource.java
Generated by
1.8.14