public ParticipantTokenConfiguration withDuration(Integer duration) {
        setDuration(duration);
        return this;
    }
<p>
Duration (in minutes), after which the corresponding participant token expires. Default: 720 (12 hours).
</p>

@param duration
       Duration (in minutes), after which the corresponding participant token expires. Default: 720 (12 hours).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ivsrealtime/src/main/java/com/amazonaws/services/ivsrealtime/model/ParticipantTokenConfiguration.java