public InstanceConfig withInstanceCount(Integer instanceCount) {
        setInstanceCount(instanceCount);
        return this;
    }
<p>
Configures the number of resource instances to use while running an Amazon Braket job on Amazon Braket. The
default value is 1.
</p>

@param instanceCount
       Configures the number of resource instances to use while running an Amazon Braket job on Amazon Braket.
       The default value is 1.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-braket/src/main/java/com/amazonaws/services/braket/model/InstanceConfig.java