public void setEc2InstanceAttributes(Ec2InstanceAttributes ec2InstanceAttributes) {
        this.ec2InstanceAttributes = ec2InstanceAttributes;
    }
<p>
Provides information about the Amazon EC2 instances in a cluster grouped by category. For example, key name,
subnet ID, IAM instance profile, and so on.
</p>

@param ec2InstanceAttributes
       Provides information about the Amazon EC2 instances in a cluster grouped by category. For example, key
       name, subnet ID, IAM instance profile, and so on.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/Cluster.java