Skip to content

Commit d423574

Browse files
committed
Add java doc for request object
1 parent 2c5d423 commit d423574

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

client/rest-high-level/src/main/java/org/elasticsearch/client/ml/DeleteCalendarRequest.java

+7
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,17 @@
2424

2525
import java.util.Objects;
2626

27+
/**
28+
* Request to delete a Machine Learning Calendar
29+
*/
2730
public class DeleteCalendarRequest extends ActionRequest {
2831

2932
private final String calendarId;
3033

34+
/**
35+
* The constructor requires a single calendar id.
36+
* @param calendarId The calendar to delete. Must be {@code non-null}
37+
*/
3138
public DeleteCalendarRequest(String calendarId) {
3239
this.calendarId = Objects.requireNonNull(calendarId, "[calendar_id] must not be null");
3340
}

0 commit comments

Comments
 (0)