JobAgentInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. sql. fluent. models. JobAgentInner
- com.
- com.
- com.
public final class JobAgentInner
extends Resource
An Azure SQL job agent.
Constructor Summary
Constructor | Description |
---|---|
JobAgentInner() |
Creates an instance of Job |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
databaseId()
Get the database |
static
Job |
fromJson(JsonReader jsonReader)
Reads an instance of Job |
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. |
Job |
state()
Get the state property: The state of the job agent. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Job |
withDatabaseId(String databaseId)
Set the database |
Job |
withLocation(String location) |
Job |
withSku(Sku sku)
Set the sku property: The name and tier of the SKU. |
Job |
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:
fromJson
public static JobAgentInner fromJson(JsonReader jsonReader)
Reads an instance of JobAgentInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
JobAgentInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
JobAgentInner.name()Returns:
sku
public Sku sku()
Get the sku property: The name and tier of the SKU.
Returns:
state
public JobAgentState state()
Get the state property: The state of the job agent.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
JobAgentInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
JobAgentInner.type()Returns:
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:
Returns:
withLocation
public JobAgentInner withLocation(String location)
Overrides:
JobAgentInner.withLocation(String location)Parameters:
withSku
public JobAgentInner withSku(Sku sku)
Set the sku property: The name and tier of the SKU.
Parameters:
Returns:
withTags
public JobAgentInner withTags(Map
Overrides:
JobAgentInner.withTags(Map<String,String> tags)Parameters:
Applies to
Azure SDK for Java