Partager via


JobExecutionTarget Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.JobExecutionTarget

Implements

public final class JobExecutionTarget
implements JsonSerializable<JobExecutionTarget>

The target that a job execution is executed on.

Constructor Summary

Constructor Description
JobExecutionTarget()

Creates an instance of JobExecutionTarget class.

Method Summary

Modifier and Type Method and Description
String databaseName()

Get the databaseName property: The database name.

static JobExecutionTarget fromJson(JsonReader jsonReader)

Reads an instance of JobExecutionTarget from the JsonReader.

String serverName()

Get the serverName property: The server name.

JsonWriter toJson(JsonWriter jsonWriter)
JobTargetType type()

Get the type property: The type of the target.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

JobExecutionTarget

public JobExecutionTarget()

Creates an instance of JobExecutionTarget class.

Method Details

databaseName

public String databaseName()

Get the databaseName property: The database name.

Returns:

the databaseName value.

fromJson

public static JobExecutionTarget fromJson(JsonReader jsonReader)

Reads an instance of JobExecutionTarget from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of JobExecutionTarget 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 JobExecutionTarget.

serverName

public String serverName()

Get the serverName property: The server name.

Returns:

the serverName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public JobTargetType type()

Get the type property: The type of the target.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to