Del via


WorkloadClassifierProperties Class

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

Implements

public final class WorkloadClassifierProperties
implements JsonSerializable<WorkloadClassifierProperties>

Workload classifier definition. For more information look at sys.workload_management_workload_classifiers (DMV).

Constructor Summary

Constructor Description
WorkloadClassifierProperties()

Creates an instance of WorkloadClassifierProperties class.

Method Summary

Modifier and Type Method and Description
String context()

Get the context property: The workload classifier context.

String endTime()

Get the endTime property: The workload classifier end time for classification.

static WorkloadClassifierProperties fromJson(JsonReader jsonReader)

Reads an instance of WorkloadClassifierProperties from the JsonReader.

String importance()

Get the importance property: The workload classifier importance.

String label()

Get the label property: The workload classifier label.

String memberName()

Get the memberName property: The workload classifier member name.

String startTime()

Get the startTime property: The workload classifier start time for classification.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WorkloadClassifierProperties withContext(String context)

Set the context property: The workload classifier context.

WorkloadClassifierProperties withEndTime(String endTime)

Set the endTime property: The workload classifier end time for classification.

WorkloadClassifierProperties withImportance(String importance)

Set the importance property: The workload classifier importance.

WorkloadClassifierProperties withLabel(String label)

Set the label property: The workload classifier label.

WorkloadClassifierProperties withMemberName(String memberName)

Set the memberName property: The workload classifier member name.

WorkloadClassifierProperties withStartTime(String startTime)

Set the startTime property: The workload classifier start time for classification.

Methods inherited from java.lang.Object

Constructor Details

WorkloadClassifierProperties

public WorkloadClassifierProperties()

Creates an instance of WorkloadClassifierProperties class.

Method Details

context

public String context()

Get the context property: The workload classifier context.

Returns:

the context value.

endTime

public String endTime()

Get the endTime property: The workload classifier end time for classification.

Returns:

the endTime value.

fromJson

public static WorkloadClassifierProperties fromJson(JsonReader jsonReader)

Reads an instance of WorkloadClassifierProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WorkloadClassifierProperties 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 classifier importance.

Returns:

the importance value.

label

public String label()

Get the label property: The workload classifier label.

Returns:

the label value.

memberName

public String memberName()

Get the memberName property: The workload classifier member name.

Returns:

the memberName value.

startTime

public String startTime()

Get the startTime property: The workload classifier start time for classification.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withContext

public WorkloadClassifierProperties withContext(String context)

Set the context property: The workload classifier context.

Parameters:

context - the context value to set.

Returns:

the WorkloadClassifierProperties object itself.

withEndTime

public WorkloadClassifierProperties withEndTime(String endTime)

Set the endTime property: The workload classifier end time for classification.

Parameters:

endTime - the endTime value to set.

Returns:

the WorkloadClassifierProperties object itself.

withImportance

public WorkloadClassifierProperties withImportance(String importance)

Set the importance property: The workload classifier importance.

Parameters:

importance - the importance value to set.

Returns:

the WorkloadClassifierProperties object itself.

withLabel

public WorkloadClassifierProperties withLabel(String label)

Set the label property: The workload classifier label.

Parameters:

label - the label value to set.

Returns:

the WorkloadClassifierProperties object itself.

withMemberName

public WorkloadClassifierProperties withMemberName(String memberName)

Set the memberName property: The workload classifier member name.

Parameters:

memberName - the memberName value to set.

Returns:

the WorkloadClassifierProperties object itself.

withStartTime

public WorkloadClassifierProperties withStartTime(String startTime)

Set the startTime property: The workload classifier start time for classification.

Parameters:

startTime - the startTime value to set.

Returns:

the WorkloadClassifierProperties object itself.

Applies to