ScheduleCreationParameter Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.ScheduleCreationParameter

Implements

public final class ScheduleCreationParameter
implements JsonSerializable<ScheduleCreationParameter>

Properties for creating a schedule.

Constructor Summary

Constructor Description
ScheduleCreationParameter()

Creates an instance of ScheduleCreationParameter class.

Method Summary

Modifier and Type Method and Description
DayDetails dailyRecurrence()

Get the dailyRecurrence property: If the schedule will occur once each day of the week, specify the daily recurrence.

static ScheduleCreationParameter fromJson(JsonReader jsonReader)

Reads an instance of ScheduleCreationParameter from the JsonReader.

HourDetails hourlyRecurrence()

Get the hourlyRecurrence property: If the schedule will occur multiple times a day, specify the hourly recurrence.

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.

NotificationSettings notificationSettings()

Get the notificationSettings property: Notification settings.

EnableStatus status()

Get the status property: The status of the schedule (i.e.

Map<String,String> tags()

Get the tags property: The tags of the resource.

String targetResourceId()

Get the targetResourceId property: The resource ID to which the schedule belongs.

String taskType()

Get the taskType property: The task type of the schedule (e.g.

String timeZoneId()

Get the timeZoneId property: The time zone ID (e.g.

JsonWriter toJson(JsonWriter jsonWriter)
WeekDetails weeklyRecurrence()

Get the weeklyRecurrence property: If the schedule will occur only some days of the week, specify the weekly recurrence.

ScheduleCreationParameter withDailyRecurrence(DayDetails dailyRecurrence)

Set the dailyRecurrence property: If the schedule will occur once each day of the week, specify the daily recurrence.

ScheduleCreationParameter withHourlyRecurrence(HourDetails hourlyRecurrence)

Set the hourlyRecurrence property: If the schedule will occur multiple times a day, specify the hourly recurrence.

ScheduleCreationParameter withName(String name)

Set the name property: The name of the virtual machine or environment.

ScheduleCreationParameter withNotificationSettings(NotificationSettings notificationSettings)

Set the notificationSettings property: Notification settings.

ScheduleCreationParameter withStatus(EnableStatus status)

Set the status property: The status of the schedule (i.e.

ScheduleCreationParameter withTags(Map<String,String> tags)

Set the tags property: The tags of the resource.

ScheduleCreationParameter withTargetResourceId(String targetResourceId)

Set the targetResourceId property: The resource ID to which the schedule belongs.

ScheduleCreationParameter withTaskType(String taskType)

Set the taskType property: The task type of the schedule (e.g.

ScheduleCreationParameter withTimeZoneId(String timeZoneId)

Set the timeZoneId property: The time zone ID (e.g.

ScheduleCreationParameter withWeeklyRecurrence(WeekDetails weeklyRecurrence)

Set the weeklyRecurrence property: If the schedule will occur only some days of the week, specify the weekly recurrence.

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:

the dailyRecurrence value.

fromJson

public static ScheduleCreationParameter fromJson(JsonReader jsonReader)

Reads an instance of ScheduleCreationParameter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScheduleCreationParameter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ScheduleCreationParameter.

hourlyRecurrence

public HourDetails hourlyRecurrence()

Get the hourlyRecurrence property: If the schedule will occur multiple times a day, specify the hourly recurrence.

Returns:

the hourlyRecurrence value.

location

public String location()

Get the location property: The location of the new virtual machine or environment.

Returns:

the location value.

name

public String name()

Get the name property: The name of the virtual machine or environment.

Returns:

the name value.

notificationSettings

public NotificationSettings notificationSettings()

Get the notificationSettings property: Notification settings.

Returns:

the notificationSettings value.

status

public EnableStatus status()

Get the status property: The status of the schedule (i.e. Enabled, Disabled).

Returns:

the status value.

tags

public Map<String,String> tags()

Get the tags property: The tags of the resource.

Returns:

the tags value.

targetResourceId

public String targetResourceId()

Get the targetResourceId property: The resource ID to which the schedule belongs.

Returns:

the targetResourceId value.

taskType

public String taskType()

Get the taskType property: The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).

Returns:

the taskType value.

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:

the timeZoneId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

weeklyRecurrence

public WeekDetails weeklyRecurrence()

Get the weeklyRecurrence property: If the schedule will occur only some days of the week, specify the weekly recurrence.

Returns:

the weeklyRecurrence value.

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:

dailyRecurrence - the dailyRecurrence value to set.

Returns:

the ScheduleCreationParameter object itself.

withHourlyRecurrence

public ScheduleCreationParameter withHourlyRecurrence(HourDetails hourlyRecurrence)

Set the hourlyRecurrence property: If the schedule will occur multiple times a day, specify the hourly recurrence.

Parameters:

hourlyRecurrence - the hourlyRecurrence value to set.

Returns:

the ScheduleCreationParameter object itself.

withName

public ScheduleCreationParameter withName(String name)

Set the name property: The name of the virtual machine or environment.

Parameters:

name - the name value to set.

Returns:

the ScheduleCreationParameter object itself.

withNotificationSettings

public ScheduleCreationParameter withNotificationSettings(NotificationSettings notificationSettings)

Set the notificationSettings property: Notification settings.

Parameters:

notificationSettings - the notificationSettings value to set.

Returns:

the ScheduleCreationParameter object itself.

withStatus

public ScheduleCreationParameter withStatus(EnableStatus status)

Set the status property: The status of the schedule (i.e. Enabled, Disabled).

Parameters:

status - the status value to set.

Returns:

the ScheduleCreationParameter object itself.

withTags

public ScheduleCreationParameter withTags(Map<String,String> tags)

Set the tags property: The tags of the resource.

Parameters:

tags - the tags value to set.

Returns:

the ScheduleCreationParameter object itself.

withTargetResourceId

public ScheduleCreationParameter withTargetResourceId(String targetResourceId)

Set the targetResourceId property: The resource ID to which the schedule belongs.

Parameters:

targetResourceId - the targetResourceId value to set.

Returns:

the ScheduleCreationParameter object itself.

withTaskType

public ScheduleCreationParameter withTaskType(String taskType)

Set the taskType property: The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).

Parameters:

taskType - the taskType value to set.

Returns:

the ScheduleCreationParameter object itself.

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:

timeZoneId - the timeZoneId value to set.

Returns:

the ScheduleCreationParameter object itself.

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:

weeklyRecurrence - the weeklyRecurrence value to set.

Returns:

the ScheduleCreationParameter object itself.

Applies to