Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ public class Recurrence {
* effect. This value must be Week, meaning each week will have the same
* set of profiles. For example, to set a daily schedule, set **schedule**
* to every day of the week. The frequency property specifies that the
* schedule is repeated weekly.
* schedule is repeated weekly. Possible values include: 'None', 'Second',
* 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year'.
*/
@JsonProperty(value = "frequency", required = true)
private String frequency;
private RecurrenceFrequency frequency;

/**
* the scheduling constraints for when the profile begins.
Expand All @@ -32,29 +33,21 @@ public class Recurrence {
private RecurrentSchedule schedule;

/**
* Creates an instance of Recurrence class.
* @param schedule the scheduling constraints for when the profile begins.
*/
public Recurrence() {
frequency = "Week";
}

/**
* Get the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly.
* Get the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly. Possible values include: 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year'.
*
* @return the frequency value
*/
public String frequency() {
public RecurrenceFrequency frequency() {
return this.frequency;
}

/**
* Set the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly.
* Set the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly. Possible values include: 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year'.
*
* @param frequency the frequency value to set
* @return the Recurrence object itself.
*/
public Recurrence withFrequency(String frequency) {
public Recurrence withFrequency(RecurrenceFrequency frequency) {
this.frequency = frequency;
return this;
}
Expand Down