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

org.openstack4j.openstack.networking.domain.NeutronHostRoute Maven / Gradle / Ivy

package org.openstack4j.openstack.networking.domain;

import org.openstack4j.model.network.HostRoute;

import com.google.common.base.Objects;

/**
 * A Network Host based Routing Entry.
 *
 * @author Jeremy Unruh
 */
public class NeutronHostRoute implements HostRoute {

	private static final long serialVersionUID = 1L;

	private String destination;
	private String nexthop;
	
	public NeutronHostRoute() {
	}

	public NeutronHostRoute(String destination, String nexthop) {
		this.destination = destination;
		this.nexthop = nexthop;
	}
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	public String getDestination() {
		return destination;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String getNexthop() {
		return nexthop;
	}
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	public String toString() {
		return Objects.toStringHelper(this).omitNullValues()
				     .add("destination", destination).add("nexthop", nexthop).toString();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy