/*******************************************************************************
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package org.eclipse.che.plugin.docker.client.json;
/**
* Defines information about container port which was published to the host
*
* @author Alexander Andrienko
*/
public class ContainerPort {
private int privatePort;
private int publicPort;
private String type;
public int getPrivatePort() {
return privatePort;
}
public void setPrivatePort(int privatePort) {
this.privatePort = privatePort;
}
public int getPublicPort() {
return publicPort;
}
public void setPublicPort(int publicPort) {
this.publicPort = publicPort;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public String toString() {
return "ContainerPort{" +
"privatePort=" + privatePort +
", publicPort=" + publicPort +
", type='" + type + '\'' +
'}';
}
}