public ClusterInstanceGroupDetails withCurrentCount(Integer currentCount) {
        setCurrentCount(currentCount);
        return this;
    }
<p>
The number of instances that are currently in the instance group of a SageMaker HyperPod cluster.
</p>

@param currentCount
       The number of instances that are currently in the instance group of a SageMaker HyperPod cluster.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ClusterInstanceGroupDetails.java