public void setUnhealthyThreshold(Integer unhealthyThreshold) {
        this.unhealthyThreshold = unhealthyThreshold;
    }
<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.
aws-java-sdk-appmesh/src/main/java/com/amazonaws/services/appmesh/model/VirtualGatewayHealthCheckPolicy.java