Dimension Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.Dimension

Implements

public final class Dimension
implements JsonSerializable<Dimension>

Dimension of a resource metric. For e.g. instance specific HTTP requests for a web app, where instance name is dimension of the metric HTTP request.

Constructor Summary

Constructor Description
Dimension()

Creates an instance of Dimension class.

Method Summary

Modifier and Type Method and Description
String displayName()

Get the displayName property: The displayName property.

static Dimension fromJson(JsonReader jsonReader)

Reads an instance of Dimension from the JsonReader.

String internalName()

Get the internalName property: The internalName property.

String name()

Get the name property: The name property.

Boolean toBeExportedForShoebox()

Get the toBeExportedForShoebox property: The toBeExportedForShoebox property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Dimension withDisplayName(String displayName)

Set the displayName property: The displayName property.

Dimension withInternalName(String internalName)

Set the internalName property: The internalName property.

Dimension withName(String name)

Set the name property: The name property.

Dimension withToBeExportedForShoebox(Boolean toBeExportedForShoebox)

Set the toBeExportedForShoebox property: The toBeExportedForShoebox property.

Methods inherited from java.lang.Object

Constructor Details

Dimension

public Dimension()

Creates an instance of Dimension class.

Method Details

displayName

public String displayName()

Get the displayName property: The displayName property.

Returns:

the displayName value.

fromJson

public static Dimension fromJson(JsonReader jsonReader)

Reads an instance of Dimension from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the Dimension.

internalName

public String internalName()

Get the internalName property: The internalName property.

Returns:

the internalName value.

name

public String name()

Get the name property: The name property.

Returns:

the name value.

toBeExportedForShoebox

public Boolean toBeExportedForShoebox()

Get the toBeExportedForShoebox property: The toBeExportedForShoebox property.

Returns:

the toBeExportedForShoebox value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisplayName

public Dimension withDisplayName(String displayName)

Set the displayName property: The displayName property.

Parameters:

displayName - the displayName value to set.

Returns:

the Dimension object itself.

withInternalName

public Dimension withInternalName(String internalName)

Set the internalName property: The internalName property.

Parameters:

internalName - the internalName value to set.

Returns:

the Dimension object itself.

withName

public Dimension withName(String name)

Set the name property: The name property.

Parameters:

name - the name value to set.

Returns:

the Dimension object itself.

withToBeExportedForShoebox

public Dimension withToBeExportedForShoebox(Boolean toBeExportedForShoebox)

Set the toBeExportedForShoebox property: The toBeExportedForShoebox property.

Parameters:

toBeExportedForShoebox - the toBeExportedForShoebox value to set.

Returns:

the Dimension object itself.

Applies to