KpiAlias Class

  • java.lang.Object
    • com.azure.resourcemanager.customerinsights.models.KpiAlias

Implements

public final class KpiAlias
implements JsonSerializable<KpiAlias>

The KPI alias.

Constructor Summary

Constructor Description
KpiAlias()

Creates an instance of KpiAlias class.

Method Summary

Modifier and Type Method and Description
String aliasName()

Get the aliasName property: KPI alias name.

String expression()

Get the expression property: The expression.

static KpiAlias fromJson(JsonReader jsonReader)

Reads an instance of KpiAlias from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

KpiAlias withAliasName(String aliasName)

Set the aliasName property: KPI alias name.

KpiAlias withExpression(String expression)

Set the expression property: The expression.

Methods inherited from java.lang.Object

Constructor Details

KpiAlias

public KpiAlias()

Creates an instance of KpiAlias class.

Method Details

aliasName

public String aliasName()

Get the aliasName property: KPI alias name.

Returns:

the aliasName value.

expression

public String expression()

Get the expression property: The expression.

Returns:

the expression value.

fromJson

public static KpiAlias fromJson(JsonReader jsonReader)

Reads an instance of KpiAlias from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KpiAlias 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAliasName

public KpiAlias withAliasName(String aliasName)

Set the aliasName property: KPI alias name.

Parameters:

aliasName - the aliasName value to set.

Returns:

the KpiAlias object itself.

withExpression

public KpiAlias withExpression(String expression)

Set the expression property: The expression.

Parameters:

expression - the expression value to set.

Returns:

the KpiAlias object itself.

Applies to

Azure SDK for Java

Preview