Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.monitor; import com.fasterxml.jackson.annotation.JsonProperty;
The repeating times at which this profile begins. This element is not used if the FixedDate element is used.
/** * The repeating times at which this profile begins. This element is not used * if the FixedDate element is used. */
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. 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'.
/** * 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'. */
@JsonProperty(value = "frequency", required = true) private RecurrenceFrequency frequency;
the scheduling constraints for when the profile begins.
/** * the scheduling constraints for when the profile begins. */
@JsonProperty(value = "schedule", required = true) 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. 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'.
Returns:the frequency value
/** * 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 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. Possible values include: 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year'.
Params:
  • frequency – the frequency value to set
Returns:the Recurrence object itself.
/** * 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(RecurrenceFrequency frequency) { this.frequency = frequency; return this; }
Get the scheduling constraints for when the profile begins.
Returns:the schedule value
/** * Get the scheduling constraints for when the profile begins. * * @return the schedule value */
public RecurrentSchedule schedule() { return this.schedule; }
Set the scheduling constraints for when the profile begins.
Params:
  • schedule – the schedule value to set
Returns:the Recurrence object itself.
/** * Set the scheduling constraints for when the profile begins. * * @param schedule the schedule value to set * @return the Recurrence object itself. */
public Recurrence withSchedule(RecurrentSchedule schedule) { this.schedule = schedule; return this; } }