class IntOrString extends AnyType {

  public IntOrString() {
  }

  @JsonCreator
  //Builders are generated for the first non-empty constructor found.
  @Buildable(editableEnabled = false, generateBuilderPackage = false, builderPackage = "io.fabric8.kubernetes.api.builder")
  public IntOrString(Object value) {
    setValue(value);
  }

  @Override
  public void setValue(Object value) {<FILL_FUNCTION_BODY>}

  /**
   * Get Integer value
   *
   * @return Integer value if set
   */
  public Integer getIntVal() {
    if (value instanceof Integer) {
      return (Integer) value;
    }
    return null;
  }

  /**
   * Get String value
   *
   * @return string value if set
   */
  public String getStrVal() {
    if (value instanceof String) {
      return (String) value;
    }
    return null;
  }

}

    if (value != null && !(value instanceof Integer) && !(value instanceof String)) {
      throw new IllegalArgumentException("Either integer or string value needs to be provided");
    }
    super.setValue(value);
  
<methods>public void <init>() ,public void <init>(java.lang.Object) ,public java.lang.Object getValue() <variables>protected java.lang.Object value