public void setDurationSeconds(Integer durationSeconds) {
        this.durationSeconds = durationSeconds;
    }
<p>
Used to determine how long sessions vended using this profile are valid for. See the <code>Expiration</code>
section of the <a href=
"https://docs.aws.amazon.com/rolesanywhere/latest/userguide/authentication-create-session.html#credentials-object"
>CreateSession API documentation</a> page for more details. In requests, if this value is not provided, the
default value will be 3600.
</p>

@param durationSeconds
       Used to determine how long sessions vended using this profile are valid for. See the
       <code>Expiration</code> section of the <a href=
       "https://docs.aws.amazon.com/rolesanywhere/latest/userguide/authentication-create-session.html#credentials-object"
       >CreateSession API documentation</a> page for more details. In requests, if this value is not provided,
       the default value will be 3600.
aws-java-sdk-iamrolesanywhere/src/main/java/com/amazonaws/services/iamrolesanywhere/model/ProfileDetail.java