JobAgentInner Class

public final class JobAgentInner
extends Resource

An Azure SQL job agent.

Constructor Summary

Constructor Description
JobAgentInner()

Creates an instance of JobAgentInner class.

Method Summary

Modifier and Type Method and Description
String databaseId()

Get the databaseId property: Resource ID of the database to store job metadata in.

static JobAgentInner fromJson(JsonReader jsonReader)

Reads an instance of JobAgentInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

Sku sku()

Get the sku property: The name and tier of the SKU.

JobAgentState state()

Get the state property: The state of the job agent.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

JobAgentInner withDatabaseId(String databaseId)

Set the databaseId property: Resource ID of the database to store job metadata in.

JobAgentInner withLocation(String location)
JobAgentInner withSku(Sku sku)

Set the sku property: The name and tier of the SKU.

JobAgentInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

JobAgentInner

public JobAgentInner()

Creates an instance of JobAgentInner 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.

fromJson

public static JobAgentInner fromJson(JsonReader jsonReader)

Reads an instance of JobAgentInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of JobAgentInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

JobAgentInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

JobAgentInner.name()

Returns:

the name value.

sku

public Sku sku()

Get the sku property: The name and tier of the SKU.

Returns:

the sku value.

state

public JobAgentState state()

Get the state property: The state of the job agent.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

JobAgentInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

JobAgentInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDatabaseId

public JobAgentInner 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 JobAgentInner object itself.

withLocation

public JobAgentInner withLocation(String location)

Overrides:

JobAgentInner.withLocation(String location)

Parameters:

location

withSku

public JobAgentInner withSku(Sku sku)

Set the sku property: The name and tier of the SKU.

Parameters:

sku - the sku value to set.

Returns:

the JobAgentInner object itself.

withTags

public JobAgentInner withTags(Map tags)

Overrides:

JobAgentInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to