public LogPattern withRank(Integer rank) {
        setRank(rank);
        return this;
    }
<p>
Rank of the log pattern. Must be a value between <code>1</code> and <code>1,000,000</code>. The patterns are
sorted by rank, so we recommend that you set your highest priority patterns with the lowest rank. A pattern of
rank <code>1</code> will be the first to get matched to a log line. A pattern of rank <code>1,000,000</code> will
be last to get matched. When you configure custom log patterns from the console, a <code>Low</code> severity
pattern translates to a <code>750,000</code> rank. A <code>Medium</code> severity pattern translates to a
<code>500,000</code> rank. And a <code>High</code> severity pattern translates to a <code>250,000</code> rank.
Rank values less than <code>1</code> or greater than <code>1,000,000</code> are reserved for AWS-provided
patterns.
</p>

@param rank
       Rank of the log pattern. Must be a value between <code>1</code> and <code>1,000,000</code>. The patterns
       are sorted by rank, so we recommend that you set your highest priority patterns with the lowest rank. A
       pattern of rank <code>1</code> will be the first to get matched to a log line. A pattern of rank
       <code>1,000,000</code> will be last to get matched. When you configure custom log patterns from the
       console, a <code>Low</code> severity pattern translates to a <code>750,000</code> rank. A
       <code>Medium</code> severity pattern translates to a <code>500,000</code> rank. And a <code>High</code>
       severity pattern translates to a <code>250,000</code> rank. Rank values less than <code>1</code> or
       greater than <code>1,000,000</code> are reserved for AWS-provided patterns.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-applicationinsights/src/main/java/com/amazonaws/services/applicationinsights/model/LogPattern.java