Class WorkloadGroupInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.WorkloadGroupInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class WorkloadGroupInner
extends com.azure.core.management.ProxyResource
Workload group operations for a data warehouse.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkloadGroupInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkloadGroupInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the importance property: The workload group importance level.Get the maxResourcePercent property: The workload group cap percentage resource.Get the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.Get the minResourcePercent property: The workload group minimum percentage resource.Get the minResourcePercentPerRequest property: The workload group request minimum grant percentage.name()Get the name property: The name of the resource.Get the queryExecutionTimeout property: The workload group query execution timeout.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withImportance(String importance) Set the importance property: The workload group importance level.withMaxResourcePercent(Integer maxResourcePercent) Set the maxResourcePercent property: The workload group cap percentage resource.withMaxResourcePercentPerRequest(Double maxResourcePercentPerRequest) Set the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.withMinResourcePercent(Integer minResourcePercent) Set the minResourcePercent property: The workload group minimum percentage resource.withMinResourcePercentPerRequest(Double minResourcePercentPerRequest) Set the minResourcePercentPerRequest property: The workload group request minimum grant percentage.withQueryExecutionTimeout(Integer queryExecutionTimeout) Set the queryExecutionTimeout property: The workload group query execution timeout.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WorkloadGroupInner
public WorkloadGroupInner()Creates an instance of WorkloadGroupInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
minResourcePercent
Get the minResourcePercent property: The workload group minimum percentage resource.- Returns:
- the minResourcePercent value.
-
withMinResourcePercent
Set the minResourcePercent property: The workload group minimum percentage resource.- Parameters:
minResourcePercent- the minResourcePercent value to set.- Returns:
- the WorkloadGroupInner object itself.
-
maxResourcePercent
Get the maxResourcePercent property: The workload group cap percentage resource.- Returns:
- the maxResourcePercent value.
-
withMaxResourcePercent
Set the maxResourcePercent property: The workload group cap percentage resource.- Parameters:
maxResourcePercent- the maxResourcePercent value to set.- Returns:
- the WorkloadGroupInner object itself.
-
minResourcePercentPerRequest
Get the minResourcePercentPerRequest property: The workload group request minimum grant percentage.- Returns:
- the minResourcePercentPerRequest value.
-
withMinResourcePercentPerRequest
Set the minResourcePercentPerRequest property: The workload group request minimum grant percentage.- Parameters:
minResourcePercentPerRequest- the minResourcePercentPerRequest value to set.- Returns:
- the WorkloadGroupInner object itself.
-
maxResourcePercentPerRequest
Get the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.- Returns:
- the maxResourcePercentPerRequest value.
-
withMaxResourcePercentPerRequest
Set the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.- Parameters:
maxResourcePercentPerRequest- the maxResourcePercentPerRequest value to set.- Returns:
- the WorkloadGroupInner object itself.
-
importance
Get the importance property: The workload group importance level.- Returns:
- the importance value.
-
withImportance
Set the importance property: The workload group importance level.- Parameters:
importance- the importance value to set.- Returns:
- the WorkloadGroupInner object itself.
-
queryExecutionTimeout
Get the queryExecutionTimeout property: The workload group query execution timeout.- Returns:
- the queryExecutionTimeout value.
-
withQueryExecutionTimeout
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
Reads an instance of WorkloadGroupInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WorkloadGroupInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the WorkloadGroupInner.
-