public ApplyPendingMaintenanceActionRequest withOptInType(String optInType) {
        setOptInType(optInType);
        return this;
    }
<p>
A value that specifies the type of opt-in request, or undoes an opt-in request. An opt-in request of type
<code>immediate</code> can't be undone.
</p>
<p>
Valid Values:
</p>
<ul>
<li>
<p>
<code>immediate</code> - Apply the maintenance action immediately.
</p>
</li>
<li>
<p>
<code>next-maintenance</code> - Apply the maintenance action during the next maintenance window for the resource.
</p>
</li>
<li>
<p>
<code>undo-opt-in</code> - Cancel any existing <code>next-maintenance</code> opt-in requests.
</p>
</li>
</ul>

@param optInType
       A value that specifies the type of opt-in request, or undoes an opt-in request. An opt-in request of type
       <code>immediate</code> can't be undone.</p>
       <p>
       Valid Values:
       </p>
       <ul>
       <li>
       <p>
       <code>immediate</code> - Apply the maintenance action immediately.
       </p>
       </li>
       <li>
       <p>
       <code>next-maintenance</code> - Apply the maintenance action during the next maintenance window for the
       resource.
       </p>
       </li>
       <li>
       <p>
       <code>undo-opt-in</code> - Cancel any existing <code>next-maintenance</code> opt-in requests.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/ApplyPendingMaintenanceActionRequest.java