edu.ksu.canvas.requestOptions.UpdateCourseTabOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of canvas-api Show documentation
Show all versions of canvas-api Show documentation
A native Java library to talk to the Canvas REST API
package edu.ksu.canvas.requestOptions;
/**
* Options for updating a tab for a given course.
*/
public class UpdateCourseTabOptions extends BaseOptions {
private String courseId;
private String tabId;
private int position;
private boolean hidden;
/**
* Constructor.
*
* @param courseId identifies the course
* @param tabId identifies the tab within the course
*/
public UpdateCourseTabOptions(String courseId, String tabId) {
this.courseId = courseId;
this.tabId = tabId;
}
/**
* Sets the position (1-based).
*/
public UpdateCourseTabOptions position(int position) {
addSingleItem("position", Integer.toString(position));
return this;
}
public UpdateCourseTabOptions hidden(boolean hidden) {
addSingleItem("hidden", Boolean.toString(hidden));
return this;
}
public String getCourseId() {
return courseId;
}
public String getTabId() {
return tabId;
}
}