Class ScheduleProperties
java.lang.Object
com.azure.resourcemanager.costmanagement.models.ScheduleProperties
The properties of the schedule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the dayOfMonth property: UTC day on which cost analysis data will be emailed.Get the daysOfWeek property: Day names in english on which cost analysis data will be emailed.endDate()Get the endDate property: The end date and time of the scheduled action (UTC).Get the frequency property: Frequency of the schedule.Get the hourOfDay property: UTC time at which cost analysis data will be emailed.Get the startDate property: The start date and time of the scheduled action (UTC).voidvalidate()Validates the instance.Get the weeksOfMonth property: Weeks in which cost analysis data will be emailed.withDayOfMonth(Integer dayOfMonth) Set the dayOfMonth property: UTC day on which cost analysis data will be emailed.withDaysOfWeek(List<DaysOfWeek> daysOfWeek) Set the daysOfWeek property: Day names in english on which cost analysis data will be emailed.withEndDate(OffsetDateTime endDate) Set the endDate property: The end date and time of the scheduled action (UTC).withFrequency(ScheduleFrequency frequency) Set the frequency property: Frequency of the schedule.withHourOfDay(Integer hourOfDay) Set the hourOfDay property: UTC time at which cost analysis data will be emailed.withStartDate(OffsetDateTime startDate) Set the startDate property: The start date and time of the scheduled action (UTC).withWeeksOfMonth(List<WeeksOfMonth> weeksOfMonth) Set the weeksOfMonth property: Weeks in which cost analysis data will be emailed.
-
Constructor Details
-
ScheduleProperties
public ScheduleProperties()Creates an instance of ScheduleProperties class.
-
-
Method Details
-
frequency
Get the frequency property: Frequency of the schedule.- Returns:
- the frequency value.
-
withFrequency
Set the frequency property: Frequency of the schedule.- Parameters:
frequency- the frequency value to set.- Returns:
- the ScheduleProperties object itself.
-
hourOfDay
Get the hourOfDay property: UTC time at which cost analysis data will be emailed.- Returns:
- the hourOfDay value.
-
withHourOfDay
Set the hourOfDay property: UTC time at which cost analysis data will be emailed.- Parameters:
hourOfDay- the hourOfDay value to set.- Returns:
- the ScheduleProperties object itself.
-
daysOfWeek
Get the daysOfWeek property: Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.- Returns:
- the daysOfWeek value.
-
withDaysOfWeek
Set the daysOfWeek property: Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.- Parameters:
daysOfWeek- the daysOfWeek value to set.- Returns:
- the ScheduleProperties object itself.
-
weeksOfMonth
Get the weeksOfMonth property: Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.- Returns:
- the weeksOfMonth value.
-
withWeeksOfMonth
Set the weeksOfMonth property: Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.- Parameters:
weeksOfMonth- the weeksOfMonth value to set.- Returns:
- the ScheduleProperties object itself.
-
dayOfMonth
Get the dayOfMonth property: UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.- Returns:
- the dayOfMonth value.
-
withDayOfMonth
Set the dayOfMonth property: UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.- Parameters:
dayOfMonth- the dayOfMonth value to set.- Returns:
- the ScheduleProperties object itself.
-
startDate
Get the startDate property: The start date and time of the scheduled action (UTC).- Returns:
- the startDate value.
-
withStartDate
Set the startDate property: The start date and time of the scheduled action (UTC).- Parameters:
startDate- the startDate value to set.- Returns:
- the ScheduleProperties object itself.
-
endDate
Get the endDate property: The end date and time of the scheduled action (UTC).- Returns:
- the endDate value.
-
withEndDate
Set the endDate property: The end date and time of the scheduled action (UTC).- Parameters:
endDate- the endDate value to set.- Returns:
- the ScheduleProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-