Class SubvolumeModelInner

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

public final class SubvolumeModelInner extends Object implements com.azure.json.JsonSerializable<SubvolumeModelInner>
Result of the post subvolume and action is to get metadata of the subvolume.
  • Constructor Details

    • SubvolumeModelInner

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

    • id

      public String id()
      Get the id property: Resource Id.
      Returns:
      the id value.
    • name

      public String name()
      Get the name property: Resource name.
      Returns:
      the name value.
    • type

      public String type()
      Get the type property: Resource type.
      Returns:
      the type value.
    • path

      public String path()
      Get the path property: Path to the subvolume.
      Returns:
      the path value.
    • withPath

      public SubvolumeModelInner withPath(String path)
      Set the path property: Path to the subvolume.
      Parameters:
      path - the path value to set.
      Returns:
      the SubvolumeModelInner object itself.
    • parentPath

      public String parentPath()
      Get the parentPath property: Path to the parent subvolume.
      Returns:
      the parentPath value.
    • withParentPath

      public SubvolumeModelInner withParentPath(String parentPath)
      Set the parentPath property: Path to the parent subvolume.
      Parameters:
      parentPath - the parentPath value to set.
      Returns:
      the SubvolumeModelInner object itself.
    • size

      public Long size()
      Get the size property: Size of subvolume.
      Returns:
      the size value.
    • withSize

      public SubvolumeModelInner withSize(Long size)
      Set the size property: Size of subvolume.
      Parameters:
      size - the size value to set.
      Returns:
      the SubvolumeModelInner object itself.
    • bytesUsed

      public Long bytesUsed()
      Get the bytesUsed property: Bytes used.
      Returns:
      the bytesUsed value.
    • withBytesUsed

      public SubvolumeModelInner withBytesUsed(Long bytesUsed)
      Set the bytesUsed property: Bytes used.
      Parameters:
      bytesUsed - the bytesUsed value to set.
      Returns:
      the SubvolumeModelInner object itself.
    • permissions

      public String permissions()
      Get the permissions property: Permissions of the subvolume.
      Returns:
      the permissions value.
    • withPermissions

      public SubvolumeModelInner withPermissions(String permissions)
      Set the permissions property: Permissions of the subvolume.
      Parameters:
      permissions - the permissions value to set.
      Returns:
      the SubvolumeModelInner object itself.
    • creationTimestamp

      public OffsetDateTime creationTimestamp()
      Get the creationTimestamp property: Creation time and date.
      Returns:
      the creationTimestamp value.
    • withCreationTimestamp

      public SubvolumeModelInner withCreationTimestamp(OffsetDateTime creationTimestamp)
      Set the creationTimestamp property: Creation time and date.
      Parameters:
      creationTimestamp - the creationTimestamp value to set.
      Returns:
      the SubvolumeModelInner object itself.
    • accessedTimestamp

      public OffsetDateTime accessedTimestamp()
      Get the accessedTimestamp property: Most recent access time and date.
      Returns:
      the accessedTimestamp value.
    • withAccessedTimestamp

      public SubvolumeModelInner withAccessedTimestamp(OffsetDateTime accessedTimestamp)
      Set the accessedTimestamp property: Most recent access time and date.
      Parameters:
      accessedTimestamp - the accessedTimestamp value to set.
      Returns:
      the SubvolumeModelInner object itself.
    • modifiedTimestamp

      public OffsetDateTime modifiedTimestamp()
      Get the modifiedTimestamp property: Most recent modification time and date.
      Returns:
      the modifiedTimestamp value.
    • withModifiedTimestamp

      public SubvolumeModelInner withModifiedTimestamp(OffsetDateTime modifiedTimestamp)
      Set the modifiedTimestamp property: Most recent modification time and date.
      Parameters:
      modifiedTimestamp - the modifiedTimestamp value to set.
      Returns:
      the SubvolumeModelInner object itself.
    • changedTimestamp

      public OffsetDateTime changedTimestamp()
      Get the changedTimestamp property: Most recent change time and date.
      Returns:
      the changedTimestamp value.
    • withChangedTimestamp

      public SubvolumeModelInner withChangedTimestamp(OffsetDateTime changedTimestamp)
      Set the changedTimestamp property: Most recent change time and date.
      Parameters:
      changedTimestamp - the changedTimestamp value to set.
      Returns:
      the SubvolumeModelInner object itself.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: Azure lifecycle management.
      Returns:
      the provisioningState value.
    • withProvisioningState

      public SubvolumeModelInner withProvisioningState(String provisioningState)
      Set the provisioningState property: Azure lifecycle management.
      Parameters:
      provisioningState - the provisioningState value to set.
      Returns:
      the SubvolumeModelInner 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<SubvolumeModelInner>
      Throws:
      IOException
    • fromJson

      public static SubvolumeModelInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SubvolumeModelInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SubvolumeModelInner 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 SubvolumeModelInner.