Class JobScheduleInner
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.JobScheduleInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JobScheduleInner>
public final class JobScheduleInner
extends Object
implements com.azure.json.JsonSerializable<JobScheduleInner>
Definition of the job schedule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JobScheduleInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of JobScheduleInner from the JsonReader.id()
Get the id property: Gets the id of the resource.Get the jobScheduleId property: Gets or sets the id of job schedule.name()
Get the name property: Gets the name of the variable.Get the parameters property: Gets or sets the parameters of the job schedule.runbook()
Get the runbook property: Gets or sets the runbook.runOn()
Get the runOn property: Gets or sets the hybrid worker group that the scheduled job should run on.schedule()
Get the schedule property: Gets or sets the schedule.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: Resource type.void
validate()
Validates the instance.withJobScheduleId
(String jobScheduleId) Set the jobScheduleId property: Gets or sets the id of job schedule.withParameters
(Map<String, String> parameters) Set the parameters property: Gets or sets the parameters of the job schedule.withRunbook
(RunbookAssociationProperty runbook) Set the runbook property: Gets or sets the runbook.Set the runOn property: Gets or sets the hybrid worker group that the scheduled job should run on.withSchedule
(ScheduleAssociationProperty schedule) Set the schedule property: Gets or sets 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
-
JobScheduleInner
public JobScheduleInner()Creates an instance of JobScheduleInner class.
-
-
Method Details
-
id
Get the id property: Gets the id of the resource.- Returns:
- the id value.
-
name
Get the name property: Gets the name of the variable.- Returns:
- the name value.
-
type
Get the type property: Resource type.- Returns:
- the type value.
-
jobScheduleId
Get the jobScheduleId property: Gets or sets the id of job schedule.- Returns:
- the jobScheduleId value.
-
withJobScheduleId
Set the jobScheduleId property: Gets or sets the id of job schedule.- Parameters:
jobScheduleId
- the jobScheduleId value to set.- Returns:
- the JobScheduleInner object itself.
-
schedule
Get the schedule property: Gets or sets the schedule.- Returns:
- the schedule value.
-
withSchedule
Set the schedule property: Gets or sets the schedule.- Parameters:
schedule
- the schedule value to set.- Returns:
- the JobScheduleInner object itself.
-
runbook
Get the runbook property: Gets or sets the runbook.- Returns:
- the runbook value.
-
withRunbook
Set the runbook property: Gets or sets the runbook.- Parameters:
runbook
- the runbook value to set.- Returns:
- the JobScheduleInner object itself.
-
runOn
Get the runOn property: Gets or sets the hybrid worker group that the scheduled job should run on.- Returns:
- the runOn value.
-
withRunOn
Set the runOn property: Gets or sets the hybrid worker group that the scheduled job should run on.- Parameters:
runOn
- the runOn value to set.- Returns:
- the JobScheduleInner object itself.
-
parameters
Get the parameters property: Gets or sets the parameters of the job schedule.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: Gets or sets the parameters of the job schedule.- Parameters:
parameters
- the parameters value to set.- Returns:
- the JobScheduleInner 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<JobScheduleInner>
- Throws:
IOException
-
fromJson
Reads an instance of JobScheduleInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of JobScheduleInner 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 JobScheduleInner.
-