public Cluster withInstanceCollectionType(InstanceCollectionType instanceCollectionType) {
        this.instanceCollectionType = instanceCollectionType.toString();
        return this;
    }
<note>
<p>
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x
versions.
</p>
</note>
<p>
The instance group configuration of the cluster. A value of <code>INSTANCE_GROUP</code> indicates a uniform
instance group configuration. A value of <code>INSTANCE_FLEET</code> indicates an instance fleets configuration.
</p>

@param instanceCollectionType
       <p>
       The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x
       versions.
       </p>
       </note>
       <p>
       The instance group configuration of the cluster. A value of <code>INSTANCE_GROUP</code> indicates a
       uniform instance group configuration. A value of <code>INSTANCE_FLEET</code> indicates an instance fleets
       configuration.
@return Returns a reference to this object so that method calls can be chained together.
@see InstanceCollectionType
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/Cluster.java