Class Dimension

java.lang.Object
com.azure.resourcemanager.netapp.models.Dimension
All Implemented Interfaces:
com.azure.json.JsonSerializable<Dimension>

public final class Dimension extends Object implements com.azure.json.JsonSerializable<Dimension>
Dimension of blobs, possibly be blob type or access tier.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of Dimension class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the displayName property: Display name of dimension.
    static Dimension
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Dimension from the JsonReader.
    Get the name property: Display name of dimension.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withDisplayName(String displayName)
    Set the displayName property: Display name of dimension.
    Set the name property: Display name of dimension.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • Dimension

      public Dimension()
      Creates an instance of Dimension class.
  • Method Details

    • name

      public String name()
      Get the name property: Display name of dimension.
      Returns:
      the name value.
    • 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.
    • displayName

      public String displayName()
      Get the displayName property: Display name of dimension.
      Returns:
      the displayName value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Dimension>
      Throws:
      IOException
    • fromJson

      public static Dimension fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.