public CreateClusterRequest withInstanceGroup ( InstanceGroupConfig instanceGroup ) { if ( this . instanceGroups == null ) { this . instanceGroups = new ArrayList < InstanceGroupConfig > ( ) ; } this . instanceGroups . add ( instanceGroup ) ; return this ; }
Configure the instance group for the cluster .