public VirtualGatewayHealthCheckPolicy withUnhealthyThreshold(Integer unhealthyThreshold) {
        setUnhealthyThreshold(unhealthyThreshold);
        return this;
    }
<p>
The number of consecutive failed health checks that must occur before declaring a virtual gateway unhealthy.
</p>

@param unhealthyThreshold
       The number of consecutive failed health checks that must occur before declaring a virtual gateway
       unhealthy.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appmesh/src/main/java/com/amazonaws/services/appmesh/model/VirtualGatewayHealthCheckPolicy.java