diff --git a/kubernetes/src/main/java/io/kubernetes/client/custom/IntOrString.java b/kubernetes/src/main/java/io/kubernetes/client/custom/IntOrString.java
index <HASH>..<HASH> 100644
--- a/kubernetes/src/main/java/io/kubernetes/client/custom/IntOrString.java
+++ b/kubernetes/src/main/java/io/kubernetes/client/custom/IntOrString.java
@@ -44,6 +44,11 @@ public class IntOrString {
         return intValue;
     }
 
+    @Override
+    public String toString() {
+    	return (isInt ? String.valueOf(intValue) : strValue);
+    }	    
+
     public static class IntOrStringAdapter extends TypeAdapter<IntOrString> {
         @Override
         public void write(JsonWriter jsonWriter, IntOrString intOrString) throws IOException {
adding toString method to IntOrString