> -                 .unhealthyThreshold(in.getUnhealthyThreshold().orNull())
> -                 .healthyThreshold(in.getHealthyThreshold().orNull());
> -      }
> +   /** An unhealthy VM will be marked healthy after this many consecutive 
> successes. */
> +   public abstract int healthyThreshold();
> +
> +   @SerializedNames(
> +         { "id", "selfLink", "name", "description", "host", "requestPath", 
> "port", "checkIntervalSec", "timeoutSec",
> +               "unhealthyThreshold", "healthyThreshold" })
> +   public static HttpHealthCheck create(String id, URI selfLink, String 
> name, String description, String host,
> +         String requestPath, Integer port, Integer checkIntervalSec, Integer 
> timeoutSec, Integer unhealthyThreshold,
> +         Integer healthyThreshold) {
> +      return new AutoValue_HttpHealthCheck(id, selfLink, name, description, 
> host,
> +            requestPath != null ? requestPath : "/", port != null ? port : 
> 80,
> +            checkIntervalSec != null ? checkIntervalSec : 5, timeoutSec != 
> null ? timeoutSec : 5,
> +            unhealthyThreshold != null ? unhealthyThreshold : 2, 
> healthyThreshold != null ? healthyThreshold : 2);

done

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/73/files#r19772756

Reply via email to