All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.athenz.msd.PolicyPort Maven / Gradle / Ivy

There is a newer version: 1.12.5
Show newest version
//
// 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy