Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR monitor/resource-manager] updated description of recurrent frequency #2248

Merged
merged 1 commit into from
Jul 20, 2018
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 @@ -18,11 +18,12 @@ public class Recurrence {
/**
* 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. Possible values include: 'None', 'Second', 'Minute',
* 'Hour', 'Day', 'Week', 'Month', 'Year'.
* 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.
*/
@JsonProperty(value = "frequency", required = true)
private RecurrenceFrequency frequency;
private String frequency;

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

/**
* 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. Possible values include: 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year'.
* 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.
*
* @return the frequency value
*/
public RecurrenceFrequency frequency() {
public String 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. Possible values include: 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year'.
* 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.
*
* @param frequency the frequency value to set
* @return the Recurrence object itself.
*/
public Recurrence withFrequency(RecurrenceFrequency frequency) {
public Recurrence withFrequency(String frequency) {
this.frequency = frequency;
return this;
}
Expand Down