Class JobAgentProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.JobAgentProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JobAgentProperties>
public final class JobAgentProperties
extends Object
implements com.azure.json.JsonSerializable<JobAgentProperties>
Properties of a job agent.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the databaseId property: Resource ID of the database to store job metadata in.static JobAgentPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of JobAgentProperties from the JsonReader.state()Get the state property: The state of the job agent.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDatabaseId(String databaseId) Set the databaseId property: Resource ID of the database to store job metadata in.Methods inherited from class 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
-
JobAgentProperties
public JobAgentProperties()Creates an instance of JobAgentProperties class.
-
-
Method Details
-
databaseId
Get the databaseId property: Resource ID of the database to store job metadata in.- Returns:
- the databaseId value.
-
withDatabaseId
Set the databaseId property: Resource ID of the database to store job metadata in.- Parameters:
databaseId- the databaseId value to set.- Returns:
- the JobAgentProperties object itself.
-
state
Get the state property: The state of the job agent.- Returns:
- the state value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<JobAgentProperties>- Throws:
IOException
-
fromJson
Reads an instance of JobAgentProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of JobAgentProperties 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 JobAgentProperties.
-