Open Kilda Java Documentation
SwitchInfo.java
Go to the documentation of this file.
1 package org.openkilda.model;
2 
3 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4 import com.fasterxml.jackson.annotation.JsonInclude;
5 import com.fasterxml.jackson.annotation.JsonProperty;
6 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
7 
8 import java.io.Serializable;
9 
15 @JsonInclude(JsonInclude.Include.NON_NULL)
16 @JsonPropertyOrder({"switch_id", "address", "hostname", "description", "state"})
17 @JsonIgnoreProperties(ignoreUnknown = true)
18 public class SwitchInfo implements Serializable {
19  @JsonProperty("switch_id")
20  private String switchId;
21  @JsonProperty("address")
22  private String address;
23  @JsonProperty("hostname")
24  private String hostname;
25  @JsonProperty("description")
26  private String description;
27  @JsonProperty("name")
28  private String name;
29 
30  @JsonProperty("state")
31  private String state;
32 
34  private final static long serialVersionUID = 6763064864461521069L;
35 
36  public String getSwitchId() {
37  return switchId;
38  }
39 
40  public void setSwitchId(String switchId) {
41  this.switchId = switchId;
42  }
43 
44  public String getAddress() {
45  return address;
46  }
47 
48  public void setAddress(String address) {
49  this.address = address;
50  }
51 
52  public String getHostname() {
53  return hostname;
54  }
55 
56  public void setHostname(String hostname) {
57  this.hostname = hostname;
58  }
59 
60  public String getDescription() {
61  return description;
62  }
63 
64  public void setDescription(String description) {
65  this.description = description;
66  }
67 
68 
69  public String getName() {
70  return name;
71  }
72 
73  public void setName(String name) {
74  this.name = name;
75  }
76 
77  public String getState() {
78  return state;
79  }
80 
81  public void setState(String state) {
82  this.state = state;
83  }
84 
85  @Override
86  public String toString() {
87  return "SwitchInfo [switchId=" + switchId + ", address=" + address + ", hostname="
88  + hostname + ", description=" + description + ", name=" + name + ", state=" + state
89  + "]";
90  }
91 
92 }
void setState(String state)
Definition: SwitchInfo.java:81
void setAddress(String address)
Definition: SwitchInfo.java:48
name
Definition: setup.py:24
description
Definition: setup.py:26
void setDescription(String description)
Definition: SwitchInfo.java:64
void setHostname(String hostname)
Definition: SwitchInfo.java:56
void setSwitchId(String switchId)
Definition: SwitchInfo.java:40