WorkloadGroupInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. fluent. models. WorkloadGroupInner
- com.
- com.
public final class WorkloadGroupInner
extends ProxyResource
Workload group operations for a data warehouse.
Constructor Summary
Constructor | Description |
---|---|
WorkloadGroupInner() |
Creates an instance of Workload |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Workload |
fromJson(JsonReader jsonReader)
Reads an instance of Workload |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
importance()
Get the importance property: The workload group importance level. |
Integer |
maxResourcePercent()
Get the max |
Double |
maxResourcePercentPerRequest()
Get the max |
Integer |
minResourcePercent()
Get the min |
Double |
minResourcePercentPerRequest()
Get the min |
String |
name()
Get the name property: The name of the resource. |
Integer |
queryExecutionTimeout()
Get the query |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Workload |
withImportance(String importance)
Set the importance property: The workload group importance level. |
Workload |
withMaxResourcePercent(Integer maxResourcePercent)
Set the max |
Workload |
withMaxResourcePercentPerRequest(Double maxResourcePercentPerRequest)
Set the max |
Workload |
withMinResourcePercent(Integer minResourcePercent)
Set the min |
Workload |
withMinResourcePercentPerRequest(Double minResourcePercentPerRequest)
Set the min |
Workload |
withQueryExecutionTimeout(Integer queryExecutionTimeout)
Set the query |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
WorkloadGroupInner
public WorkloadGroupInner()
Creates an instance of WorkloadGroupInner class.
Method Details
fromJson
public static WorkloadGroupInner fromJson(JsonReader jsonReader)
Reads an instance of WorkloadGroupInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
WorkloadGroupInner.id()Returns:
importance
public String importance()
Get the importance property: The workload group importance level.
Returns:
maxResourcePercent
public Integer maxResourcePercent()
Get the maxResourcePercent property: The workload group cap percentage resource.
Returns:
maxResourcePercentPerRequest
public Double maxResourcePercentPerRequest()
Get the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.
Returns:
minResourcePercent
public Integer minResourcePercent()
Get the minResourcePercent property: The workload group minimum percentage resource.
Returns:
minResourcePercentPerRequest
public Double minResourcePercentPerRequest()
Get the minResourcePercentPerRequest property: The workload group request minimum grant percentage.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
WorkloadGroupInner.name()Returns:
queryExecutionTimeout
public Integer queryExecutionTimeout()
Get the queryExecutionTimeout property: The workload group query execution timeout.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
WorkloadGroupInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
WorkloadGroupInner.type()Returns:
validate
public void validate()
Validates the instance.
withImportance
public WorkloadGroupInner withImportance(String importance)
Set the importance property: The workload group importance level.
Parameters:
Returns:
withMaxResourcePercent
public WorkloadGroupInner withMaxResourcePercent(Integer maxResourcePercent)
Set the maxResourcePercent property: The workload group cap percentage resource.
Parameters:
Returns:
withMaxResourcePercentPerRequest
public WorkloadGroupInner withMaxResourcePercentPerRequest(Double maxResourcePercentPerRequest)
Set the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.
Parameters:
Returns:
withMinResourcePercent
public WorkloadGroupInner withMinResourcePercent(Integer minResourcePercent)
Set the minResourcePercent property: The workload group minimum percentage resource.
Parameters:
Returns:
withMinResourcePercentPerRequest
public WorkloadGroupInner withMinResourcePercentPerRequest(Double minResourcePercentPerRequest)
Set the minResourcePercentPerRequest property: The workload group request minimum grant percentage.
Parameters:
Returns:
withQueryExecutionTimeout
public WorkloadGroupInner withQueryExecutionTimeout(Integer queryExecutionTimeout)
Set the queryExecutionTimeout property: The workload group query execution timeout.
Parameters:
Returns:
Applies to
Azure SDK for Java