Open Kilda Java Documentation
DiscoverIslCommandData.java
Go to the documentation of this file.
1 /* Copyright 2017 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.messaging.command.discovery;
17 
20 
21 import com.fasterxml.jackson.annotation.JsonCreator;
22 import com.fasterxml.jackson.annotation.JsonProperty;
23 import lombok.Value;
24 
28 @Value
29 public class DiscoverIslCommandData extends CommandData {
33  private static final long serialVersionUID = 1L;
34 
38  @JsonProperty("switch_id")
39  private SwitchId switchId;
40 
44  @JsonProperty("port_number")
45  private int portNumber;
46 
53  @JsonCreator
54  public DiscoverIslCommandData(@JsonProperty("switch_id") final SwitchId switchId,
55  @JsonProperty("port_number") final int portNumber) {
56  this.switchId = switchId;
57  this.portNumber = portNumber;
58  }
59 }
DiscoverIslCommandData(@JsonProperty("switch_id") final SwitchId switchId, @JsonProperty("port_number") final int portNumber)