JobAgentUpdate Class

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

Implements

public final class JobAgentUpdate
implements JsonSerializable<JobAgentUpdate>

An update to an Azure SQL job agent.

Constructor Summary

Constructor Description
JobAgentUpdate()

Creates an instance of JobAgentUpdate class.

Method Summary

Modifier and Type Method and Description
static JobAgentUpdate fromJson(JsonReader jsonReader)

Reads an instance of JobAgentUpdate from the JsonReader.

JobAgentIdentity identity()

Get the identity property: Managed identity assigned to job agent.

Sku sku()

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

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

JobAgentUpdate withIdentity(JobAgentIdentity identity)

Set the identity property: Managed identity assigned to job agent.

JobAgentUpdate withSku(Sku sku)

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

JobAgentUpdate withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

JobAgentUpdate

public JobAgentUpdate()

Creates an instance of JobAgentUpdate class.

Method Details

fromJson

public static JobAgentUpdate fromJson(JsonReader jsonReader)

Reads an instance of JobAgentUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public JobAgentIdentity identity()

Get the identity property: Managed identity assigned to job agent.

Returns:

the identity value.

sku

public Sku sku()

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

Returns:

the sku value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentity

public JobAgentUpdate withIdentity(JobAgentIdentity identity)

Set the identity property: Managed identity assigned to job agent.

Parameters:

identity - the identity value to set.

Returns:

the JobAgentUpdate object itself.

withSku

public JobAgentUpdate withSku(Sku sku)

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

Parameters:

sku - the sku value to set.

Returns:

the JobAgentUpdate object itself.

withTags

public JobAgentUpdate withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the JobAgentUpdate object itself.

Applies to