Class ScheduleCreateOrUpdateParameters
java.lang.Object
com.azure.resourcemanager.automation.models.ScheduleCreateOrUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ScheduleCreateOrUpdateParameters>
public final class ScheduleCreateOrUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<ScheduleCreateOrUpdateParameters>
The parameters supplied to the create or update schedule operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ScheduleCreateOrUpdateParameters 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 ScheduleCreateOrUpdateParameters from the JsonReader.interval()
Get the interval property: Gets or sets the interval of the schedule.name()
Get the name property: Gets or sets the name 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.Set the name property: Gets or sets the name 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
-
ScheduleCreateOrUpdateParameters
public ScheduleCreateOrUpdateParameters()Creates an instance of ScheduleCreateOrUpdateParameters class.
-
-
Method Details
-
name
Get the name property: Gets or sets the name of the Schedule.- Returns:
- the name value.
-
withName
Set the name property: Gets or sets the name of the Schedule.- Parameters:
name
- the name value to set.- Returns:
- the ScheduleCreateOrUpdateParameters object itself.
-
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 ScheduleCreateOrUpdateParameters 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 ScheduleCreateOrUpdateParameters 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 ScheduleCreateOrUpdateParameters 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 ScheduleCreateOrUpdateParameters 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 ScheduleCreateOrUpdateParameters 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 ScheduleCreateOrUpdateParameters 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 ScheduleCreateOrUpdateParameters 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<ScheduleCreateOrUpdateParameters>
- Throws:
IOException
-
fromJson
public static ScheduleCreateOrUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ScheduleCreateOrUpdateParameters from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ScheduleCreateOrUpdateParameters 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 ScheduleCreateOrUpdateParameters.
-