public ResourcePendingMaintenanceActions withPendingMaintenanceActionDetails(PendingMaintenanceAction... pendingMaintenanceActionDetails) {
        if (this.pendingMaintenanceActionDetails == null) {
            setPendingMaintenanceActionDetails(new java.util.ArrayList<PendingMaintenanceAction>(pendingMaintenanceActionDetails.length));
        }
        for (PendingMaintenanceAction ele : pendingMaintenanceActionDetails) {
            this.pendingMaintenanceActionDetails.add(ele);
        }
        return this;
    }
<p>
Detailed information about the pending maintenance action.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPendingMaintenanceActionDetails(java.util.Collection)} or
{@link #withPendingMaintenanceActionDetails(java.util.Collection)} if you want to override the existing values.
</p>

@param pendingMaintenanceActionDetails
       Detailed information about the pending maintenance action.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-dms/src/main/java/com/amazonaws/services/databasemigrationservice/model/ResourcePendingMaintenanceActions.java