/*
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 *
 */
package com.github.kubernetes.java.client.model;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown=true)
public class Port {

	private String name;
	private String protocol;
	private int containerPort;
	private int hostPort;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getProtocol() {
		return protocol;
	}
	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}
	public int getContainerPort() {
		return containerPort;
	}
	public void setContainerPort(int containerPort) {
		this.containerPort = containerPort;
	}
	public int getHostPort() {
		return hostPort;
	}
	public void setHostPort(int hostPort) {
		this.hostPort = hostPort;
	}
	@Override
	public String toString() {
		return "Port [name=" + name + ", protocol=" + protocol
				+ ", containerPort=" + containerPort + ", hostPort=" + hostPort
				+ "]";
	}
	
	
}

@@ -952,17 +952,19 @@
 eUnknown
-=
+ = 
 true)%0Apu
@@ -982,17 +982,20 @@
 Port %7B%0A%0A
-%09
+    
 private 
@@ -1007,17 +1007,20 @@
 g name;%0A
-%09
+    
 private 
@@ -1034,19 +1034,30 @@
 protocol
-;%0A%09
+ = %22TCP%22;%0A    
 private 
@@ -1075,17 +1075,20 @@
 erPort;%0A
-%09
+    
 private 
@@ -1101,19 +1101,163 @@
 stPort;%0A
-%09%0A%09
+    private String hostIp;%0A%0A    public Port() %7B%0A    %7D%0A%0A    public Port(int containerPort) %7B%0A        this.containerPort = containerPort;%0A    %7D%0A%0A    
 public S
@@ -1270,26 +1270,32 @@
 getName() %7B%0A
-%09%09
+        
 return name;
@@ -1291,28 +1291,35 @@
 eturn name;%0A
-%09%7D%0A%09
+    %7D%0A%0A    
 public void 
@@ -1337,26 +1337,32 @@
 ing name) %7B%0A
-%09%09
+        
 this.name = 
@@ -1367,20 +1367,61 @@
 = name;%0A
-%09%7D%0A%09
+    %7D%0A%0A    /**%0A     * TCP or UDP%0A     */%0A    
 public S
@@ -1438,26 +1438,32 @@
 rotocol() %7B%0A
-%09%09
+        
 return proto
@@ -1463,28 +1463,35 @@
 n protocol;%0A
-%09%7D%0A%09
+    %7D%0A%0A    
 public void 
@@ -1517,26 +1517,32 @@
 protocol) %7B%0A
-%09%09
+        
 this.protoco
@@ -1555,20 +1555,27 @@
 otocol;%0A
-%09%7D%0A%09
+    %7D%0A%0A    
 public i
@@ -1594,26 +1594,32 @@
 nerPort() %7B%0A
-%09%09
+        
 return conta
@@ -1624,28 +1624,35 @@
 tainerPort;%0A
-%09%7D%0A%09
+    %7D%0A%0A    
 public void 
@@ -1685,26 +1685,32 @@
 inerPort) %7B%0A
-%09%09
+        
 this.contain
@@ -1729,28 +1729,35 @@
 tainerPort;%0A
-%09%7D%0A%09
+    %7D%0A%0A    
 public int g
@@ -1767,26 +1767,32 @@
 ostPort() %7B%0A
-%09%09
+        
 return hostP
@@ -1796,20 +1796,27 @@
 stPort;%0A
-%09%7D%0A%09
+    %7D%0A%0A    
 public v
@@ -1847,18 +1847,24 @@
 Port) %7B%0A
-%09%09
+        
 this.hos
@@ -1881,20 +1881,169 @@
 stPort;%0A
-%09%7D%0A%09
+    %7D%0A%0A    public String getHostIp() %7B%0A        return hostIp;%0A    %7D%0A%0A    public void setHostIp(String hostIp) %7B%0A        this.hostIp = hostIp;%0A    %7D%0A%0A    
 @Overrid
@@ -2044,17 +2044,20 @@
 verride%0A
-%09
+    
 public S
@@ -2075,18 +2075,24 @@
 ing() %7B%0A
-%09%09
+        
 return %22
@@ -2137,21 +2137,17 @@
 protocol
-%0A%09%09%09%09
+ 
 + %22, con
@@ -2194,36 +2194,71 @@
 rt=%22
- + hostPort%0A%09%09%09%09
+%0A                + hostPort + %22, hostIp=%22 + hostIp 
 + %22%5D%22;%0A
-%09%7D%0A%09%0A%09
+    %7D%0A
 %0A%7D%0A

Add Port.hostIp and convenience constructors