Class ScheduleCreateOrUpdateProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.ScheduleCreateOrUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ScheduleCreateOrUpdateProperties>
public final class ScheduleCreateOrUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<ScheduleCreateOrUpdateProperties>
The parameters supplied to the create or update schedule operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ScheduleCreateOrUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the advancedSchedule property: Gets or sets the AdvancedSchedule.Get the description property: Gets or sets the description of the schedule.Get the expiryTime property: Gets or sets the end time of the schedule.Get the frequency property: Gets or sets the frequency of the schedule.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ScheduleCreateOrUpdateProperties from the JsonReader.interval()
Get the interval property: Gets or sets the interval of the schedule.Get the startTime property: Gets or sets the start time of the schedule.timeZone()
Get the timeZone property: Gets or sets the time zone of the schedule.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAdvancedSchedule
(AdvancedSchedule advancedSchedule) Set the advancedSchedule property: Gets or sets the AdvancedSchedule.withDescription
(String description) Set the description property: Gets or sets the description of the schedule.withExpiryTime
(OffsetDateTime expiryTime) Set the expiryTime property: Gets or sets the end time of the schedule.withFrequency
(ScheduleFrequency frequency) Set the frequency property: Gets or sets the frequency of the schedule.withInterval
(Object interval) Set the interval property: Gets or sets the interval of the schedule.withStartTime
(OffsetDateTime startTime) Set the startTime property: Gets or sets the start time of the schedule.withTimeZone
(String timeZone) Set the timeZone property: Gets or sets the time zone of the schedule.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ScheduleCreateOrUpdateProperties
public ScheduleCreateOrUpdateProperties()Creates an instance of ScheduleCreateOrUpdateProperties class.
-
-
Method Details
-
description
Get the description property: Gets or sets the description of the schedule.- Returns:
- the description value.
-
withDescription
Set the description property: Gets or sets the description of the schedule.- Parameters:
description
- the description value to set.- Returns:
- the ScheduleCreateOrUpdateProperties object itself.
-
startTime
Get the startTime property: Gets or sets the start time of the schedule.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Gets or sets the start time of the schedule.- Parameters:
startTime
- the startTime value to set.- Returns:
- the ScheduleCreateOrUpdateProperties object itself.
-
expiryTime
Get the expiryTime property: Gets or sets the end time of the schedule.- Returns:
- the expiryTime value.
-
withExpiryTime
Set the expiryTime property: Gets or sets the end time of the schedule.- Parameters:
expiryTime
- the expiryTime value to set.- Returns:
- the ScheduleCreateOrUpdateProperties object itself.
-
interval
Get the interval property: Gets or sets the interval of the schedule.- Returns:
- the interval value.
-
withInterval
Set the interval property: Gets or sets the interval of the schedule.- Parameters:
interval
- the interval value to set.- Returns:
- the ScheduleCreateOrUpdateProperties object itself.
-
frequency
Get the frequency property: Gets or sets the frequency of the schedule.- Returns:
- the frequency value.
-
withFrequency
Set the frequency property: Gets or sets the frequency of the schedule.- Parameters:
frequency
- the frequency value to set.- Returns:
- the ScheduleCreateOrUpdateProperties object itself.
-
timeZone
Get the timeZone property: Gets or sets the time zone of the schedule.- Returns:
- the timeZone value.
-
withTimeZone
Set the timeZone property: Gets or sets the time zone of the schedule.- Parameters:
timeZone
- the timeZone value to set.- Returns:
- the ScheduleCreateOrUpdateProperties object itself.
-
advancedSchedule
Get the advancedSchedule property: Gets or sets the AdvancedSchedule.- Returns:
- the advancedSchedule value.
-
withAdvancedSchedule
Set the advancedSchedule property: Gets or sets the AdvancedSchedule.- Parameters:
advancedSchedule
- the advancedSchedule value to set.- Returns:
- the ScheduleCreateOrUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ScheduleCreateOrUpdateProperties>
- Throws:
IOException
-
fromJson
public static ScheduleCreateOrUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ScheduleCreateOrUpdateProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ScheduleCreateOrUpdateProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the ScheduleCreateOrUpdateProperties.
-