public InstanceTypeSpecification withPriority(Double priority) {
        setPriority(priority);
        return this;
    }
<p>
The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type. Priority starts at 0,
which is the highest priority. Amazon EMR considers the highest priority first.
</p>

@param priority
       The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type. Priority
       starts at 0, which is the highest priority. Amazon EMR considers the highest priority first.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/InstanceTypeSpecification.java