ScheduleCreationParameter Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. models. ScheduleCreationParameter
- com.
Implements
public final class ScheduleCreationParameter
implements JsonSerializable<ScheduleCreationParameter>
Properties for creating a schedule.
Constructor Summary
| Constructor | Description |
|---|---|
| ScheduleCreationParameter() |
Creates an instance of Schedule |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Day |
dailyRecurrence()
Get the daily |
|
static
Schedule |
fromJson(JsonReader jsonReader)
Reads an instance of Schedule |
|
Hour |
hourlyRecurrence()
Get the hourly |
| String |
location()
Get the location property: The location of the new virtual machine or environment. |
| String |
name()
Get the name property: The name of the virtual machine or environment. |
|
Notification |
notificationSettings()
Get the notification |
|
Enable |
status()
Get the status property: The status of the schedule (i. |
| Map<String,String> |
tags()
Get the tags property: The tags of the resource. |
| String |
targetResourceId()
Get the target |
| String |
taskType()
Get the task |
| String |
timeZoneId()
Get the time |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Week |
weeklyRecurrence()
Get the weekly |
|
Schedule |
withDailyRecurrence(DayDetails dailyRecurrence)
Set the daily |
|
Schedule |
withHourlyRecurrence(HourDetails hourlyRecurrence)
Set the hourly |
|
Schedule |
withName(String name)
Set the name property: The name of the virtual machine or environment. |
|
Schedule |
withNotificationSettings(NotificationSettings notificationSettings)
Set the notification |
|
Schedule |
withStatus(EnableStatus status)
Set the status property: The status of the schedule (i. |
|
Schedule |
withTags(Map<String,String> tags)
Set the tags property: The tags of the resource. |
|
Schedule |
withTargetResourceId(String targetResourceId)
Set the target |
|
Schedule |
withTaskType(String taskType)
Set the task |
|
Schedule |
withTimeZoneId(String timeZoneId)
Set the time |
|
Schedule |
withWeeklyRecurrence(WeekDetails weeklyRecurrence)
Set the weekly |
Methods inherited from java.lang.Object
Constructor Details
ScheduleCreationParameter
public ScheduleCreationParameter()
Creates an instance of ScheduleCreationParameter class.
Method Details
dailyRecurrence
public DayDetails dailyRecurrence()
Get the dailyRecurrence property: If the schedule will occur once each day of the week, specify the daily recurrence.
Returns:
fromJson
public static ScheduleCreationParameter fromJson(JsonReader jsonReader)
Reads an instance of ScheduleCreationParameter from the JsonReader.
Parameters:
Returns:
Throws:
hourlyRecurrence
public HourDetails hourlyRecurrence()
Get the hourlyRecurrence property: If the schedule will occur multiple times a day, specify the hourly recurrence.
Returns:
location
public String location()
Get the location property: The location of the new virtual machine or environment.
Returns:
name
public String name()
Get the name property: The name of the virtual machine or environment.
Returns:
notificationSettings
public NotificationSettings notificationSettings()
Get the notificationSettings property: Notification settings.
Returns:
status
public EnableStatus status()
Get the status property: The status of the schedule (i.e. Enabled, Disabled).
Returns:
tags
public Map<String,String> tags()
Get the tags property: The tags of the resource.
Returns:
targetResourceId
public String targetResourceId()
Get the targetResourceId property: The resource ID to which the schedule belongs.
Returns:
taskType
public String taskType()
Get the taskType property: The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
Returns:
timeZoneId
public String timeZoneId()
Get the timeZoneId property: The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in `IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds` (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md).
Returns:
toJson
weeklyRecurrence
public WeekDetails weeklyRecurrence()
Get the weeklyRecurrence property: If the schedule will occur only some days of the week, specify the weekly recurrence.
Returns:
withDailyRecurrence
public ScheduleCreationParameter withDailyRecurrence(DayDetails dailyRecurrence)
Set the dailyRecurrence property: If the schedule will occur once each day of the week, specify the daily recurrence.
Parameters:
Returns:
withHourlyRecurrence
public ScheduleCreationParameter withHourlyRecurrence(HourDetails hourlyRecurrence)
Set the hourlyRecurrence property: If the schedule will occur multiple times a day, specify the hourly recurrence.
Parameters:
Returns:
withName
public ScheduleCreationParameter withName(String name)
Set the name property: The name of the virtual machine or environment.
Parameters:
Returns:
withNotificationSettings
public ScheduleCreationParameter withNotificationSettings(NotificationSettings notificationSettings)
Set the notificationSettings property: Notification settings.
Parameters:
Returns:
withStatus
public ScheduleCreationParameter withStatus(EnableStatus status)
Set the status property: The status of the schedule (i.e. Enabled, Disabled).
Parameters:
Returns:
withTags
public ScheduleCreationParameter withTags(Map<String,String> tags)
Set the tags property: The tags of the resource.
Parameters:
Returns:
withTargetResourceId
public ScheduleCreationParameter withTargetResourceId(String targetResourceId)
Set the targetResourceId property: The resource ID to which the schedule belongs.
Parameters:
Returns:
withTaskType
public ScheduleCreationParameter withTaskType(String taskType)
Set the taskType property: The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
Parameters:
Returns:
withTimeZoneId
public ScheduleCreationParameter withTimeZoneId(String timeZoneId)
Set the timeZoneId property: The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in `IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds` (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md).
Parameters:
Returns:
withWeeklyRecurrence
public ScheduleCreationParameter withWeeklyRecurrence(WeekDetails weeklyRecurrence)
Set the weeklyRecurrence property: If the schedule will occur only some days of the week, specify the weekly recurrence.
Parameters:
Returns: