public DecisionTaskScheduledEventAttributes withTaskPriority(String taskPriority) {
        setTaskPriority(taskPriority);
        return this;
    }
<p>
A task priority that, if set, specifies the priority for this decision task. Valid values are integers that range
from Java's <code>Integer.MIN_VALUE</code> (-2147483648) to <code>Integer.MAX_VALUE</code> (2147483647). Higher
numbers indicate higher priority.
</p>
<p>
For more information about setting task priority, see <a
href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html">Setting Task
Priority</a> in the <i>Amazon SWF Developer Guide</i>.
</p>

@param taskPriority
       A task priority that, if set, specifies the priority for this decision task. Valid values are integers
       that range from Java's <code>Integer.MIN_VALUE</code> (-2147483648) to <code>Integer.MAX_VALUE</code>
       (2147483647). Higher numbers indicate higher priority.</p>
       <p>
       For more information about setting task priority, see <a
       href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html">Setting Task
       Priority</a> in the <i>Amazon SWF Developer Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-simpleworkflow/src/main/java/com/amazonaws/services/simpleworkflow/model/DecisionTaskScheduledEventAttributes.java