Class ScheduleInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.automation.fluent.models.ScheduleInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class ScheduleInner
extends com.azure.core.management.ProxyResource
Definition of the schedule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the advancedSchedule property: Gets or sets the advanced schedule.Get the creationTime property: Gets or sets the creation time.Get the description property: Gets or sets the description.Get the expiryTime property: Gets or sets the end time of the schedule.Get the expiryTimeOffsetMinutes property: Gets or sets the expiry time's offset in minutes.Get the frequency property: Gets or sets the frequency of the schedule.static ScheduleInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ScheduleInner from the JsonReader.id()
Get the id property: Fully qualified resource Id for the resource.interval()
Get the interval property: Gets or sets the interval of the schedule.Get the isEnabled property: Gets or sets a value indicating whether this schedule is enabled.Get the lastModifiedTime property: Gets or sets the last modified time.name()
Get the name property: The name of the resource.nextRun()
Get the nextRun property: Gets or sets the next run time of the schedule.Get the nextRunOffsetMinutes property: Gets or sets the next run time's offset in minutes.Get the startTime property: Gets or sets the start time of the schedule.Get the startTimeOffsetMinutes property: Gets the start time's offset in minutes.timeZone()
Get the timeZone property: Gets or sets the time zone of the schedule.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The type of the resource.void
validate()
Validates the instance.withAdvancedSchedule
(AdvancedSchedule advancedSchedule) Set the advancedSchedule property: Gets or sets the advanced schedule.withCreationTime
(OffsetDateTime creationTime) Set the creationTime property: Gets or sets the creation time.withDescription
(String description) Set the description property: Gets or sets the description.withExpiryTime
(OffsetDateTime expiryTime) Set the expiryTime property: Gets or sets the end time of the schedule.withExpiryTimeOffsetMinutes
(Double expiryTimeOffsetMinutes) Set the expiryTimeOffsetMinutes property: Gets or sets the expiry time's offset in minutes.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.withIsEnabled
(Boolean isEnabled) Set the isEnabled property: Gets or sets a value indicating whether this schedule is enabled.withLastModifiedTime
(OffsetDateTime lastModifiedTime) Set the lastModifiedTime property: Gets or sets the last modified time.withNextRun
(OffsetDateTime nextRun) Set the nextRun property: Gets or sets the next run time of the schedule.withNextRunOffsetMinutes
(Double nextRunOffsetMinutes) Set the nextRunOffsetMinutes property: Gets or sets the next run time's offset in minutes.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
-
ScheduleInner
public ScheduleInner()Creates an instance of ScheduleInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
type
in classcom.azure.core.management.ProxyResource
- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
name
in classcom.azure.core.management.ProxyResource
- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
id
in classcom.azure.core.management.ProxyResource
- Returns:
- the id value.
-
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 ScheduleInner object itself.
-
startTimeOffsetMinutes
Get the startTimeOffsetMinutes property: Gets the start time's offset in minutes.- Returns:
- the startTimeOffsetMinutes value.
-
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 ScheduleInner object itself.
-
expiryTimeOffsetMinutes
Get the expiryTimeOffsetMinutes property: Gets or sets the expiry time's offset in minutes.- Returns:
- the expiryTimeOffsetMinutes value.
-
withExpiryTimeOffsetMinutes
Set the expiryTimeOffsetMinutes property: Gets or sets the expiry time's offset in minutes.- Parameters:
expiryTimeOffsetMinutes
- the expiryTimeOffsetMinutes value to set.- Returns:
- the ScheduleInner object itself.
-
isEnabled
Get the isEnabled property: Gets or sets a value indicating whether this schedule is enabled.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Gets or sets a value indicating whether this schedule is enabled.- Parameters:
isEnabled
- the isEnabled value to set.- Returns:
- the ScheduleInner object itself.
-
nextRun
Get the nextRun property: Gets or sets the next run time of the schedule.- Returns:
- the nextRun value.
-
withNextRun
Set the nextRun property: Gets or sets the next run time of the schedule.- Parameters:
nextRun
- the nextRun value to set.- Returns:
- the ScheduleInner object itself.
-
nextRunOffsetMinutes
Get the nextRunOffsetMinutes property: Gets or sets the next run time's offset in minutes.- Returns:
- the nextRunOffsetMinutes value.
-
withNextRunOffsetMinutes
Set the nextRunOffsetMinutes property: Gets or sets the next run time's offset in minutes.- Parameters:
nextRunOffsetMinutes
- the nextRunOffsetMinutes value to set.- Returns:
- the ScheduleInner 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 ScheduleInner 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 ScheduleInner 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 ScheduleInner object itself.
-
advancedSchedule
Get the advancedSchedule property: Gets or sets the advanced schedule.- Returns:
- the advancedSchedule value.
-
withAdvancedSchedule
Set the advancedSchedule property: Gets or sets the advanced schedule.- Parameters:
advancedSchedule
- the advancedSchedule value to set.- Returns:
- the ScheduleInner object itself.
-
creationTime
Get the creationTime property: Gets or sets the creation time.- Returns:
- the creationTime value.
-
withCreationTime
Set the creationTime property: Gets or sets the creation time.- Parameters:
creationTime
- the creationTime value to set.- Returns:
- the ScheduleInner object itself.
-
lastModifiedTime
Get the lastModifiedTime property: Gets or sets the last modified time.- Returns:
- the lastModifiedTime value.
-
withLastModifiedTime
Set the lastModifiedTime property: Gets or sets the last modified time.- Parameters:
lastModifiedTime
- the lastModifiedTime value to set.- Returns:
- the ScheduleInner object itself.
-
description
Get the description property: Gets or sets the description.- Returns:
- the description value.
-
withDescription
Set the description property: Gets or sets the description.- Parameters:
description
- the description value to set.- Returns:
- the ScheduleInner 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<com.azure.core.management.ProxyResource>
- Overrides:
toJson
in classcom.azure.core.management.ProxyResource
- Throws:
IOException
-
fromJson
Reads an instance of ScheduleInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ScheduleInner 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 ScheduleInner.
-