Class WorkloadGroupInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.sql.fluent.models.WorkloadGroupInner
-
public class WorkloadGroupInner extends com.azure.core.management.ProxyResourceWorkload group operations for a data warehouse.
-
-
Constructor Summary
Constructors Constructor Description WorkloadGroupInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringimportance()Get the importance property: The workload group importance level.IntegermaxResourcePercent()Get the maxResourcePercent property: The workload group cap percentage resource.DoublemaxResourcePercentPerRequest()Get the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.IntegerminResourcePercent()Get the minResourcePercent property: The workload group minimum percentage resource.DoubleminResourcePercentPerRequest()Get the minResourcePercentPerRequest property: The workload group request minimum grant percentage.IntegerqueryExecutionTimeout()Get the queryExecutionTimeout property: The workload group query execution timeout.voidvalidate()Validates the instance.WorkloadGroupInnerwithImportance(String importance)Set the importance property: The workload group importance level.WorkloadGroupInnerwithMaxResourcePercent(Integer maxResourcePercent)Set the maxResourcePercent property: The workload group cap percentage resource.WorkloadGroupInnerwithMaxResourcePercentPerRequest(Double maxResourcePercentPerRequest)Set the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.WorkloadGroupInnerwithMinResourcePercent(Integer minResourcePercent)Set the minResourcePercent property: The workload group minimum percentage resource.WorkloadGroupInnerwithMinResourcePercentPerRequest(Double minResourcePercentPerRequest)Set the minResourcePercentPerRequest property: The workload group request minimum grant percentage.WorkloadGroupInnerwithQueryExecutionTimeout(Integer queryExecutionTimeout)Set the queryExecutionTimeout property: The workload group query execution timeout.
-
-
-
Method Detail
-
minResourcePercent
public Integer minResourcePercent()
Get the minResourcePercent property: The workload group minimum percentage resource.- Returns:
- the minResourcePercent value.
-
withMinResourcePercent
public WorkloadGroupInner withMinResourcePercent(Integer minResourcePercent)
Set the minResourcePercent property: The workload group minimum percentage resource.- Parameters:
minResourcePercent- the minResourcePercent value to set.- Returns:
- the WorkloadGroupInner object itself.
-
maxResourcePercent
public Integer maxResourcePercent()
Get the maxResourcePercent property: The workload group cap percentage resource.- Returns:
- the maxResourcePercent value.
-
withMaxResourcePercent
public WorkloadGroupInner withMaxResourcePercent(Integer maxResourcePercent)
Set the maxResourcePercent property: The workload group cap percentage resource.- Parameters:
maxResourcePercent- the maxResourcePercent value to set.- Returns:
- the WorkloadGroupInner object itself.
-
minResourcePercentPerRequest
public Double minResourcePercentPerRequest()
Get the minResourcePercentPerRequest property: The workload group request minimum grant percentage.- Returns:
- the minResourcePercentPerRequest value.
-
withMinResourcePercentPerRequest
public WorkloadGroupInner withMinResourcePercentPerRequest(Double minResourcePercentPerRequest)
Set the minResourcePercentPerRequest property: The workload group request minimum grant percentage.- Parameters:
minResourcePercentPerRequest- the minResourcePercentPerRequest value to set.- Returns:
- the WorkloadGroupInner object itself.
-
maxResourcePercentPerRequest
public Double maxResourcePercentPerRequest()
Get the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.- Returns:
- the maxResourcePercentPerRequest value.
-
withMaxResourcePercentPerRequest
public WorkloadGroupInner withMaxResourcePercentPerRequest(Double maxResourcePercentPerRequest)
Set the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.- Parameters:
maxResourcePercentPerRequest- the maxResourcePercentPerRequest value to set.- Returns:
- the WorkloadGroupInner object itself.
-
importance
public String importance()
Get the importance property: The workload group importance level.- Returns:
- the importance value.
-
withImportance
public WorkloadGroupInner withImportance(String importance)
Set the importance property: The workload group importance level.- Parameters:
importance- the importance value to set.- Returns:
- the WorkloadGroupInner object itself.
-
queryExecutionTimeout
public Integer queryExecutionTimeout()
Get the queryExecutionTimeout property: The workload group query execution timeout.- Returns:
- the queryExecutionTimeout value.
-
withQueryExecutionTimeout
public WorkloadGroupInner withQueryExecutionTimeout(Integer queryExecutionTimeout)
Set the queryExecutionTimeout property: The workload group query execution timeout.- Parameters:
queryExecutionTimeout- the queryExecutionTimeout value to set.- Returns:
- the WorkloadGroupInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-