public MediaConcurrency withConcurrency(Integer concurrency) {
        setConcurrency(concurrency);
        return this;
    }
<p>
The number of contacts an agent can have on a channel simultaneously.
</p>
<p>
Valid Range for <code>VOICE</code>: Minimum value of 1. Maximum value of 1.
</p>
<p>
Valid Range for <code>CHAT</code>: Minimum value of 1. Maximum value of 10.
</p>
<p>
Valid Range for <code>TASK</code>: Minimum value of 1. Maximum value of 10.
</p>

@param concurrency
       The number of contacts an agent can have on a channel simultaneously.</p>
       <p>
       Valid Range for <code>VOICE</code>: Minimum value of 1. Maximum value of 1.
       </p>
       <p>
       Valid Range for <code>CHAT</code>: Minimum value of 1. Maximum value of 10.
       </p>
       <p>
       Valid Range for <code>TASK</code>: Minimum value of 1. Maximum value of 10.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MediaConcurrency.java