Skip to content

Commit

Permalink
Generated from 1ca7f22a22e15cb8980176f25be20fd3e6f73162 (#2302)
Browse files Browse the repository at this point in the history
[Monitor] Fix issue #3585: revert previous commit since it is a breaking change
  • Loading branch information
AutorestCI authored Aug 6, 2018
1 parent abfefd6 commit 9c94cb6
Showing 1 changed file with 7 additions and 14 deletions.
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

0 comments on commit 9c94cb6

Please sign in to comment.