Class JobProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.JobProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JobProperties>
public final class JobProperties
extends Object
implements com.azure.json.JsonSerializable<JobProperties>
Properties of a job.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: User-defined description of the job.static JobPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of JobProperties from the JsonReader.schedule()Get the schedule property: Schedule properties of the job.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.version()Get the version property: The job version number.withDescription(String description) Set the description property: User-defined description of the job.withSchedule(JobSchedule schedule) Set the schedule property: Schedule properties of the job.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
JobProperties
public JobProperties()Creates an instance of JobProperties class.
-
-
Method Details
-
description
Get the description property: User-defined description of the job.- Returns:
- the description value.
-
withDescription
Set the description property: User-defined description of the job.- Parameters:
description- the description value to set.- Returns:
- the JobProperties object itself.
-
version
Get the version property: The job version number.- Returns:
- the version value.
-
schedule
Get the schedule property: Schedule properties of the job.- Returns:
- the schedule value.
-
withSchedule
Set the schedule property: Schedule properties of the job.- Parameters:
schedule- the schedule value to set.- Returns:
- the JobProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<JobProperties>- Throws:
IOException
-
fromJson
Reads an instance of JobProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of JobProperties 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 JobProperties.
-