Compartilhar via


Dimension Class

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

Implements

public final class Dimension
implements JsonSerializable<Dimension>

Dimension of the metric.

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 display name of the dimension.

static Dimension fromJson(JsonReader jsonReader)

Reads an instance of Dimension from the JsonReader.

String internalName()

Get the internalName property: The internal name of the dimension.

String name()

Get the name property: The name of the dimension.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Dimension withDisplayName(String displayName)

Set the displayName property: The display name of the dimension.

Dimension withInternalName(String internalName)

Set the internalName property: The internal name of the dimension.

Dimension withName(String name)

Set the name property: The name of the dimension.

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 display name of the dimension.

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 internal name of the dimension.

Returns:

the internalName value.

name

public String name()

Get the name property: The name of the dimension.

Returns:

the name 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 display name of the dimension.

Parameters:

displayName - the displayName value to set.

Returns:

the Dimension object itself.

withInternalName

public Dimension withInternalName(String internalName)

Set the internalName property: The internal name of the dimension.

Parameters:

internalName - the internalName value to set.

Returns:

the Dimension object itself.

withName

public Dimension withName(String name)

Set the name property: The name of the dimension.

Parameters:

name - the name value to set.

Returns:

the Dimension object itself.

Applies to