public STSAssumeRoleSessionCredentialsProvider withRoleSessionDurationSeconds(long roleSessionDurationSeconds) {if (roleSessionDurationSeconds < 900 || roleSessionDurationSeconds > 3600) {throw new IllegalArgumentException("Assume Role session duration should be in the range of 15min - 1Hr");}this.roleSessionDurationSeconds = roleSessionDurationSeconds;return this;}

public void WithRoleSessionDurationSeconds(long roleSessionDurationSeconds){if (roleSessionDurationSeconds < 180 || roleSessionDurationSeconds > 3600){throw new ArgumentOutOfRangeException("Assume Role session duration should be in the range of 3min - 1Hr");}this.roleSessionDurationSeconds = roleSessionDurationSeconds;}
