다음을 통해 공유


Dimension Class

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

Implements

public final class Dimension
implements JsonSerializable<Dimension>

Dimension of blobs, possibly be blob type or access tier.

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: Display name of dimension.

static Dimension fromJson(JsonReader jsonReader)

Reads an instance of Dimension from the JsonReader.

String name()

Get the name property: Display name of dimension.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Dimension withDisplayName(String displayName)

Set the displayName property: Display name of dimension.

Dimension withName(String name)

Set the name property: Display name of 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: Display name of 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.

name

public String name()

Get the name property: Display name of 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: Display name of dimension.

Parameters:

displayName - the displayName value to set.

Returns:

the Dimension object itself.

withName

public Dimension withName(String name)

Set the name property: Display name of dimension.

Parameters:

name - the name value to set.

Returns:

the Dimension object itself.

Applies to