Del via


WorkloadGroupProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.WorkloadGroupProperties

Implements

public final class WorkloadGroupProperties
implements JsonSerializable<WorkloadGroupProperties>

Workload group definition. For more information look at sys.workload_management_workload_groups (DMV).

Constructor Summary

Constructor Description
WorkloadGroupProperties()

Creates an instance of WorkloadGroupProperties class.

Method Summary

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

Reads an instance of WorkloadGroupProperties from the JsonReader.

String importance()

Get the importance property: The workload group importance level.

int maxResourcePercent()

Get the maxResourcePercent property: The workload group cap percentage resource.

Double maxResourcePercentPerRequest()

Get the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.

int minResourcePercent()

Get the minResourcePercent property: The workload group minimum percentage resource.

double minResourcePercentPerRequest()

Get the minResourcePercentPerRequest property: The workload group request minimum grant percentage.

Integer queryExecutionTimeout()

Get the queryExecutionTimeout property: The workload group query execution timeout.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WorkloadGroupProperties withImportance(String importance)

Set the importance property: The workload group importance level.

WorkloadGroupProperties withMaxResourcePercent(int maxResourcePercent)

Set the maxResourcePercent property: The workload group cap percentage resource.

WorkloadGroupProperties withMaxResourcePercentPerRequest(Double maxResourcePercentPerRequest)

Set the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.

WorkloadGroupProperties withMinResourcePercent(int minResourcePercent)

Set the minResourcePercent property: The workload group minimum percentage resource.

WorkloadGroupProperties withMinResourcePercentPerRequest(double minResourcePercentPerRequest)

Set the minResourcePercentPerRequest property: The workload group request minimum grant percentage.

WorkloadGroupProperties withQueryExecutionTimeout(Integer queryExecutionTimeout)

Set the queryExecutionTimeout property: The workload group query execution timeout.

Methods inherited from java.lang.Object

Constructor Details

WorkloadGroupProperties

public WorkloadGroupProperties()

Creates an instance of WorkloadGroupProperties class.

Method Details

fromJson

public static WorkloadGroupProperties fromJson(JsonReader jsonReader)

Reads an instance of WorkloadGroupProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WorkloadGroupProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

importance

public String importance()

Get the importance property: The workload group importance level.

Returns:

the importance value.

maxResourcePercent

public int maxResourcePercent()

Get the maxResourcePercent property: The workload group cap percentage resource.

Returns:

the maxResourcePercent value.

maxResourcePercentPerRequest

public Double maxResourcePercentPerRequest()

Get the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.

Returns:

the maxResourcePercentPerRequest value.

minResourcePercent

public int minResourcePercent()

Get the minResourcePercent property: The workload group minimum percentage resource.

Returns:

the minResourcePercent value.

minResourcePercentPerRequest

public double minResourcePercentPerRequest()

Get the minResourcePercentPerRequest property: The workload group request minimum grant percentage.

Returns:

the minResourcePercentPerRequest value.

queryExecutionTimeout

public Integer queryExecutionTimeout()

Get the queryExecutionTimeout property: The workload group query execution timeout.

Returns:

the queryExecutionTimeout value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withImportance

public WorkloadGroupProperties withImportance(String importance)

Set the importance property: The workload group importance level.

Parameters:

importance - the importance value to set.

Returns:

the WorkloadGroupProperties object itself.

withMaxResourcePercent

public WorkloadGroupProperties withMaxResourcePercent(int maxResourcePercent)

Set the maxResourcePercent property: The workload group cap percentage resource.

Parameters:

maxResourcePercent - the maxResourcePercent value to set.

Returns:

the WorkloadGroupProperties object itself.

withMaxResourcePercentPerRequest

public WorkloadGroupProperties withMaxResourcePercentPerRequest(Double maxResourcePercentPerRequest)

Set the maxResourcePercentPerRequest property: The workload group request maximum grant percentage.

Parameters:

maxResourcePercentPerRequest - the maxResourcePercentPerRequest value to set.

Returns:

the WorkloadGroupProperties object itself.

withMinResourcePercent

public WorkloadGroupProperties withMinResourcePercent(int minResourcePercent)

Set the minResourcePercent property: The workload group minimum percentage resource.

Parameters:

minResourcePercent - the minResourcePercent value to set.

Returns:

the WorkloadGroupProperties object itself.

withMinResourcePercentPerRequest

public WorkloadGroupProperties withMinResourcePercentPerRequest(double minResourcePercentPerRequest)

Set the minResourcePercentPerRequest property: The workload group request minimum grant percentage.

Parameters:

minResourcePercentPerRequest - the minResourcePercentPerRequest value to set.

Returns:

the WorkloadGroupProperties object itself.

withQueryExecutionTimeout

public WorkloadGroupProperties withQueryExecutionTimeout(Integer queryExecutionTimeout)

Set the queryExecutionTimeout property: The workload group query execution timeout.

Parameters:

queryExecutionTimeout - the queryExecutionTimeout value to set.

Returns:

the WorkloadGroupProperties object itself.

Applies to