Class JobStepOutput

java.lang.Object
com.azure.resourcemanager.sql.models.JobStepOutput
All Implemented Interfaces:
com.azure.json.JsonSerializable<JobStepOutput>

public final class JobStepOutput extends Object implements com.azure.json.JsonSerializable<JobStepOutput>
The output configuration of a job step.
  • Constructor Details

    • JobStepOutput

      public JobStepOutput()
      Creates an instance of JobStepOutput class.
  • Method Details

    • type

      public JobStepOutputType type()
      Get the type property: The output destination type.
      Returns:
      the type value.
    • withType

      public JobStepOutput withType(JobStepOutputType type)
      Set the type property: The output destination type.
      Parameters:
      type - the type value to set.
      Returns:
      the JobStepOutput object itself.
    • subscriptionId

      public UUID subscriptionId()
      Get the subscriptionId property: The output destination subscription id.
      Returns:
      the subscriptionId value.
    • withSubscriptionId

      public JobStepOutput withSubscriptionId(UUID subscriptionId)
      Set the subscriptionId property: The output destination subscription id.
      Parameters:
      subscriptionId - the subscriptionId value to set.
      Returns:
      the JobStepOutput object itself.
    • resourceGroupName

      public String resourceGroupName()
      Get the resourceGroupName property: The output destination resource group.
      Returns:
      the resourceGroupName value.
    • withResourceGroupName

      public JobStepOutput withResourceGroupName(String resourceGroupName)
      Set the resourceGroupName property: The output destination resource group.
      Parameters:
      resourceGroupName - the resourceGroupName value to set.
      Returns:
      the JobStepOutput object itself.
    • serverName

      public String serverName()
      Get the serverName property: The output destination server name.
      Returns:
      the serverName value.
    • withServerName

      public JobStepOutput withServerName(String serverName)
      Set the serverName property: The output destination server name.
      Parameters:
      serverName - the serverName value to set.
      Returns:
      the JobStepOutput object itself.
    • databaseName

      public String databaseName()
      Get the databaseName property: The output destination database.
      Returns:
      the databaseName value.
    • withDatabaseName

      public JobStepOutput withDatabaseName(String databaseName)
      Set the databaseName property: The output destination database.
      Parameters:
      databaseName - the databaseName value to set.
      Returns:
      the JobStepOutput object itself.
    • schemaName

      public String schemaName()
      Get the schemaName property: The output destination schema.
      Returns:
      the schemaName value.
    • withSchemaName

      public JobStepOutput withSchemaName(String schemaName)
      Set the schemaName property: The output destination schema.
      Parameters:
      schemaName - the schemaName value to set.
      Returns:
      the JobStepOutput object itself.
    • tableName

      public String tableName()
      Get the tableName property: The output destination table.
      Returns:
      the tableName value.
    • withTableName

      public JobStepOutput withTableName(String tableName)
      Set the tableName property: The output destination table.
      Parameters:
      tableName - the tableName value to set.
      Returns:
      the JobStepOutput object itself.
    • credential

      public String credential()
      Get the credential property: The resource ID of the credential to use to connect to the output destination.
      Returns:
      the credential value.
    • withCredential

      public JobStepOutput withCredential(String credential)
      Set the credential property: The resource ID of the credential to use to connect to the output destination.
      Parameters:
      credential - the credential value to set.
      Returns:
      the JobStepOutput object itself.
    • 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<JobStepOutput>
      Throws:
      IOException
    • fromJson

      public static JobStepOutput fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of JobStepOutput from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of JobStepOutput 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 JobStepOutput.