WorkloadGroupInner Class

public final class WorkloadGroupInner
extends ProxyResource

Workload group operations for a data warehouse.

Constructor Summary

Constructor Description
WorkloadGroupInner()

Creates an instance of WorkloadGroupInner class.

Method Summary

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

Reads an instance of WorkloadGroupInner from the JsonReader.

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 maxResourcePercent property: The workload group cap percentage resource.

Double maxResourcePercentPerRequest()

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

Integer minResourcePercent()

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

Double minResourcePercentPerRequest()

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

String name()

Get the name property: The name of the resource.

Integer queryExecutionTimeout()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

WorkloadGroupInner withImportance(String importance)

Set the importance property: The workload group importance level.

WorkloadGroupInner withMaxResourcePercent(Integer maxResourcePercent)

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

WorkloadGroupInner withMaxResourcePercentPerRequest(Double maxResourcePercentPerRequest)

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

WorkloadGroupInner withMinResourcePercent(Integer minResourcePercent)

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

WorkloadGroupInner withMinResourcePercentPerRequest(Double minResourcePercentPerRequest)

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

WorkloadGroupInner withQueryExecutionTimeout(Integer queryExecutionTimeout)

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

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:

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:

IOException

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

WorkloadGroupInner.id()

Returns:

the id value.

importance

public String importance()

Get the importance property: The workload group importance level.

Returns:

the importance value.

maxResourcePercent

public Integer 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 Integer 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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

WorkloadGroupInner.name()

Returns:

the name 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)

Overrides:

WorkloadGroupInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

WorkloadGroupInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

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.

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.

Applies to