From 1c8b053e07baefe15bda47ec92c682bd0bfb5a6b Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 6 Aug 2018 21:57:30 +0000 Subject: [PATCH] Generated from 1ca7f22a22e15cb8980176f25be20fd3e6f73162 [Monitor] Fix issue #3585: revert previous commit since it is a breaking change --- .../azure/management/monitor/Recurrence.java | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/Recurrence.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/Recurrence.java index 07d9abf9ef54..5c0ea3732853 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/Recurrence.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/Recurrence.java @@ -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. @@ -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; }