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
    Constructor
    Description
    Creates an instance of JobAgentProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the databaseId property: Resource ID of the database to store job metadata in.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of JobAgentProperties from the JsonReader.
    Get the state property: The state of the job agent.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    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, wait

    Methods 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

      public String databaseId()
      Get the databaseId property: Resource ID of the database to store job metadata in.
      Returns:
      the databaseId value.
    • withDatabaseId

      public JobAgentProperties withDatabaseId(String databaseId)
      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

      public JobAgentState 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<JobAgentProperties>
      Throws:
      IOException
    • fromJson

      public static JobAgentProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.