public ClusterInstanceGroupDetails withTargetCount(Integer targetCount) {
        setTargetCount(targetCount);
        return this;
    }
<p>
The number of instances you specified to add to the instance group of a SageMaker HyperPod cluster.
</p>

@param targetCount
       The number of instances you specified to add to 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