com.yahoo.athenz.msd.PolicyPort Maven / Gradle / Ivy
//
// This file generated by rdl 1.5.2. Do not modify!
//
package com.yahoo.athenz.msd;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.yahoo.rdl.*;
//
// PolicyPort - generic policy port. Will be used by TransportPolicyPort and
// NetworkPolicyPort structs
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class PolicyPort {
public int port;
public int endPort;
public PolicyPort setPort(int port) {
this.port = port;
return this;
}
public int getPort() {
return port;
}
public PolicyPort setEndPort(int endPort) {
this.endPort = endPort;
return this;
}
public int getEndPort() {
return endPort;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != PolicyPort.class) {
return false;
}
PolicyPort a = (PolicyPort) another;
if (port != a.port) {
return false;
}
if (endPort != a.endPort) {
return false;
}
}
return true;
}
}