Class RestScheduledJob
java.lang.Object
com.atlassian.bamboo.rest.model.AbstractRestModel
com.atlassian.bamboo.rest.model.admin.scheduler.RestScheduledJob
Model of a Scheduled Job used for REST resources to allow serialization/deserialization to/from JSON and XML.
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.google.common.base.Function<ScheduledJob,
RestScheduledJob> Deprecated.Fields inherited from class com.atlassian.bamboo.rest.model.AbstractRestModel
self
-
Constructor Summary
ConstructorDescriptionDefault constructor.RestScheduledJob
(@NotNull ScheduledJob scheduledJob) Copy constructor.RestScheduledJob
(@NotNull String name, @NotNull String groupName, @Nullable Date nextScheduledTime) Parameterized constructor. -
Method Summary
Modifier and TypeMethodDescription@NotNull String
Gets the name of the group the job belongs to.@NotNull String
getName()
Gets the name of the job.@Nullable Date
Gets the next scheduled time the job will run.@NotNull ScheduledJob
Returns a ScheduledJob representation of the object.Methods inherited from class com.atlassian.bamboo.rest.model.AbstractRestModel
getSelf, setSelf
-
Field Details
-
FROM_SCHEDULED_JOB
@Deprecated public static com.google.common.base.Function<ScheduledJob,RestScheduledJob> FROM_SCHEDULED_JOBDeprecated.since 5.11, useRestScheduledJob()
as function reference
-
-
Constructor Details
-
RestScheduledJob
public RestScheduledJob()Default constructor. -
RestScheduledJob
public RestScheduledJob(@NotNull @NotNull String name, @NotNull @NotNull String groupName, @Nullable @Nullable Date nextScheduledTime) Parameterized constructor.- Parameters:
name
- the name of the jobgroupName
- the name of the group the job belongs tonextScheduledTime
- the next time the job is scheduled to run
-
RestScheduledJob
Copy constructor.- Parameters:
scheduledJob
- the scheduled job to be made a copy of
-
-
Method Details
-
toScheduledJob
Returns a ScheduledJob representation of the object.- Returns:
- a scheduled job representation
-
getName
Gets the name of the job.This should be removed in a future version its here as using this with RestAssured is ignoring the annotations on the class and serializing using XmlAccessType.Property by default.
- Returns:
- the name
-
getGroupName
Gets the name of the group the job belongs to.This should be removed in a future version its here as using this with RestAssured is ignoring the annotations on the class and serializing using XmlAccessType.Property by default.
- Returns:
- the name of the group
-
getNextScheduledTime
Gets the next scheduled time the job will run.This should be removed in a future version its here as using this with RestAssured is ignoring the annotations on the class and serializing using XmlAccessType.Property by default.
- Returns:
- the next scheduled time
-
RestScheduledJob()
as function reference