public S3InitiateRestoreObjectOperation withExpirationInDays(Integer expirationInDays) {
        setExpirationInDays(expirationInDays);
        return this;
    }
<p>
This argument specifies how long the S3 Glacier or S3 Glacier Deep Archive object remains available in Amazon S3.
S3 Initiate Restore Object jobs that target S3 Glacier and S3 Glacier Deep Archive objects require
<code>ExpirationInDays</code> set to 1 or greater.
</p>
<p>
Conversely, do <i>not</i> set <code>ExpirationInDays</code> when creating S3 Initiate Restore Object jobs that
target S3 Intelligent-Tiering Archive Access and Deep Archive Access tier objects. Objects in S3
Intelligent-Tiering archive access tiers are not subject to restore expiry, so specifying
<code>ExpirationInDays</code> results in restore request failure.
</p>
<p>
S3 Batch Operations jobs can operate either on S3 Glacier and S3 Glacier Deep Archive storage class objects or on
S3 Intelligent-Tiering Archive Access and Deep Archive Access storage tier objects, but not both types in the
same job. If you need to restore objects of both types you <i>must</i> create separate Batch Operations jobs.
</p>

@param expirationInDays
       This argument specifies how long the S3 Glacier or S3 Glacier Deep Archive object remains available in
       Amazon S3. S3 Initiate Restore Object jobs that target S3 Glacier and S3 Glacier Deep Archive objects
       require <code>ExpirationInDays</code> set to 1 or greater.</p>
       <p>
       Conversely, do <i>not</i> set <code>ExpirationInDays</code> when creating S3 Initiate Restore Object jobs
       that target S3 Intelligent-Tiering Archive Access and Deep Archive Access tier objects. Objects in S3
       Intelligent-Tiering archive access tiers are not subject to restore expiry, so specifying
       <code>ExpirationInDays</code> results in restore request failure.
       </p>
       <p>
       S3 Batch Operations jobs can operate either on S3 Glacier and S3 Glacier Deep Archive storage class
       objects or on S3 Intelligent-Tiering Archive Access and Deep Archive Access storage tier objects, but not
       both types in the same job. If you need to restore objects of both types you <i>must</i> create separate
       Batch Operations jobs.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-s3control/src/main/java/com/amazonaws/services/s3control/model/S3InitiateRestoreObjectOperation.java